@kubb/adapter-oas 5.3.10 → 5.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -611,10 +611,10 @@ function isDiscriminator(obj) {
|
|
|
611
611
|
return !!obj && !!record["discriminator"] && typeof record["discriminator"] !== "string";
|
|
612
612
|
}
|
|
613
613
|
/**
|
|
614
|
-
* Returns `true` when a schema is a binary payload
|
|
614
|
+
* Returns `true` when a schema is a raw binary payload.
|
|
615
615
|
*/
|
|
616
616
|
function isBinary(schema) {
|
|
617
|
-
return schema.
|
|
617
|
+
return schema.contentMediaType === "application/octet-stream" && schema.contentEncoding === void 0 && (schema.type === void 0 || schema.type === "string");
|
|
618
618
|
}
|
|
619
619
|
/**
|
|
620
620
|
* Returns the binary schema for an `application/octet-stream` entry the OAS 3.1 upgrade emptied
|
|
@@ -1670,8 +1670,7 @@ function convertBoolean({ schema, name, nullable, defaultValue }) {
|
|
|
1670
1670
|
});
|
|
1671
1671
|
}
|
|
1672
1672
|
/**
|
|
1673
|
-
* Converts a binary
|
|
1674
|
-
* into a `blob` node.
|
|
1673
|
+
* Converts a raw binary schema into a `blob` node.
|
|
1675
1674
|
*/
|
|
1676
1675
|
function convertBinary({ schema, name, nullable, defaultValue }) {
|
|
1677
1676
|
return createNode({
|