Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI Generation Python 3.1.0 #1315

Open
JoshPiper opened this issue Sep 11, 2024 · 0 comments
Open

OpenAPI Generation Python 3.1.0 #1315

JoshPiper opened this issue Sep 11, 2024 · 0 comments
Labels
🐞 Bug Something isn't working

Comments

@JoshPiper
Copy link
Contributor

Expected Behavior

Generation

Actual Behavior

Error(s) encountered while generating, client was not created

Failed to parse OpenAPI document

1 validation error for OpenAPI
paths./v3/media/upload
  Input should be a valid dictionary or instance of PathItem [type=model_type, input_value=[], input_type=list]
    For further information visit https://errors.pydantic.dev/2.9/v/model_type

When generating from URL.

Removing the given path dict key (value is an empty list object), allow generation, but provides another warning.

WARNING parsing GET /v3/products/{product}/tickets within product_tickets. Endpoint will not be generated.

cannot parse parameter of endpoint listProductTickets: Could not find reference in parsed models or enums

Reference(ref='#/components/schemas/TicketFilter')


Unable to process schema /components/schemas/TicketFilter:



Failure to process schema has resulted in the removal of:
/components/schemas/TicketFilter

Schema(title=None, multipleOf=None, maximum=None, exclusiveMaximum=None, minimum=None, exclusiveMinimum=None, maxLength=None, minLength=None, pattern=None, maxItems=None, minItems=None, uniqueItems=None, maxProperties=None, minProperties=None, required=None, enum=[['open', 'locked']], const=None, type=<DataType.STRING: 'string'>, allOf=[], oneOf=[], anyOf=[], schema_not=None, items=None, properties=None, additionalProperties=None, description='Enum', schema_format=None, default=None, nullable=False, discriminator=None, readOnly=None, writeOnly=None, xml=None, externalDocs=None, example=None, deprecated=None)

Reproduction Steps

Using openapi-python-client 0.21.5 on Python 3.12, call generate command.

Browsers

openapi-python-client 0.21.5, Python 3.12

Example URL

https://www.gmodstore.com/openapi

Pivity Marketplace Version

v18.14.5

Event ID

No response

Additional Information

No response

@JoshPiper JoshPiper added the 🐞 Bug Something isn't working label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant