Skip to content

Commit

Permalink
feat(generators): add props defaults to ts-generator v1.
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
  • Loading branch information
BradenM committed Feb 13, 2023
1 parent 1d44724 commit df50d16
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generators/ts-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"typecheck": "tsc --noEmit"
},
"peerDependencies": {
"@openapi-generator-clients/config": "workspace:*"
"@openapi-generator-clients/config": "workspace:*",
"@openapi-generator-clients/types": "workspace:*"
}
}
7 changes: 7 additions & 0 deletions generators/ts-generator/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ export default defineGenerator('ts-generator', {
generatorVersion: 'v1',
drop: ['git_push.sh'],
additionalArgs: [],
additionalProperties: {
disallowAdditionalPropertiesIfNotPresent: false,
legacyDiscriminatorBehavior: false,
platform: 'node',
supportsES6: true,
useObjectParameters: true,
},
},
},
})

0 comments on commit df50d16

Please sign in to comment.