@kubb/adapter-oas 5.0.0-beta.65 → 5.0.0-beta.66

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.js CHANGED
@@ -1315,7 +1315,12 @@ function getRequestSchema(document, operation, options = {}) {
1315
1315
  mediaType: options.contentType
1316
1316
  });
1317
1317
  if (requestBody === false) return null;
1318
+ const mediaType = Array.isArray(requestBody) ? requestBody[0] : options.contentType;
1318
1319
  const schema = Array.isArray(requestBody) ? requestBody[1].schema : requestBody.schema;
1320
+ if (mediaType === "application/octet-stream" && (!schema || Object.keys(schema).length === 0)) return {
1321
+ type: "string",
1322
+ contentMediaType: "application/octet-stream"
1323
+ };
1319
1324
  if (!schema) return null;
1320
1325
  return dereferenceWithRef(document, schema);
1321
1326
  }