Open deepmap-marcinr opened 5 years ago
@deepmap-marcinr @mgurevin Hi marcinr and mgurevin. I want to this feature too. https://github.com/deepmap/oapi-codegen/pull/212 is implements this issue. What do you think?
What would also be useful if to be able to directly control how the generated types are named.
Schemas, Operations, support Swagger extensions. Rather than inferring Go type names from those properties, we can also allow specifying them. Adding support for an extension like
x-go-typename
on those would allow for more flexibility in naming the Swagger properties more clearly since they don't have to map to the same Go type.