Closed
Description
We had a response typecheck that should not have because we made a typo in the properties list, as below:
required: [organization]
type: object
properties:
account: { $ref: '#/components/schemas/IOrganization' }
We were expecting the response typechecking to fail if organization wasn't present, but instead it was only looking for an optional account
value. It would be nice to have this throw an error on build - something like "Required property "organization" is not defined in the "properties" at [path.to.this.schema]".