File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,8 @@ const routePathSubresources: Partial<
9595 '/user_identities' : [ 'enrollment_automations' ] ,
9696}
9797
98+ const undocumentedPaths = [ '/devices/delete' ]
99+
98100interface Route {
99101 namespace : string
100102 endpoints : Endpoint [ ]
@@ -137,9 +139,9 @@ const createRoutes = (): Route[] => {
137139}
138140
139141const 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
You can’t perform that action at this time.
0 commit comments