We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When x-nullable is ignored when $ref is used on an object property by swift6 generator
x-nullable
$ref
$ yarn openapi-generator-cli version 7.13.0
https://gist.github.com/bogdan/f5fbf0f5940d5540b60ca086beef3fea
openapi-generator-cli generate -i spec.json -g swift6 -o .
Open Source/API/Models/Item.swift.
Source/API/Models/Item.swift
Actual:
public var activeListing: Listing
Expected:
public var activeListing: Listing?
Note that it is only reproducable when x-nullable and $ref are used together:
{ "active_listing": { "x-nullable": true, "$ref": "#/definitions/Listing" } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report Checklist
Description
When
x-nullable
is ignored when$ref
is used on an object property by swift6 generatoropenapi-generator version
OpenAPI declaration file content or url
https://gist.github.com/bogdan/f5fbf0f5940d5540b60ca086beef3fea
Steps to reproduce
Open
Source/API/Models/Item.swift
.Actual:
Expected:
Note that it is only reproducable when
x-nullable
and$ref
are used together:The text was updated successfully, but these errors were encountered: