Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions docs/generated/packages/nest/generators/service.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -34,7 +39,7 @@
}
},
"additionalProperties": false,
"required": ["name"],
"required": ["path"],
"presets": []
},
"description": "Run the `service` NestJS generator with Nx project support.",
Expand Down
11 changes: 8 additions & 3 deletions packages/nest/src/generators/service/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -34,5 +39,5 @@
}
},
"additionalProperties": false,
"required": ["name"]
"required": ["path"]
}