fix(nest): repair nestjs service generator schema (#28928)

# Related Issue(s)

Fixes #28910
This commit is contained in:
pawel-twardziak 2024-11-14 22:26:34 +01:00 committed by GitHub
parent 0686892ac8
commit 3c6c38773b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 5 deletions

View File

@ -9,10 +9,15 @@
"cli": "nx",
"type": "object",
"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": {
"description": "The name of the service.",
"type": "string",
"$default": { "$source": "argv", "index": 0 },
"x-prompt": "What name would you like to use?"
},
"skipFormat": {
@ -34,7 +39,7 @@
}
},
"additionalProperties": false,
"required": ["name"],
"required": ["path"],
"presets": []
},
"description": "Run the `service` NestJS generator with Nx project support.",

View File

@ -6,13 +6,18 @@
"cli": "nx",
"type": "object",
"properties": {
"name": {
"description": "The name of the service.",
"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": {
"description": "The name of the service.",
"type": "string",
"x-prompt": "What name would you like to use?"
},
"skipFormat": {
@ -34,5 +39,5 @@
}
},
"additionalProperties": false,
"required": ["name"]
"required": ["path"]
}