Skip to content

feat(openapi): adding a command to resolve circular and recursive references #2958

feat(openapi): adding a command to resolve circular and recursive references

feat(openapi): adding a command to resolve circular and recursive references #2958

Triggered via pull request January 8, 2025 13:55
Status Failure
Total duration 1m 15s
Artifacts

ci.yml

on: pull_request
lint
26s
lint
GitHub Action Dry Run
1m 4s
GitHub Action Dry Run
Matrix: Test Suite
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 13 warnings
lint
Process completed with exit code 1.
__tests__/commands/openapi/refs.test.ts > openapi refs > comparison of OpenAPI files > should process circular references if the schema does not contain properties: __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
Test Suite (lts/-1)
Process completed with exit code 1.
__tests__/commands/openapi/refs.test.ts > openapi refs > comparison of OpenAPI files > should process circular references if the schema does not contain properties: __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
Test Suite (latest)
Process completed with exit code 1.
__tests__/commands/openapi/refs.test.ts > openapi refs > comparison of OpenAPI files > should process circular references if the schema does not contain properties: __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
Test Suite (lts/*)
Process completed with exit code 1.
GitHub Action Dry Run
Token "Error" does not exist.
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test Suite (lts/-1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test Suite (latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test Suite (lts/*)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
GitHub Action Dry Run
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
GitHub Action Dry Run
`pre` execution is not supported for local action from './rdme-repo/'
GitHub Action Dry Run
`pre` execution is not supported for local action from './rdme-repo/'
GitHub Action Dry Run
`pre` execution is not supported for local action from './rdme-repo/'
GitHub Action Dry Run
`pre` execution is not supported for local action from './rdme-repo/'
GitHub Action Dry Run
`pre` execution is not supported for local action from './rdme-repo/'
GitHub Action Dry Run
`pre` execution is not supported for local action from './rdme-repo/'
GitHub Action Dry Run
`pre` execution is not supported for local action from './rdme-repo/'
GitHub Action Dry Run
`pre` execution is not supported for local action from './rdme-repo/'