Commit 8c7de1f
authored
fix: improve handling of allOf / anyOf / oneOf (#410)
- introduces a new intermediate type for `intersection` and `union`,
making handling of compositions in schema/type builder easier to reason
about
- though `oneOf` is being treated as equivalent to `anyOf` for now
- improves normalization process treat the base schema as part of an
`allOf`/`intersection` when an object schema is part of a composite,
fixing previous information loss
- improves handling of `oneOf` / `anyOf` to support "looking up"
property definitions from the parent object
- this is still limited, eg: won't traverse up multiple-levels
after this change it appears `EmptyObject` is no-longer emitted by any
of the integration-tests - which is generally a good sign1 parent c67bcc8 commit 8c7de1f
File tree
40 files changed
+3714
-1342
lines changed- integration-tests
- typescript-angular/src/generated
- api.github.com.yaml
- azure-resource-manager.tsp
- typescript-axios/src/generated
- api.github.com.yaml
- azure-resource-manager.tsp
- typescript-express/src/generated
- api.github.com.yaml
- azure-resource-manager.tsp
- stripe.yaml
- typescript-fetch/src/generated
- api.github.com.yaml
- azure-resource-manager.tsp
- typescript-koa/src/generated
- api.github.com.yaml
- azure-resource-manager.tsp
- stripe.yaml
- packages
- openapi-code-generator/src
- core
- test
- typescript
- common
- schema-builders
- joi-runtime-snippets
- server
- typescript-common-runtime/src
- typescript-fetch-runtime/src
40 files changed
+3714
-1342
lines changedLines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 156 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 27 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments