You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the OpenAPI spec has the following, the generated type should properly reflect the oneOf schema with $ref and nullable by mapping it to the specific referenced type with a nullable modifier (repository? in this case).
Description
When the OpenAPI spec has the following, the generated type should properly reflect the
oneOf
schema with$ref
andnullable
by mapping it to the specific referenced type with a nullable modifier (repository? in this case).In this case, the generated type for the property repo should be,
However, the tool generates the following type instead,
Steps to Reproduce
Extract the content from the following json content
https://github.com/ballerina-platform/module-ballerinax-github/blob/master/docs/spec/openapi.json
Generate the files using the following command
Version
2201.10.0
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered: