fix(nest): repair nestjs service generator schema (#28928)
# Related Issue(s) Fixes #28910
This commit is contained in:
parent
0686892ac8
commit
3c6c38773b
@ -9,10 +9,15 @@
|
|||||||
"cli": "nx",
|
"cli": "nx",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"path": {
|
||||||
|
"description": "Path where the service will be generated.",
|
||||||
|
"type": "string",
|
||||||
|
"$default": { "$source": "argv", "index": 0 },
|
||||||
|
"x-prompt": "Where should the service be generated?"
|
||||||
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"description": "The name of the service.",
|
"description": "The name of the service.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"$default": { "$source": "argv", "index": 0 },
|
|
||||||
"x-prompt": "What name would you like to use?"
|
"x-prompt": "What name would you like to use?"
|
||||||
},
|
},
|
||||||
"skipFormat": {
|
"skipFormat": {
|
||||||
@ -34,7 +39,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["name"],
|
"required": ["path"],
|
||||||
"presets": []
|
"presets": []
|
||||||
},
|
},
|
||||||
"description": "Run the `service` NestJS generator with Nx project support.",
|
"description": "Run the `service` NestJS generator with Nx project support.",
|
||||||
|
|||||||
@ -6,13 +6,18 @@
|
|||||||
"cli": "nx",
|
"cli": "nx",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"path": {
|
||||||
"description": "The name of the service.",
|
"description": "Path where the service will be generated.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"$default": {
|
"$default": {
|
||||||
"$source": "argv",
|
"$source": "argv",
|
||||||
"index": 0
|
"index": 0
|
||||||
},
|
},
|
||||||
|
"x-prompt": "Where should the service be generated?"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "The name of the service.",
|
||||||
|
"type": "string",
|
||||||
"x-prompt": "What name would you like to use?"
|
"x-prompt": "What name would you like to use?"
|
||||||
},
|
},
|
||||||
"skipFormat": {
|
"skipFormat": {
|
||||||
@ -34,5 +39,5 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["name"]
|
"required": ["path"]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user