Skip to content

Commit

Permalink
fastify#462 Allow nested to resolve for OpenAPI
Browse files Browse the repository at this point in the history
failing test fix ref id
  • Loading branch information
briceruzand authored Sep 20, 2021
1 parent e62fee5 commit 47114c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/spec/openapi/refs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47114c9

Please sign in to comment.