openapi-processor / openapi-processor-core

moved into openapi-processor-base
Apache License 2.0
7 stars 5 forks source link

do not crash on allOf with a type-less schema #48

Closed hauner closed 3 years ago

hauner commented 3 years ago

hitting a schema like this one will crash the processor:

schema:
  type: object
  properties:
    foo:
      allOf:
        - readOnly: true                       # type-less schema
        - $ref: '#/components/schemas/Foo'     # does not matter if it is $ref

It should not crash, even if it does not handle the schema without a type.