- changed title to Schemas containing circular references are ignored
- edited description
Schemas containing circular references are ignored
Issue #60
closed
When a schema that contains a circular reference is encountered that schema is ignored during validation. This means the mock examples of the schema are not validated.
For example:
"definitions": {
"Content": {
"type": "object",
"properties": {
"ancestors": {
"type": "array",
"items": {
"$ref": "#/definitions/Content"
}
}
}
}
Comments (2)
-
-
- changed status to closed
feat: add support for circular references in the swagger file
Close
#60BREAKING CHANGE:
swagger-mock-validator now supports validating schemas containing circular references. Prior to this change schemas containing circular references were ignored. If you have a schema that contains circular references and a mock that is not compatible with that schema the swagger-mock-validator will now fail.
It is recommended that consumers and providers coordinate upgrading to this release so that both sides agree on what is considered valid vs invalid.
→ <<cset dd61f7b15bb8>>
- Log in to comment