Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Commit fe639d7

Browse files
authored
feat(core): enable codegen setup by default for webapis (#587)
1 parent 86b927f commit fe639d7

3 files changed

Lines changed: 2 additions & 11 deletions

File tree

docs/core/generators/application.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ Generate a dotnet project under the application directory.
3030

3131
- (string): Which template should be used for creating the tests project?
3232

33-
### standalone
34-
35-
- (boolean): Should the project use project.json? If false, the project config is inside workspace.json
36-
3733
### solutionFile
3834

3935
- (string): The name of the solution file to add the project to

packages/core/src/generators/add-swagger-target/add-swagger-target.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default async function generateSwaggerSetup(
2727
generateShellProject(host, {
2828
swaggerProject: options.swaggerProject,
2929
project: options.project,
30+
codegenProject: options.codegenProject,
3031
});
3132
} else {
3233
throw new Error('Either specify --output or --swagger-project');

packages/core/src/generators/app/schema.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@
5555
]
5656
}
5757
},
58-
"standalone": {
59-
"type": "boolean",
60-
"description": "Should the project use project.json? If false, the project config is inside workspace.json",
61-
"x-deprecated": "New Nx workspaces are created without workspace.json, thus inferring this option as true."
62-
},
6358
"solutionFile": {
6459
"description": "Determines if the project should be added to a solution file.",
6560
"oneOf": [
@@ -76,8 +71,7 @@
7671
},
7772
"skipSwaggerLib": {
7873
"type": "boolean",
79-
"description": "By default, if using webapi template, an additional library is scaffolded for swagger files. This skips that setup.",
80-
"default": true
74+
"description": "By default, if using webapi template, an additional library is scaffolded for swagger files. This skips that setup."
8175
},
8276
"pathScheme": {
8377
"description": "Determines if the project should follow NX or dotnet path naming conventions",

0 commit comments

Comments
 (0)