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
Nestia swagger generates incorrect schema for type record.
I have an dto:
export type UserGameInfoDto = { achievements: number[]; actions: Record<string, number>; };
"UserGameInfoDto": { "type": "object", "properties": { "achievements": { "type": "array", "items": { "type": "number" } }, "actions": { "type": "object", "additionalProperties": { "type": "number" } } }, "nullable": false, "required": ["achievements", "actions"] },
"UserGameInfoDto": { "type": "object", "properties": { "achievements": { "type": "array", "items": { "type": "number" } }, "actions": { "$ref": "#/components/schemas/Recordstringnumber" } }, "nullable": false, "required": ["achievements", "actions"] }, "Recordstringnumber": { "type": "object", "properties": {}, "nullable": false, "description": "Construct a type with a set of properties K of type T" },
The swagger support type dictionary (https://swagger.io/docs/specification/data-models/dictionaries/) but nestia doesn't generate it.
The text was updated successfully, but these errors were encountered:
Checked in onto typia playground website, and found bug in JSON schema generator.
typia
Will fix it soon.
https://typia.io/playground/?script=JYWwDg9gTgLgBDAnmYBDOAzKERwERIqp4DcAUGYWgHQDGUApqjAwJIDOAPAEoO3QATTuxhRgAOwDmAGjjiAriABGDKAD41ACgCU5KqmoArdhHHVUYMABtgtZsFOcA2r35QhIsVNkLlqtQC6WrpAA
Sorry, something went wrong.
Upgrade to typia@5.5.8, then be fixed.
typia@5.5.8
samchon/typia@c618447
Merge pull request #1019 from samchon/features/dynamic
ac2d8b4
Fix samchon/nestia#859: JSON schema of dynamic object.
samchon
No branches or pull requests
Summary
Nestia swagger generates incorrect schema for type record.
I have an dto:
The swagger support type dictionary (https://swagger.io/docs/specification/data-models/dictionaries/) but nestia doesn't generate it.
The text was updated successfully, but these errors were encountered: