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

[Update 12] Introduce new APIs to convert a Ballerina Type Symbol to a Json Schema #1821

Merged
merged 14 commits into from
Feb 24, 2025

Conversation

TharmiganK
Copy link
Contributor

@TharmiganK TharmiganK commented Feb 19, 2025

Purpose

$Subject

Fixes: ballerina-platform/ballerina-library#7610

Note: This is only supported for the anydata types, for other types an unsupported operation exception will be thrown.

Additionally, we have supported enable expansion option which will replace the definition references by inline schemas which will make the definition obsolete. Please note that this will only work for types which does not have cyclic references.

@TharmiganK TharmiganK changed the title [Update 12] Introduce a new API to convert a Ballerina Type Symbol to a Json Schema(String Format) [Update 12] Introduce a new API to convert a Ballerina Type Symbol to a Json Schema Feb 24, 2025
@TharmiganK TharmiganK changed the title [Update 12] Introduce a new API to convert a Ballerina Type Symbol to a Json Schema [Update 12] Introduce new APIs to convert a Ballerina Type Symbol to a Json Schema Feb 24, 2025
Co-authored-by: Ayesh Almeida <[email protected]>
@TharmiganK TharmiganK merged commit caaef29 into master Feb 24, 2025
4 checks passed
@TharmiganK TharmiganK deleted the type-api branch February 24, 2025 14:16
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.

Introduce a new API within the openapi package to convert a Ballerina Type Symbol to a JSON Schema.
4 participants