Skip to content

Add a note about supported OpenAPI versions #176

@filippog

Description

@filippog

Describe the bug
The configuration I'm generating a client for declares parameters with in: body, the generation fails with openapi-python-client version: 0.5.4 however:

ERROR parsing POST /alerts within alert. Endpoint will not be generated.
Parameter must be declared in path or query
Parameter(name='alerts', param_in='body', description='The alerts to create', required=True, deprecated=False, allowEmptyValue=False, style=None, explode=False, allowReserved=False, param_schema=Reference(ref='#/definitions/postableAlerts'), example=None, examples=None, content=None)

To Reproduce
Steps to reproduce the behavior:
openapi-python-client generate --url https://raw.githubusercontent.com/prometheus/alertmanager/master/api/v2/openapi.yaml

I'm not familiar with OpenAPI specs and versions, e.g. if this is relevant? https://swagger.io/docs/specification/2-0/describing-request-body/

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✨ enhancementNew feature or improvement📝 documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions