Skip to content

Commit 8c7de1f

Browse files
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 sign
1 parent c67bcc8 commit 8c7de1f

File tree

40 files changed

+3714
-1342
lines changed

40 files changed

+3714
-1342
lines changed

integration-tests/typescript-angular/src/generated/api.github.com.yaml/client.service.ts

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration-tests/typescript-angular/src/generated/api.github.com.yaml/models.ts

Lines changed: 156 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration-tests/typescript-angular/src/generated/azure-resource-manager.tsp/models.ts

Lines changed: 27 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration-tests/typescript-axios/src/generated/api.github.com.yaml/client.ts

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

Comments
 (0)