This rule validates that no SchemaObject
s can be empty object types
components:
schemas:
SomeApiResponse:
type: "object"
properties: # <-- valid because properties are specified
foo:
type: "string"
SomeApiResponse:
type: "object"
allOf: # <-- valid because properties can be discovered via allOf
- $ref: "#/components/schemas/Foo"
- $ref: "#/components/schemas/Bar"
components:
schemas:
SomeApiResponse:
type: "object" # <-- invalid because no properties are specified