Skip to content

Commit

Permalink
fix(Schematics): Add smart default to blueprint schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts authored and MikeRyanDev committed May 1, 2018
1 parent 413efd4 commit cdd247e
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 12 deletions.
8 changes: 6 additions & 2 deletions modules/schematics/src/action/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
"properties": {
"name": {
"description": "The name of the action.",
"type": "string"
"type": "string",
"$default": {
"$source": "argv",
"index": 0
}
},
"path": {
"type": "string",
Expand All @@ -31,5 +35,5 @@
"aliases": ["g"]
}
},
"required": ["name"]
"required": []
}
8 changes: 6 additions & 2 deletions modules/schematics/src/effect/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
"properties": {
"name": {
"description": "The name of the effect.",
"type": "string"
"type": "string",
"$default": {
"$source": "argv",
"index": 0
}
},
"path": {
"type": "string",
Expand Down Expand Up @@ -49,5 +53,5 @@
"aliases": ["g"]
}
},
"required": ["name"]
"required": []
}
8 changes: 6 additions & 2 deletions modules/schematics/src/entity/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
"properties": {
"name": {
"description": "The name of the entity.",
"type": "string"
"type": "string",
"$default": {
"$source": "argv",
"index": 0
}
},
"path": {
"type": "string",
Expand Down Expand Up @@ -42,5 +46,5 @@
"aliases": ["g"]
}
},
"required": ["name"]
"required": []
}
8 changes: 6 additions & 2 deletions modules/schematics/src/feature/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
},
"name": {
"description": "The name of the feature.",
"type": "string"
"type": "string",
"$default": {
"$source": "argv",
"index": 0
}
},
"flat": {
"type": "boolean",
Expand Down Expand Up @@ -42,5 +46,5 @@
"aliases": ["g"]
}
},
"required": ["name"]
"required": []
}
8 changes: 6 additions & 2 deletions modules/schematics/src/reducer/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
"properties": {
"name": {
"description": "The name of the reducer.",
"type": "string"
"type": "string",
"$default": {
"$source": "argv",
"index": 0
}
},
"path": {
"type": "string",
Expand Down Expand Up @@ -46,5 +50,5 @@
"aliases": ["g"]
}
},
"required": ["name"]
"required": []
}
8 changes: 6 additions & 2 deletions modules/schematics/src/store/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
"properties": {
"name": {
"description": "The name of the state.",
"type": "string"
"type": "string",
"$default": {
"$source": "argv",
"index": 0
}
},
"path": {
"type": "string",
Expand Down Expand Up @@ -47,5 +51,5 @@
"alias": "si"
}
},
"required": ["name"]
"required": []
}

0 comments on commit cdd247e

Please sign in to comment.