Commit 85cf790
authored
feat: improve Record / additionalProperties handling (#408)
- introduce a new `IRModelRecord` type, to model `Record` / `Map`
types more specifically
- use this to simplify the handling of `additionalProperties` during
schema/type generation
- emit `Record<T,U>` when possible1 parent 3dcc463 commit 85cf790
63 files changed
Lines changed: 5491 additions & 16638 deletions
File tree
- e2e
- src/generated
- client
- axios
- fetch
- server
- express
- koa
- integration-tests
- typescript-angular/src/generated
- api.github.com.yaml
- azure-resource-manager.tsp
- okta.idp.yaml
- stripe.yaml
- todo-lists.yaml
- typescript-axios/src/generated
- api.github.com.yaml
- azure-resource-manager.tsp
- okta.idp.yaml
- stripe.yaml
- todo-lists.yaml
- typescript-express/src/generated
- api.github.com.yaml
- azure-resource-manager.tsp
- okta.idp.yaml
- stripe.yaml
- todo-lists.yaml
- typescript-fetch/src/generated
- api.github.com.yaml
- azure-resource-manager.tsp
- okta.idp.yaml
- stripe.yaml
- todo-lists.yaml
- typescript-koa/src/generated
- api.github.com.yaml
- azure-resource-manager.tsp
- okta.idp.yaml
- stripe.yaml
- todo-lists.yaml
- packages
- openapi-code-generator/src
- core
- typescript
- client
- common
- schema-builders
- server
- typescript-common-runtime/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
| 369 | + | |
371 | 370 | | |
372 | 371 | | |
373 | 372 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments