Skip to content

Support non-schema components and references (e.g. parameters) #288

Closed
@Aniketghumed

Description

@Aniketghumed

Describe the bug
When building the client with the path parameter in the yaml file which are passed through reference, it does not consider the parameter and the generated client does not have those referenced parameters.

To Reproduce
Steps to reproduce the behavior:

  1. Take any open api sample yaml file that have path parameters in it.
  2. Pass that parameter as reference like for example,
    parameters:
    - $ref: '#/components/parameters/sampleparam'
  3. Generate client using command "openapi-python-client generate --path <yaml_path>"

Expected behavior
It should consider the path parameters passed through reference too same as the parameters that it considers when passed with the standard way.

OpenAPI Spec File
Any openapi spec file could be used.

Desktop (please complete the following information):

  • OS: macOS 10.15.6
  • Python Version: 3.7.3
  • openapi-python-client 0.7.3

Additional context
It does not raise any error while building the client, but it does not have the referenced parameters in the generated client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions