Open jayvdb opened 1 year ago
This is something I'm looking into but V3 is not supported for client side code generation as things stand.
If it isnt easy to fix, perhaps the docs / error message can improved to indicate only v2 is supported at present.
I don't know what the CLI is doing but the "--api v3" should have triggered some kind of not supported error, but I wonder if it's because the spec yaml is being provided before the --api, and it's always parsed as v2 which will fail since your spec is v3, so we never get to processing the "--api v3" argument.
paperclip --out models_paperclip --api v3 my_spec.yaml
and paperclip --api v3 --out models_paperclip my_spec.yaml
have the same error.
I built paperclip master CLI with
(Did I miss a feature needed?)
When I use it with a v3 spec, I get
If I convert the same spec to v2, using https://github.com/LucyBot-Inc/api-spec-converter, it works perfectly