Skip to content

Commit

Permalink
fix(nest): repair nestjs service generator schema (#28928)
Browse files Browse the repository at this point in the history
# Related Issue(s)

Fixes #28910
  • Loading branch information
pawel-twardziak authored Nov 14, 2024
1 parent 0686892 commit 3c6c387
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
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"]
}

0 comments on commit 3c6c387

Please sign in to comment.