Skip to content

Commit

Permalink
Remove devices.delete from SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Nov 13, 2024
1 parent 6b1d4ad commit 8e280bd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions generate-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ const routePathSubresources: Partial<
'/user_identities': ['enrollment_automations'],
}

const undocumentedPaths = ['/devices/delete']

interface Route {
namespace: string
endpoints: Endpoint[]
Expand Down Expand Up @@ -137,9 +139,9 @@ const createRoutes = (): Route[] => {
}

const createRoute = (routePath: (typeof routePaths)[number]): Route => {
const endpointPaths = Object.keys(openapi.paths).filter((path) =>
isEndpointUnderRoute(path, routePath),
)
const endpointPaths = Object.keys(openapi.paths)
.filter((path) => isEndpointUnderRoute(path, routePath))
.filter((path) => undocumentedPaths.includes(path))

const namespace = routePath.split('/').join('_').slice(1)

Expand Down

0 comments on commit 8e280bd

Please sign in to comment.