File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/react-openapi/src/schemas Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export async function resolveOpenAPISchemas(
24
24
25
25
const schema = await dereferenceFilesystem ( filesystem ) ;
26
26
27
- const schemas = getOpenAPIComponents ( schema , selectedSchemas ) ;
27
+ const schemas = filterSelectedOpenAPISchemas ( schema , selectedSchemas ) ;
28
28
29
29
if ( schemas . length === 0 ) {
30
30
return null ;
@@ -33,9 +33,9 @@ export async function resolveOpenAPISchemas(
33
33
return { schemas } ;
34
34
}
35
35
/**
36
- * Get OpenAPI components. schemas that are not ignored .
36
+ * Extract selected schemas from the OpenAPI document .
37
37
*/
38
- function getOpenAPIComponents (
38
+ export function filterSelectedOpenAPISchemas (
39
39
schema : OpenAPIV3 . Document | OpenAPIV3_1 . Document ,
40
40
selectedSchemas : string [ ]
41
41
) : OpenAPISchema [ ] {
You can’t perform that action at this time.
0 commit comments