OpenAPITools / openapi-diff

Utility for comparing two OpenAPI specifications.
Apache License 2.0
780 stars 153 forks source link

Allowing circular references #542

Closed alexandreczg closed 12 months ago

alexandreczg commented 12 months ago

Is there a way to generate the report allowing for circular dependencies on the parameters?

OpenApiDiffErrorImpl [VError]: ReferenceError: Circular $ref pointer found at /builds/#/components/schemas/Content/properties/children/items
    at /usr/local/lib/node_modules/openapi-diff/dist/openapi-diff/spec-differ/diff-finder/json-schema-diff.js:27:15
    at Generator.throw (<anonymous>)
    at rejected (/usr/local/lib/node_modules/openapi-diff/dist/openapi-diff/spec-differ/diff-finder/json-schema-diff.js:6:65) {
  jse_shortmsg: 'ReferenceError: Circular $ref pointer found at /builds/#/components/schemas/Content/properties/children/items',
  jse_info: {},
  code: 'OPENAPI_DIFF_DIFF_ERROR'
}

Thank you!

joschi commented 12 months ago

@alexandreczg You're using a different openapi-diff than this project. 😉

➡️ https://github.com/Azure/openapi-diff