We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b1d4ad commit a653202Copy full SHA for a653202
generate-routes.ts
@@ -95,6 +95,8 @@ const routePathSubresources: Partial<
95
'/user_identities': ['enrollment_automations'],
96
}
97
98
+const undocumentedPaths = ['/devices/delete']
99
+
100
interface Route {
101
namespace: string
102
endpoints: Endpoint[]
@@ -137,9 +139,9 @@ const createRoutes = (): Route[] => {
137
139
138
140
141
const createRoute = (routePath: (typeof routePaths)[number]): Route => {
- const endpointPaths = Object.keys(openapi.paths).filter((path) =>
- isEndpointUnderRoute(path, routePath),
142
- )
+ const endpointPaths = Object.keys(openapi.paths)
143
+ .filter((path) => isEndpointUnderRoute(path, routePath))
144
+ .filter((path) => !undocumentedPaths.includes(path))
145
146
const namespace = routePath.split('/').join('_').slice(1)
147
0 commit comments