Skip to content

Commit a653202

Browse files
committed
Remove devices.delete from SDK
1 parent 6b1d4ad commit a653202

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

generate-routes.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ const routePathSubresources: Partial<
9595
'/user_identities': ['enrollment_automations'],
9696
}
9797

98+
const undocumentedPaths = ['/devices/delete']
99+
98100
interface Route {
99101
namespace: string
100102
endpoints: Endpoint[]
@@ -137,9 +139,9 @@ const createRoutes = (): Route[] => {
137139
}
138140

139141
const createRoute = (routePath: (typeof routePaths)[number]): Route => {
140-
const endpointPaths = Object.keys(openapi.paths).filter((path) =>
141-
isEndpointUnderRoute(path, routePath),
142-
)
142+
const endpointPaths = Object.keys(openapi.paths)
143+
.filter((path) => isEndpointUnderRoute(path, routePath))
144+
.filter((path) => !undocumentedPaths.includes(path))
143145

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

0 commit comments

Comments
 (0)