@kubb/adapter-oas 5.0.0-beta.17 → 5.0.0-beta.18

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
@@ -1170,7 +1170,8 @@ function buildSchemaNode(schema, name, nullable, defaultValue) {
1170
1170
  readOnly: schema.readOnly,
1171
1171
  writeOnly: schema.writeOnly,
1172
1172
  default: defaultValue,
1173
- example: schema.example
1173
+ example: schema.example,
1174
+ format: schema.format
1174
1175
  };
1175
1176
  }
1176
1177
  /**
@@ -1297,7 +1298,8 @@ function createSchemaParser(ctx) {
1297
1298
  writeOnly: schema.writeOnly ?? memberNode.writeOnly,
1298
1299
  default: mergedDefault,
1299
1300
  example: schema.example ?? memberNode.example,
1300
- pattern: schema.pattern ?? ("pattern" in memberNode ? memberNode.pattern : void 0)
1301
+ pattern: schema.pattern ?? ("pattern" in memberNode ? memberNode.pattern : void 0),
1302
+ format: schema.format ?? memberNode.format
1301
1303
  });
1302
1304
  }
1303
1305
  const filteredDiscriminantValues = [];
@@ -1429,7 +1431,8 @@ function createSchemaParser(ctx) {
1429
1431
  name,
1430
1432
  title: schema.title,
1431
1433
  description: schema.description,
1432
- deprecated: schema.deprecated
1434
+ deprecated: schema.deprecated,
1435
+ format: schema.format
1433
1436
  });
1434
1437
  const constPrimitive = getPrimitiveType(typeof constValue === "number" ? "number" : typeof constValue === "boolean" ? "boolean" : "string");
1435
1438
  return _kubb_core.ast.createSchema({
@@ -1533,7 +1536,8 @@ function createSchemaParser(ctx) {
1533
1536
  readOnly: schema.readOnly,
1534
1537
  writeOnly: schema.writeOnly,
1535
1538
  default: enumDefault,
1536
- example: schema.example
1539
+ example: schema.example,
1540
+ format: schema.format
1537
1541
  };
1538
1542
  const extensionKey = enumExtensionKeys.find((key) => key in schema);
1539
1543
  if (extensionKey || enumPrimitive === "number" || enumPrimitive === "integer" || enumPrimitive === "boolean") {
@@ -1706,7 +1710,8 @@ function createSchemaParser(ctx) {
1706
1710
  title: schema.title,
1707
1711
  description: schema.description,
1708
1712
  deprecated: schema.deprecated,
1709
- nullable
1713
+ nullable,
1714
+ format: schema.format
1710
1715
  });
1711
1716
  }
1712
1717
  /**
@@ -1784,7 +1789,8 @@ function createSchemaParser(ctx) {
1784
1789
  type: emptyType,
1785
1790
  name,
1786
1791
  title: schema.title,
1787
- description: schema.description
1792
+ description: schema.description,
1793
+ format: schema.format
1788
1794
  });
1789
1795
  }
1790
1796
  /**