ogen
ogen copied to clipboard
gen: find a better way to deal with names that do not fit the go specification
Sample schema component:
components:
schemas:
12345:
type: object
properties:
test:
type: string
Generated type:
// Ref: #/components/schemas/12345
type R12345 struct {
Test OptString "json:\"test\""
}
It would be nice to generate more meaningful name prefixes based on context.