@scalar/openapi-parser
Advanced tools
Comparing version 0.8.8 to 0.8.9
# @scalar/openapi-parser | ||
## 0.8.9 | ||
### Patch Changes | ||
- 757fade: fix: when migrating example to example objects, the example should be inside the value attribute | ||
- a607115: feat: add openapi 3.0.4 and openapi 3.1.1 | ||
## 0.8.8 | ||
@@ -4,0 +11,0 @@ |
@@ -12,3 +12,3 @@ import { traverse } from './traverse.js'; | ||
if (specification.openapi?.startsWith('3.0')) { | ||
specification.openapi = '3.1.0'; | ||
specification.openapi = '3.1.1'; | ||
} | ||
@@ -55,3 +55,5 @@ else { | ||
schema.examples = { | ||
default: schema.example, | ||
default: { | ||
value: schema.example, | ||
}, | ||
}; | ||
@@ -58,0 +60,0 @@ } |
@@ -11,3 +11,3 @@ import { traverse } from './traverse.js'; | ||
if (specification.swagger?.startsWith('2.0')) { | ||
specification.openapi = '3.0.3'; | ||
specification.openapi = '3.0.4'; | ||
delete specification.swagger; | ||
@@ -14,0 +14,0 @@ } |
@@ -20,3 +20,3 @@ { | ||
], | ||
"version": "0.8.8", | ||
"version": "0.8.9", | ||
"engines": { | ||
@@ -69,3 +69,3 @@ "node": ">=18" | ||
"@scalar/build-tooling": "0.1.11", | ||
"@scalar/openapi-types": "0.1.4" | ||
"@scalar/openapi-types": "0.1.5" | ||
}, | ||
@@ -72,0 +72,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1949518
28071