Schema cannot be a JSON reference that points outside '#/definitions'

Issue ID: validation-reference-schema

Description

You have defined the schema in question as a JSON reference that points outside of the definitions object. This is not possible.

For more details, see the OpenAPI Specification.

Remediation

Make sure that all schemas that are JSON references are defined in the definitions object.