Skip to content

Commit

Permalink
Revert "verify nested namespace"
Browse files Browse the repository at this point in the history
This reverts commit 5067c79.
  • Loading branch information
mikewuu committed Sep 10, 2024
1 parent 5067c79 commit 9141a59
Show file tree
Hide file tree
Showing 5 changed files with 359 additions and 95 deletions.
29 changes: 0 additions & 29 deletions test/fixtures/types/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,34 +157,5 @@ export default {
'x-title': 'List foos',
},
},
'/bars/baz/quexes/get': {
get: {
operationId: 'QuexesGetGet',
responses: {
200: {
content: {
'application/json': {
schema: {
properties: {
ok: { type: 'boolean' },
foo: { $ref: '#/components/schemas/bars' },
},
required: ['quex', 'ok'],
type: 'object',
},
},
},
description: 'Get a quex by ID.',
},
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
security: [],
summary: '/bars/baz/quexes/get',
tags: ['/bars/baz/quexes'],
'x-response-key': 'quex',
'x-title': 'Get a quex',
},
},
},
}
64 changes: 0 additions & 64 deletions test/snapshots/blueprint.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,38 +399,6 @@ Generated by [AVA](https://avajs.dev).
path: '/foos',
subroutes: [],
},
{
endpoints: [
{
codeSamples: [],
deprecationMessage: '',
description: '',
isDeprecated: false,
isUndocumented: false,
name: 'get',
path: '/bars/baz/quexes/get',
request: {
methods: [
'GET',
],
parameters: [],
preferredMethod: 'GET',
semanticMethod: 'GET',
},
response: {
description: 'Unknown',
responseType: 'void',
},
title: 'Get a quex',
},
],
name: 'quexes',
namespace: {
path: '/bars/baz',
},
path: '/bars/baz/quexes',
subroutes: [],
},
],
title: 'Foo',
}
Expand Down Expand Up @@ -870,38 +838,6 @@ Generated by [AVA](https://avajs.dev).
path: '/foos',
subroutes: [],
},
{
endpoints: [
{
codeSamples: [],
deprecationMessage: '',
description: '',
isDeprecated: false,
isUndocumented: false,
name: 'get',
path: '/bars/baz/quexes/get',
request: {
methods: [
'GET',
],
parameters: [],
preferredMethod: 'GET',
semanticMethod: 'GET',
},
response: {
description: 'Unknown',
responseType: 'void',
},
title: 'Get a quex',
},
],
name: 'quexes',
namespace: {
path: '/bars/baz',
},
path: '/bars/baz/quexes',
subroutes: [],
},
],
title: 'Foo',
}
Binary file modified test/snapshots/blueprint.test.ts.snap
Binary file not shown.
Loading

0 comments on commit 9141a59

Please sign in to comment.