Skip to content

Commit

Permalink
Generate only /acs/systems/list path
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Aug 6, 2024
1 parent 703ff14 commit 5e91a6e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 51 deletions.
2 changes: 1 addition & 1 deletion src/lib/blueprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const createRoutes = (
const routeMap = new Map<string, Route>()

Object.entries(paths)
.filter(([path]) => isFakeData || path.startsWith(targetPath))
.filter(([path]) => isFakeData || path === targetPath)
.forEach(([path, pathItem]) => {
const route = createRoute(path, pathItem, context)

Expand Down
52 changes: 2 additions & 50 deletions test/snapshots/seam-blueprint.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,6 @@ Generated by [AVA](https://avajs.dev).
jsonType: 'string',
name: 'system_type_display_name',
},
{
deprecationMessage: '',
description: '',
format: 'record',
isDeprecated: false,
isUndocumented: false,
jsonType: 'object',
name: 'visionline_metadata',
},
{
deprecationMessage: '',
description: '',
Expand Down Expand Up @@ -236,11 +227,7 @@ Generated by [AVA](https://avajs.dev).
{
codeSamples: [],
deprecationMessage: '',
description: `Returns a list of all [access control systems](https://docs.seam.co/latest/capability-guides/access-systems).␊
To filter the list of returned access control systems by a specific connected account ID, include the ␊
\`connected_account_id\` in the request body. If you omit the \`connected_account_id\` parameter, the ␊
response includes all access control systems connected to your workspace.`,
description: '',
isDeprecated: false,
isUndocumented: false,
parameters: [],
Expand All @@ -252,7 +239,7 @@ Generated by [AVA](https://avajs.dev).
parameters: [
{
deprecationMessage: '',
description: 'ID of the connected account by which to filter the list of returned access control systems.',
description: '',
format: 'uuid',
isDeprecated: false,
isRequired: false,
Expand All @@ -264,41 +251,6 @@ Generated by [AVA](https://avajs.dev).
preferredMethod: 'POST',
semanticMethod: 'POST',
},
response: {
description: 'OK',
resourceType: 'acs_system',
responseKey: 'acs_systems',
responseType: 'resource_list',
},
title: 'List ACS Systems',
},
{
codeSamples: [],
deprecationMessage: '',
description: '',
isDeprecated: false,
isUndocumented: false,
parameters: [],
path: '/acs/systems/list_compatible_credential_manager_acs_systems',
request: {
methods: [
'POST',
],
parameters: [
{
deprecationMessage: '',
description: '',
format: 'uuid',
isDeprecated: false,
isRequired: true,
isUndocumented: false,
name: 'acs_system_id',
type: 'string',
},
],
preferredMethod: 'POST',
semanticMethod: 'POST',
},
response: {
description: 'OK',
responseType: 'void',
Expand Down
Binary file modified test/snapshots/seam-blueprint.test.ts.snap
Binary file not shown.

0 comments on commit 5e91a6e

Please sign in to comment.