api2html icon indicating copy to clipboard operation
api2html copied to clipboard

combine schemas not working in 'paths'

Open srischard opened this issue 6 years ago • 1 comments

combining schemas in path is not working e.g.

paths:
  /pets:
    patch:
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
                - $ref: '#/components/schemas/Cat'
                - $ref: '#/components/schemas/Dog'

but it's working in

components:
  schemas:
  ...

srischard avatar Nov 11 '19 17:11 srischard

Hi @srischard, this seems to be an upstream bug in https://github.com/mermade/widdershins, I suggest you file a bug report there. Thanks in advance!

tobilg avatar Nov 16 '19 16:11 tobilg