Azure / azure-openapi-validator

Azure Open API Validator
MIT License
47 stars 46 forks source link

$ref siblings #705

Closed mikeharder closed 5 months ago

mikeharder commented 5 months ago

The behavior of $ref sibling propeties varies across different spec versions:

Allowed - All Properties

Allowed - Selected Properties

Ignored

Mixing specifications from one bucket, with tools from another bucket, may be problematic.

For example, given this spec:

schemas:
  Foo:
    myProp:
      $ref: "#/components/schemas/Bar"
      readonly: true

The readonly property may be ignored or included, depending on the spec version.