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
The OpenAPI spec:
"TestEntityDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string", "nullable": true }, "created": { "type": "string", "format": "date-time" }, "lastModified": { "type": "string", "format": "date-time" } }, "additionalProperties": false },
The generated type:
export type TestEntityDto = { id?: string; name?: string | null; created?: string; lastModified?: string; };
Why is the id nullable?
id
The text was updated successfully, but these errors were encountered:
It's not nullable, it's optional, because you didn't mark it as required: https://swagger.io/docs/specification/v3_0/data-models/data-types/#objects
Sorry, something went wrong.
No branches or pull requests
The OpenAPI spec:
The generated type:
Why is the
id
nullable?The text was updated successfully, but these errors were encountered: