Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .changeset/spicy-cats-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@redocly/openapi-core": patch
---

Applied NPM audit fix to detect potential security vulnerabilities.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`E2E build-docs build docs with config option 1`] = `
Found nested/redocly.yaml and using theme.openapi options
Prerendering docs

🎉 bundled successfully in: nested/redoc-static.html (36 KiB) [⏱ <test>ms].
🎉 bundled successfully in: nested/redoc-static.html (9 KiB) [⏱ <test>ms].


`;
2 changes: 1 addition & 1 deletion __tests__/build-docs/simple-build-docs/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`E2E build-docs simple build-docs 1`] = `
Found undefined and using theme.openapi options
Prerendering docs

🎉 bundled successfully in: redoc-static.html (333 KiB) [⏱ <test>ms].
🎉 bundled successfully in: redoc-static.html (286 KiB) [⏱ <test>ms].


`;
2 changes: 1 addition & 1 deletion __tests__/commands.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ describe('E2E', () => {
(<any>expect(cleanupOutput(result))).toMatchSpecificSnapshot(join(testPath, 'snapshot.js'));

expect(fs.existsSync(join(testPath, 'nested/redoc-static.html'))).toEqual(true);
expect(fs.statSync(join(testPath, 'nested/redoc-static.html')).size).toEqual(36354);
expect(fs.statSync(join(testPath, 'nested/redoc-static.html')).size).toEqual(8239);
});
});

Expand Down
554 changes: 277 additions & 277 deletions __tests__/smoke/pre-built/redoc.html

Large diffs are not rendered by default.

588 changes: 344 additions & 244 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"get-port-please": "3.0.1",
"glob": "7.2.3",
"handlebars": "4.7.9",
"js-yaml": "4.1.1",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npm audit fix added it.

"mobx": "6.12.3",
"@opentelemetry/api": "1.9.0",
"@opentelemetry/exporter-trace-otlp-http": "0.53.0",
Expand All @@ -61,7 +62,7 @@
"redoc": "2.5.0",
"semver": "7.7.4",
"simple-websocket": "9.1.0",
"styled-components": "6.3.9",
"styled-components": "6.4.1",
"yargs": "17.0.1"
},
"devDependencies": {
Expand Down
5 changes: 4 additions & 1 deletion packages/core/src/oas-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ export function detectSpec(root: unknown): SpecVersion {
return SpecVersion.OAS3_0;
}

if (typeof root.openapi === 'string' && root.openapi.startsWith('3.1')) {
if (
typeof root.openapi === 'string' &&
(root.openapi.startsWith('3.1') || root.openapi.startsWith('3.2')) // temporary support for 3.2
) {
return SpecVersion.OAS3_1;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/respect-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"form-data": "4.0.4",
"jest-diff": "29.7.0",
"jest-matcher-utils": "29.7.0",
"js-yaml": "4.1.0",
"js-yaml": "4.1.1",
"json-pointer": "0.6.2",
"jsonpath-plus": "10.3.0",
"open": "10.1.0",
Expand Down
Loading