Replies: 8 comments 2 replies
-
Hey @molind thanks for raising this - what version of the tool has this been performed using? |
Beta Was this translation helpful? Give feedback.
-
@jamietanna checked on 1.15.0 still errors:
|
Beta Was this translation helpful? Give feedback.
-
As a result I've used https://github.com/MortenGregersen/Bagbutik package. It's 2-in-1 generator and generation results for latest openapi schema from Apple to work with AppStoreConnect. Other golang openapi generators failed too. |
Beta Was this translation helpful? Give feedback.
-
Thanks for confirming! I've just run this through the vacuum OpenAPI validator, with: vacuum lint openapi.json -de And this flags that there are a number of issues:
Not saying this is the only problem, but if this isn't working across a few of the popular generators, it may be that the schema is invalid therefore won't work with well-formed validators |
Beta Was this translation helpful? Give feedback.
-
@jamietanna I agree, it could be the thing. Or some apple specific openapi extensions. I don't know. Just checked first error from validator.
And
and
Do I understand correctly that it's forbidden by the openapi spec? |
Beta Was this translation helpful? Give feedback.
-
Yes, correct - an
|
Beta Was this translation helpful? Give feedback.
-
Hi @molind, were you able to resolve this? Running into the same issue now with the ASC api as well. |
Beta Was this translation helpful? Give feedback.
-
Are you able to tweak the spec before you run |
Beta Was this translation helpful? Give feedback.
-
Schema could be downloaded there: https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip
first error for types generation:
also client contains duplicate functions. e.g.
oapi-codegen -generate client -o "client/client.gen.go" -package client openapi.json
then in code
and few others
Beta Was this translation helpful? Give feedback.
All reactions