Skip to content

Commit

Permalink
fix(openapi): clean up after resolving schema name (#60)
Browse files Browse the repository at this point in the history
Signed-off-by: slonka <[email protected]>
  • Loading branch information
slonka authored Jan 15, 2025
1 parent efcfd6b commit 18d41f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openapi-tool/commands/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ exports.generateFiles = async (argv) => {
delete spec.components.schemas.schema
}
deepReplace(spec, "$ref", "#/components/schemas/schema", `#/components/schemas/${name}Item`)
spec.info['x-ref-schema-name'] = undefined
}
return spec
}))).filter((n) => n !== null);
Expand Down

0 comments on commit 18d41f9

Please sign in to comment.