Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: add support for multi-format schemas #100

Closed
wants to merge 1 commit into from

Conversation

smoya
Copy link
Member

@smoya smoya commented Jul 18, 2023

Description

Required for and implemented in asyncapi/parser-js#814.

Additionally, schema.format() will always return a value. Will return the default format if undefined. This is BC.

Alternative for the BC is to keep the previous interface format(): string | undefined but from now on implementations will never return undefined.
As this Parser-API is in early stages, I think we could release a major version with such a change and avoid carrying this in the future. WDYT?

cc @fmvilas

Related issue(s)

Additionally, schema.format() will always return a value. Will return the default format if undefined.
@smoya
Copy link
Member Author

smoya commented Jul 24, 2023

Changes are now moved into #86. Closing this one

@smoya smoya closed this Jul 24, 2023
@smoya smoya deleted the feat/multiFormatSchema branch July 24, 2023 21:23
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.

1 participant