From 47114c91f66ab80225983dbb146dfe9d98c27cde Mon Sep 17 00:00:00 2001 From: Brice Ruzand Date: Mon, 20 Sep 2021 09:45:44 +0200 Subject: [PATCH] #462 Allow nested to resolve for OpenAPI failing test fix ref id --- test/spec/openapi/refs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/spec/openapi/refs.js b/test/spec/openapi/refs.js index e01348b2..33abf4ea 100644 --- a/test/spec/openapi/refs.js +++ b/test/spec/openapi/refs.js @@ -54,7 +54,7 @@ test('support nested $ref schema', (t) => { t.match(Object.keys(openapiObject.components.schemas), ['def-0', 'def-1']) // OrderItem ref is not prefixed by '#/components/schemas/' - t.equal(openapiObject.components.schemas['def-1'].properties.products.items.$ref, '#/components/schemas/OrderItem') + t.equal(openapiObject.components.schemas['def-1'].properties.products.items.$ref, '#/components/schemas/def-0') // open api validation failed // ENOENT: no such file or directory ${cwd}/OrderItem