@kubb/adapter-oas 5.0.0-beta.93 → 5.0.0-beta.95

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.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
2
2
  import { ast } from "@kubb/ast";
3
3
  import { AdapterFactoryOptions } from "@kubb/core";
4
-
5
4
  //#region ../../node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts
6
5
  // ==================================================================================================
7
6
  // JSON Schema Draft 04
@@ -10,12 +9,12 @@ import { AdapterFactoryOptions } from "@kubb/core";
10
9
  * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1
11
10
  */
12
11
  type JSONSchema4TypeName = "string" //
13
- | "number" | "integer" | "boolean" | "object" | "array" | "null" | "any";
12
+ | "number" | "integer" | "boolean" | "object" | "array" | "null" | "any";
14
13
  /**
15
14
  * @see https://tools.ietf.org/html/draft-zyp-json-schema-04#section-3.5
16
15
  */
17
16
  type JSONSchema4Type = string //
18
- | number | boolean | JSONSchema4Object | JSONSchema4Array | null;
17
+ | number | boolean | JSONSchema4Object | JSONSchema4Array | null;
19
18
  // Workaround for infinite type recursion
20
19
  interface JSONSchema4Object {
21
20
  [key: string]: JSONSchema4Type;
@@ -204,9 +203,9 @@ interface JSONSchema4 {
204
203
  // JSON Schema Draft 06
205
204
  // ==================================================================================================
206
205
  type JSONSchema6TypeName = "string" //
207
- | "number" | "integer" | "boolean" | "object" | "array" | "null" | "any";
206
+ | "number" | "integer" | "boolean" | "object" | "array" | "null" | "any";
208
207
  type JSONSchema6Type = string //
209
- | number | boolean | JSONSchema6Object | JSONSchema6Array | null;
208
+ | number | boolean | JSONSchema6Object | JSONSchema6Array | null;
210
209
  // Workaround for infinite type recursion
211
210
  interface JSONSchema6Object {
212
211
  [key: string]: JSONSchema6Type;
@@ -472,13 +471,13 @@ interface JSONSchema6 {
472
471
  * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
473
472
  */
474
473
  type JSONSchema7TypeName = "string" //
475
- | "number" | "integer" | "boolean" | "object" | "array" | "null";
474
+ | "number" | "integer" | "boolean" | "object" | "array" | "null";
476
475
  /**
477
476
  * Primitive type
478
477
  * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
479
478
  */
480
479
  type JSONSchema7Type = string //
481
- | number | boolean | JSONSchema7Object | JSONSchema7Array | null;
480
+ | number | boolean | JSONSchema7Object | JSONSchema7Array | null;
482
481
  // Workaround for infinite type recursion
483
482
  interface JSONSchema7Object {
484
483
  [key: string]: JSONSchema7Type;
@@ -634,7 +633,7 @@ declare namespace OpenAPIV3_1 {
634
633
  export type PathItemObject<T extends {} = {}> = Modify<OpenAPIV3.PathItemObject<T>, {
635
634
  servers?: ServerObject[];
636
635
  parameters?: (ReferenceObject | ParameterObject)[];
637
- }> & { [method in HttpMethods]?: OperationObject<T> };
636
+ }> & { [method in HttpMethods]?: OperationObject<T>; };
638
637
  export type OperationObject<T extends {} = {}> = Modify<OpenAPIV3.OperationObject<T>, {
639
638
  parameters?: (ReferenceObject | ParameterObject)[];
640
639
  requestBody?: ReferenceObject | RequestBodyObject;
@@ -799,7 +798,7 @@ declare namespace OpenAPIV3 {
799
798
  description?: string;
800
799
  servers?: ServerObject[];
801
800
  parameters?: (ReferenceObject | ParameterObject)[];
802
- } & { [method in HttpMethods]?: OperationObject<T> };
801
+ } & { [method in HttpMethods]?: OperationObject<T>; };
803
802
  type OperationObject<T extends {} = {}> = {
804
803
  tags?: string[];
805
804
  summary?: string;
@@ -1240,7 +1239,7 @@ type AdapterOasOptions = {
1240
1239
  enums?: 'inline' | 'root';
1241
1240
  } & Partial<ast.ParserOptions>;
1242
1241
  /**
1243
- * Adapter options after defaults have been applied and schema name collisions resolved.
1242
+ * Adapter options after defaults have been applied.
1244
1243
  */
1245
1244
  type AdapterOasResolvedOptions = {
1246
1245
  validate: boolean;
@@ -1253,17 +1252,6 @@ type AdapterOasResolvedOptions = {
1253
1252
  unknownType: NonNullable<AdapterOasOptions['unknownType']>;
1254
1253
  emptySchemaType: NonNullable<AdapterOasOptions['emptySchemaType']>;
1255
1254
  enumSuffix: AdapterOasOptions['enumSuffix'];
1256
- /**
1257
- * Map from original `$ref` paths to their collision-resolved schema names.
1258
- * Populated once the adapter resolves a spec's schemas, on the first `parse()`.
1259
- *
1260
- * @example
1261
- * ```ts
1262
- * nameMapping.get('#/components/schemas/Order') // 'Order'
1263
- * nameMapping.get('#/components/responses/Order') // 'OrderResponse'
1264
- * ```
1265
- */
1266
- nameMapping: Map<string, string>;
1267
1255
  };
1268
1256
  /**
1269
1257
  * `@kubb/core` adapter factory type for the OpenAPI adapter.