@kubb/adapter-oas 5.0.0-alpha.56 → 5.0.0-alpha.57

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 CHANGED
@@ -1086,9 +1086,8 @@ function buildSchemaNode(schema, name, nullable, defaultValue) {
1086
1086
  function getRequestBodyContentTypes(document, operation) {
1087
1087
  if (operation.schema.requestBody) operation.schema.requestBody = dereferenceWithRef(document, operation.schema.requestBody);
1088
1088
  const body = operation.schema.requestBody;
1089
- if (!body || isReference(body)) return [];
1090
- const inline = body;
1091
- return inline.content ? Object.keys(inline.content) : [];
1089
+ if (!body) return [];
1090
+ return body.content ? Object.keys(body.content) : [];
1092
1091
  }
1093
1092
  //#endregion
1094
1093
  //#region src/parser.ts
@@ -1682,11 +1681,10 @@ function createSchemaParser(ctx) {
1682
1681
  */
1683
1682
  function getRequestBodyMeta(operation) {
1684
1683
  const body = operation.schema.requestBody;
1685
- if (!body || isReference(body)) return { required: false };
1686
- const inline = body;
1684
+ if (!body) return { required: false };
1687
1685
  return {
1688
- description: inline.description,
1689
- required: inline.required === true
1686
+ description: body.description,
1687
+ required: body.required === true
1690
1688
  };
1691
1689
  }
1692
1690
  /**