feat(openapi): adding a command to resolve circular and recursive references #2946
Annotations
2 errors and 1 warning
Build and run tests:
__tests__/commands/openapi/refs.test.ts#L121
AssertionError: expected { openapi: '3.1.0', …(3) } to strictly equal { openapi: '3.1.0', …(3) }
- Expected
+ Received
Object {
"components": Object {
"schemas": Object {
"ObjectA": Object {
"properties": Object {
"referenceToB": Object {
- "$ref": "#/components/schemas/ObjectB",
+ "$ref": "#/components/schemas/ObjectARef",
},
},
"type": "object",
},
"ObjectARef": Object {
"properties": Object {
"referenceToB": Object {
"type": "object",
},
},
"type": "object",
},
"ObjectB": Object {
- "$ref": "#/components/schemas/ObjectARef",
+ "$ref": "#/components/schemas/ObjectA",
},
},
},
"info": Object {
"title": "Cyclic Schema Example",
"version": "1.0.0",
},
"openapi": "3.1.0",
"paths": Object {},
}
❯ __tests__/commands/openapi/refs.test.ts:121:31
|
Build and run tests
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading