Skip to content

Commit

Permalink
feat(core): enable codegen setup by default for webapis (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder authored Jan 13, 2023
1 parent 86b927f commit fe639d7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
4 changes: 0 additions & 4 deletions docs/core/generators/application.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ Generate a dotnet project under the application directory.

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

### standalone

- (boolean): Should the project use project.json? If false, the project config is inside workspace.json

### solutionFile

- (string): The name of the solution file to add the project to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default async function generateSwaggerSetup(
generateShellProject(host, {
swaggerProject: options.swaggerProject,
project: options.project,
codegenProject: options.codegenProject,
});
} else {
throw new Error('Either specify --output or --swagger-project');
Expand Down
8 changes: 1 addition & 7 deletions packages/core/src/generators/app/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@
]
}
},
"standalone": {
"type": "boolean",
"description": "Should the project use project.json? If false, the project config is inside workspace.json",
"x-deprecated": "New Nx workspaces are created without workspace.json, thus inferring this option as true."
},
"solutionFile": {
"description": "Determines if the project should be added to a solution file.",
"oneOf": [
Expand All @@ -76,8 +71,7 @@
},
"skipSwaggerLib": {
"type": "boolean",
"description": "By default, if using webapi template, an additional library is scaffolded for swagger files. This skips that setup.",
"default": true
"description": "By default, if using webapi template, an additional library is scaffolded for swagger files. This skips that setup."
},
"pathScheme": {
"description": "Determines if the project should follow NX or dotnet path naming conventions",
Expand Down

0 comments on commit fe639d7

Please sign in to comment.