@kubb/adapter-oas 5.0.0-beta.16 → 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.js CHANGED
@@ -1144,7 +1144,8 @@ function buildSchemaNode(schema, name, nullable, defaultValue) {
1144
1144
  readOnly: schema.readOnly,
1145
1145
  writeOnly: schema.writeOnly,
1146
1146
  default: defaultValue,
1147
- example: schema.example
1147
+ example: schema.example,
1148
+ format: schema.format
1148
1149
  };
1149
1150
  }
1150
1151
  /**
@@ -1271,7 +1272,8 @@ function createSchemaParser(ctx) {
1271
1272
  writeOnly: schema.writeOnly ?? memberNode.writeOnly,
1272
1273
  default: mergedDefault,
1273
1274
  example: schema.example ?? memberNode.example,
1274
- pattern: schema.pattern ?? ("pattern" in memberNode ? memberNode.pattern : void 0)
1275
+ pattern: schema.pattern ?? ("pattern" in memberNode ? memberNode.pattern : void 0),
1276
+ format: schema.format ?? memberNode.format
1275
1277
  });
1276
1278
  }
1277
1279
  const filteredDiscriminantValues = [];
@@ -1403,7 +1405,8 @@ function createSchemaParser(ctx) {
1403
1405
  name,
1404
1406
  title: schema.title,
1405
1407
  description: schema.description,
1406
- deprecated: schema.deprecated
1408
+ deprecated: schema.deprecated,
1409
+ format: schema.format
1407
1410
  });
1408
1411
  const constPrimitive = getPrimitiveType(typeof constValue === "number" ? "number" : typeof constValue === "boolean" ? "boolean" : "string");
1409
1412
  return ast.createSchema({
@@ -1507,7 +1510,8 @@ function createSchemaParser(ctx) {
1507
1510
  readOnly: schema.readOnly,
1508
1511
  writeOnly: schema.writeOnly,
1509
1512
  default: enumDefault,
1510
- example: schema.example
1513
+ example: schema.example,
1514
+ format: schema.format
1511
1515
  };
1512
1516
  const extensionKey = enumExtensionKeys.find((key) => key in schema);
1513
1517
  if (extensionKey || enumPrimitive === "number" || enumPrimitive === "integer" || enumPrimitive === "boolean") {
@@ -1680,7 +1684,8 @@ function createSchemaParser(ctx) {
1680
1684
  title: schema.title,
1681
1685
  description: schema.description,
1682
1686
  deprecated: schema.deprecated,
1683
- nullable
1687
+ nullable,
1688
+ format: schema.format
1684
1689
  });
1685
1690
  }
1686
1691
  /**
@@ -1758,7 +1763,8 @@ function createSchemaParser(ctx) {
1758
1763
  type: emptyType,
1759
1764
  name,
1760
1765
  title: schema.title,
1761
- description: schema.description
1766
+ description: schema.description,
1767
+ format: schema.format
1762
1768
  });
1763
1769
  }
1764
1770
  /**