Azure / Azure/openapi-diff

Allowing circular references

Ouverte
#274 5 commentaires 5 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C#
Étoiles
290
Forks
50
Merge moyen
5 j 13 h
PR mergées (30 j)
5

Description

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 ()
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!

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start at openapi-diff/dist/openapi-diff/spec-differ/diff-finder/json-schema-diff.js, where the circular $ref error is reported, and trace how the Content schema is compared. Determine the intended behavior for /components/schemas/Content/properties/children/items and define completion as generating a report without failing on that circular reference, with coverage for the example specification.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript, openapi
Domaine
api, backend-api-design
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.