Closed mars3142 closed 2 years ago
Hi, could you please elaborate on this?
We generate with OpenAPI a JSON and this is converted into dart classes. Within the JSON we see a property "version", which can be set by the JSON creators. But I can't find any reference to this field within the dart code. That's why I asked, if it's possible to generate an info object with that version (and other data).
For more information see https://swagger.io/specification/#info-object and because the version is required, it's save to include it into the generated classes.
My OpenAPI json does include a property info->version.
Is it possible to expose the info data within the generated classes? I need it to send it to my backend for frontend, so we can create a versioned API.
I would like to create a PR, if someone point me into the right direction, where I can add this.