Skip to content

feat: initial support for anyOf#55

Merged
mnahkies merged 6 commits into
masterfrom
mn/46/anyOf
Apr 22, 2023
Merged

feat: initial support for anyOf#55
mnahkies merged 6 commits into
masterfrom
mn/46/anyOf

Conversation

@mnahkies

Copy link
Copy Markdown
Owner

closes #46

: ""

result.push(object([...properties, additionalProperties]))
const emptyObject = !additionalProperties && properties.length === 0 ? "[key: string]: never" : ""

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Github spec includes schemas like:

              schema:
                type: object
                properties: {}
                additionalProperties: false

Often to represent an empty response. This should now type them more appropriately, hopefully without any majority usability issues introduced.

@mnahkies mnahkies marked this pull request as ready for review April 22, 2023 14:27
@mnahkies mnahkies enabled auto-merge (squash) April 22, 2023 14:28
@mnahkies mnahkies merged commit a61cbb9 into master Apr 22, 2023
@mnahkies mnahkies deleted the mn/46/anyOf branch April 22, 2023 14:30
mnahkies added a commit that referenced this pull request Apr 23, 2023
- obtained from https://github.com/stripe/openapi

- licensed as MIT
(https://github.com/stripe/openapi/blob/master/LICENSE)
  although this is currently missing from the specification itself
  (see stripe/openapi#120)

surfaced numerous issues that are now fixed:
- #50
- #55
- #56
- #57
- #58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add inital support for anyOf

1 participant