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
I have this Swagger file:
"status": { "type": "object", "nullable": true, "properties": { "conditions": { "type": "array", "nullable": true, "items": { "type": "object", "oneOf": [{ "required": ["message", "status", "type"] }], "properties": { "message": { "type": "string" }, "status": { "type": "string", "enum": ["Unknown", "True", "False"] }, "type": { "type": "string", "enum": ["Ready"] } } } } } }
This outputs code like this, where the object has become any:
status?: | ({ conditions?: (any[] | null) | undefined } | null) | undefined
If I remove oneOf, it works correctly:
oneOf
"status": { "type": "object", "nullable": true, "properties": { "conditions": { "type": "array", "nullable": true, "items": { "type": "object", "required": ["message", "status", "type"], "properties": { "message": { "type": "string" }, "status": { "type": "string", "enum": ["Unknown", "True", "False"] }, "type": { "type": "string", "enum": ["Ready"] } } } } } }
The text was updated successfully, but these errors were encountered:
Is this related to #503 ?
Sorry, something went wrong.
@Xiphe yes
d97fc2e
I assume then this is fixed with #503 right? Please re-open in case I misunderstood :)
No branches or pull requests
I have this Swagger file:
This outputs code like this, where the object has become any:
If I remove
oneOf
, it works correctly:The text was updated successfully, but these errors were encountered: