Closed matteobassan closed 6 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
56fde5c
) 83.35% compared to head (a86b4e3
) 83.36%. Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Describe the PR Added support for "title" property, as defined by Openapi Specification Schema Object. The property is provided via "title" tag on structs.
Relation issue none
Additional context The problem arose from having to generate the API in typescript for the client through openapi-generator. Because some fields (marked with "x-nullable") were considered "Inline Models" and the openapi-generator CLI suggested using the "title" field to give it a unique name, i tried to find a ready-made solution with no luck.
The "schema" struct already contained the "Title" field, but this is never assigned, so I proceeded to complete the assignment of the field through the "title" tag.
Usage:
the following definition:
will generate this: