Closed ihsanciftci closed 1 year ago
After debugging the API, I have realized that instead of setting type attribute, API adds it to types attribute. Is it related with v3.1?
yes, please see Swagger Core Wiki
and this comment for a discouraged option to have type
bound to types
For 3.1 specs please use Yaml31
and Json31
helper classes for serialization
please close ticket if this answers your question
I'm parsing sendgrid api: https://raw.githubusercontent.com/sendgrid/sendgrid-oai/main/oai_v3_stoplight.json The types of some schemas are null but they are not in the json.
PS. Java Version: 18 swagger-parser version: 2.1.9
(I'm using stoplight version because original version (https://raw.githubusercontent.com/sendgrid/sendgrid-oai/main/oas_v3.json) contains references to other files. And swagger java parser cannot handle reference name containing curly braces. That's another story or bug)
e.g. for schema type is null