artsmolin / pythogen

Awesome python HTTP-clients from OpenAPI
https://artsmolin.github.io/pythogen/
MIT License
66 stars 6 forks source link

Support allOf in paths properties #70

Closed artsmolin closed 1 year ago

artsmolin commented 1 year ago

Example of OpenAPI path:

/send-otp:
    post:
      description: Send OTP-code
      operationId: otp_send
      parameters:
        - description: Pika-pika!
          in: header
          name: X-Device-Platform
          required: true
          schema:
            allOf:
              - {$ref: '#/components/schemas/Platform'}
            description: Pika-pika!
            title: X-Device-Platform

It's already supported for schemas (look at the path /allof and schema #/components/schemas/AllOfResp)

artsmolin commented 1 year ago

https://github.com/artsmolin/pythogen/commit/3f7d0c50e8c7d43a753b637b41321187a7ab8c9d