Open thejeff77 opened 1 year ago
Try moving your inline schema definitions into proper schema definitions
@cjbooms thanks for the suggestion!
I checked the validity of my example, and it seems it has issues, like it needs a response block defined.
I believe inline model definitions are valid though. This is something I pulled from Spring's spring doc oapi spec pulled from several services. If an enum is not reused, springdoc will opt to define it inline.
Copying these and mutating them to fix generator issues is less than desired for valid spec files.
Inline schemas are valid but support in fabrikt isn't present in all circumstances. https://github.com/cjbooms/fabrikt/issues/187
Generally it's just easier to define a schema for these in the schema section as that provides fabrikt with a unique class name it can use
Ok thanks for the workaround, we've converted to string types where we need to use this generator. Will leave this open as a feature request.
When building certain spec files with parameters, building the final models results in the following.
Test file:
Generated File that won't build
V1SomeresourceClient.kt
: