You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a bug, and I am new to the openapi ecosystem, but I am unable to solve this issue given the documentation provided. I have a very simple API implemented using Django-rest-framework and I have DRF auto-produce the openapi3 schema. I've validated with various tools that the schema is valid. However when I come to use openapi-python-client to generate a lib I get the following warning/errors (which I've abbreviated
Warning(s) encountered while generating. Client was generated, but some pieces may be missing
ERROR parsing PUT /api/gene/{id}/ within default. Endpoint will not be generated.
cannot parse body of endpoint UpdateGene
...
ERROR parsing POST /api/gene/{id}/ within default. Endpoint will not be generated.
cannot parse body of endpoint CreateGene
...
ERROR parsing GET /api/genes within default. Endpoint will not be generated.
cannot parse response of endpoint listGenes
I can not tell from the information provided if this problem is rooted in my use of DRF or openapi-python-client
I include the yaml doc in question below, though it doesn't immediately seem incorrect to me
@DanBuchan I don't think there's anything wrong with your schema. openapi-python-client doesn't support inline objects yet (#125, #140, and #162 all complain about this- it's high on the todo list). For now any object-like schemas have to be declared using components and then accessed using a ref
I'm going to close this issue since I have some many already asking about the same thing 😅. I expect 0.6.0 to be released early next week, then I'll start work on the features for 0.7.0 which will include this.
Not sure if this is a bug, and I am new to the openapi ecosystem, but I am unable to solve this issue given the documentation provided. I have a very simple API implemented using Django-rest-framework and I have DRF auto-produce the openapi3 schema. I've validated with various tools that the schema is valid. However when I come to use openapi-python-client to generate a lib I get the following warning/errors (which I've abbreviated
I can not tell from the information provided if this problem is rooted in my use of DRF or openapi-python-client
I include the yaml doc in question below, though it doesn't immediately seem incorrect to me
The text was updated successfully, but these errors were encountered: