Skip to content

expose option for openapi version#216

Merged
EnriqueL8 merged 1 commit intohyperledger:mainfrom
kaleido-io:open-api-version
Apr 28, 2026
Merged

expose option for openapi version#216
EnriqueL8 merged 1 commit intohyperledger:mainfrom
kaleido-io:open-api-version

Conversation

@hosie
Copy link
Copy Markdown
Contributor

@hosie hosie commented Apr 28, 2026

When using certain JSON schema constructs ( such as specifying type as an array), the generated API document will fail validation because those syntax were introduces in JSON Schema draft 2019-09. OpenAPI 3.0.x aligns with earlier JSON Schema drafts where type MUST be a single string.

Open API 3.1.1 aligned with JSON Schema 2020-12 where type may be a string or an array of unique strings .

So rather than hard coding the openapi version, this PR allows it to be configurable, but continues to default to 3.0.2

Signed-off-by: John Hosie <john.hosie@kaleido.io>
@hosie hosie requested a review from a team as a code owner April 28, 2026 16:50
Copy link
Copy Markdown
Contributor

@EnriqueL8 EnriqueL8 left a comment

Choose a reason for hiding this comment

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

Thanks @hosie

@EnriqueL8 EnriqueL8 merged commit 9ed7ae4 into hyperledger:main Apr 28, 2026
4 checks passed
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.

2 participants