Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
a0e2f33
updates OWASP headers
JaredCE Sep 24, 2025
6db9399
0.0.116
JaredCE Sep 24, 2025
577644c
Merge pull request #258 from JaredCE/update-owasp
JaredCE Sep 24, 2025
e5627a8
update documentation
JaredCE Sep 25, 2025
4a8942a
0.0.117
JaredCE Sep 25, 2025
9510102
Merge pull request #260 from JaredCE/owasp-documentation
JaredCE Sep 25, 2025
dd7cdfc
updates js-yaml to 4.1.1 and updates openapi-to-postmanv2 to 5.4.1
JaredCE Nov 20, 2025
80cc999
0.0.118
JaredCE Nov 20, 2025
610d6ac
Merge pull request #261 from JaredCE/dependency-updates
JaredCE Nov 20, 2025
7307b4a
add a beta workflow
JaredCE Jul 13, 2025
b4fff72
don't use version
JaredCE Jul 13, 2025
a843665
We shouldn't need to convert schemas for 3.1.x
JaredCE Jul 13, 2025
88c2111
add to README
JaredCE Jul 13, 2025
a7abe8b
adds tests and fixes case
JaredCE Jul 13, 2025
694224e
fixes casing of OpenAPI
JaredCE Jul 13, 2025
8a11949
check whether we should try and convert an OpenAPI schema
JaredCE Jul 13, 2025
ef23686
update README with warning
JaredCE Jul 13, 2025
76ef5a4
improve README
JaredCE Jul 13, 2025
c60b6da
updates redocly-core to latest version 1
JaredCE Jul 28, 2025
39cfa8c
should run tests on beta too
JaredCE Jul 28, 2025
404312a
add a beta workflow
JaredCE Jul 13, 2025
7d0a131
don't use version
JaredCE Jul 13, 2025
3bb4a04
We shouldn't need to convert schemas for 3.1.x
JaredCE Jul 13, 2025
9b48196
add to README
JaredCE Jul 13, 2025
ba2277c
check whether we should try and convert an OpenAPI schema
JaredCE Jul 13, 2025
6950cfb
update README with warning
JaredCE Jul 13, 2025
9d40db5
improve README
JaredCE Jul 13, 2025
f61a4ad
updates redocly-core to latest version 1
JaredCE Jul 28, 2025
0cb86ef
Merge branch 'beta' into beta-rebase
JaredCE Nov 20, 2025
04c1ec4
0.0.118-beta.1
JaredCE Nov 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
We shouldn't need to convert schemas for 3.1.x
  • Loading branch information
JaredCE committed Nov 20, 2025
commit 3bb4a042eb0c7ea9e79edc0086d5bbfae184c496
11 changes: 4 additions & 7 deletions src/schemaHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class SchemaHandler {
serverless.service?.provider?.apiGateway?.request?.schemas || {};
this.documentation = serverless.service.custom.documentation;
this.openAPI = openAPI;
this.shouldConvert = true;
if (/(3\.1\.\d)/g(this.openAPI.openapi)) this.shouldConvert = false;

this.shouldConvert = true;
if (/(3\.1\.\d)/g.test(this.openAPI.openapi)) this.shouldConvert = false;
Expand Down Expand Up @@ -165,6 +167,7 @@ class SchemaHandler {
`dereferenced model: ${JSON.stringify(dereferencedSchema)}`
);

if (this.shouldConvert) {
this.logger.verbose(`converting model: ${name}`);
const convertedSchemas = SchemaConvertor.convert(
dereferencedSchema,
Expand All @@ -177,13 +180,7 @@ class SchemaHandler {
return convertedSchemas;
}

this.logger.verbose(
`dereferenced model: ${JSON.stringify({
schemas: { [name]: dereferencedSchema },
})}`
);

return { schemas: { [name]: dereferencedSchema } };
return dereferencedSchema;
}

async __dereferenceSchema(schema) {
Expand Down