Skip to content

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

Closed
smoya wants to merge 1 commit into
asyncapi:masterfrom
smoya:feat/multiFormatSchema
Closed

feat!: add support for multi-format schemas#100
smoya wants to merge 1 commit into
asyncapi:masterfrom
smoya:feat/multiFormatSchema

Conversation

@smoya

@smoya smoya commented Jul 18, 2023

Copy link
Copy Markdown
Member

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

smoya commented Jul 24, 2023

Copy link
Copy Markdown
Member Author

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