@skmtc/core 0.0.797 → 0.0.799

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.
Files changed (119) hide show
  1. package/esm/context/CoreContext.d.ts +10 -1
  2. package/esm/context/CoreContext.d.ts.map +1 -1
  3. package/esm/context/GenerateContext.d.ts +185 -0
  4. package/esm/context/GenerateContext.d.ts.map +1 -1
  5. package/esm/context/GenerateContext.js +30 -0
  6. package/esm/context/ParseContext.d.ts +6 -0
  7. package/esm/context/ParseContext.d.ts.map +1 -1
  8. package/esm/context/ParseContext.js +6 -0
  9. package/esm/oas/array/array-types.d.ts +23 -0
  10. package/esm/oas/array/array-types.d.ts.map +1 -1
  11. package/esm/oas/array/array-types.js +7 -0
  12. package/esm/oas/boolean/boolean-types.d.ts +25 -1
  13. package/esm/oas/boolean/boolean-types.d.ts.map +1 -1
  14. package/esm/oas/boolean/boolean-types.js +6 -0
  15. package/esm/oas/discriminator/discriminator-types.d.ts +17 -0
  16. package/esm/oas/discriminator/discriminator-types.d.ts.map +1 -1
  17. package/esm/oas/discriminator/discriminator-types.js +7 -0
  18. package/esm/oas/example/toExamplesV3.d.ts +39 -0
  19. package/esm/oas/example/toExamplesV3.d.ts.map +1 -1
  20. package/esm/oas/example/toExamplesV3.js +29 -0
  21. package/esm/oas/integer/integer-types.d.ts +18 -0
  22. package/esm/oas/integer/integer-types.d.ts.map +1 -1
  23. package/esm/oas/integer/integer-types.js +18 -0
  24. package/esm/oas/mediaType/mediaType-types.d.ts +17 -0
  25. package/esm/oas/mediaType/mediaType-types.d.ts.map +1 -1
  26. package/esm/oas/mediaType/mediaType-types.js +6 -0
  27. package/esm/oas/number/number-types.d.ts +12 -0
  28. package/esm/oas/number/number-types.d.ts.map +1 -1
  29. package/esm/oas/number/number-types.js +12 -0
  30. package/esm/oas/object/Object.d.ts +6 -0
  31. package/esm/oas/object/Object.d.ts.map +1 -1
  32. package/esm/oas/object/Object.js +6 -0
  33. package/esm/oas/operation/Operation.d.ts +34 -0
  34. package/esm/oas/operation/Operation.d.ts.map +1 -1
  35. package/esm/oas/operation/Operation.js +14 -0
  36. package/esm/oas/parameter/Parameter.d.ts +3 -0
  37. package/esm/oas/parameter/Parameter.d.ts.map +1 -1
  38. package/esm/oas/parameter/Parameter.js +3 -0
  39. package/esm/oas/ref/ref-types.d.ts +42 -0
  40. package/esm/oas/ref/ref-types.d.ts.map +1 -1
  41. package/esm/oas/ref/ref-types.js +9 -0
  42. package/esm/oas/securitySchemes/security-scheme-types.d.ts +63 -0
  43. package/esm/oas/securitySchemes/security-scheme-types.d.ts.map +1 -1
  44. package/esm/oas/securitySchemes/security-scheme-types.js +15 -0
  45. package/esm/oas/serverVariable/ServerVariable.d.ts +34 -0
  46. package/esm/oas/serverVariable/ServerVariable.d.ts.map +1 -1
  47. package/esm/oas/serverVariable/ServerVariable.js +24 -0
  48. package/esm/oas/string/string-types.d.ts +38 -1
  49. package/esm/oas/string/string-types.d.ts.map +1 -1
  50. package/esm/oas/string/string-types.js +12 -0
  51. package/esm/oas/union/union-types.d.ts +20 -0
  52. package/esm/oas/union/union-types.d.ts.map +1 -1
  53. package/esm/oas/union/union-types.js +7 -0
  54. package/esm/oas/unknown/unknown-types.d.ts +18 -0
  55. package/esm/oas/unknown/unknown-types.d.ts.map +1 -1
  56. package/esm/oas/unknown/unknown-types.js +6 -0
  57. package/esm/types/Results.d.ts +32 -0
  58. package/esm/types/Results.d.ts.map +1 -1
  59. package/esm/types/Results.js +12 -0
  60. package/package.json +1 -1
  61. package/script/context/CoreContext.d.ts +10 -1
  62. package/script/context/CoreContext.d.ts.map +1 -1
  63. package/script/context/GenerateContext.d.ts +185 -0
  64. package/script/context/GenerateContext.d.ts.map +1 -1
  65. package/script/context/GenerateContext.js +30 -0
  66. package/script/context/ParseContext.d.ts +6 -0
  67. package/script/context/ParseContext.d.ts.map +1 -1
  68. package/script/context/ParseContext.js +6 -0
  69. package/script/oas/array/array-types.d.ts +23 -0
  70. package/script/oas/array/array-types.d.ts.map +1 -1
  71. package/script/oas/array/array-types.js +7 -0
  72. package/script/oas/boolean/boolean-types.d.ts +25 -1
  73. package/script/oas/boolean/boolean-types.d.ts.map +1 -1
  74. package/script/oas/boolean/boolean-types.js +6 -0
  75. package/script/oas/discriminator/discriminator-types.d.ts +17 -0
  76. package/script/oas/discriminator/discriminator-types.d.ts.map +1 -1
  77. package/script/oas/discriminator/discriminator-types.js +7 -0
  78. package/script/oas/example/toExamplesV3.d.ts +39 -0
  79. package/script/oas/example/toExamplesV3.d.ts.map +1 -1
  80. package/script/oas/example/toExamplesV3.js +29 -0
  81. package/script/oas/integer/integer-types.d.ts +18 -0
  82. package/script/oas/integer/integer-types.d.ts.map +1 -1
  83. package/script/oas/integer/integer-types.js +18 -0
  84. package/script/oas/mediaType/mediaType-types.d.ts +17 -0
  85. package/script/oas/mediaType/mediaType-types.d.ts.map +1 -1
  86. package/script/oas/mediaType/mediaType-types.js +6 -0
  87. package/script/oas/number/number-types.d.ts +12 -0
  88. package/script/oas/number/number-types.d.ts.map +1 -1
  89. package/script/oas/number/number-types.js +12 -0
  90. package/script/oas/object/Object.d.ts +6 -0
  91. package/script/oas/object/Object.d.ts.map +1 -1
  92. package/script/oas/object/Object.js +6 -0
  93. package/script/oas/operation/Operation.d.ts +34 -0
  94. package/script/oas/operation/Operation.d.ts.map +1 -1
  95. package/script/oas/operation/Operation.js +14 -0
  96. package/script/oas/parameter/Parameter.d.ts +3 -0
  97. package/script/oas/parameter/Parameter.d.ts.map +1 -1
  98. package/script/oas/parameter/Parameter.js +3 -0
  99. package/script/oas/ref/ref-types.d.ts +42 -0
  100. package/script/oas/ref/ref-types.d.ts.map +1 -1
  101. package/script/oas/ref/ref-types.js +9 -0
  102. package/script/oas/securitySchemes/security-scheme-types.d.ts +63 -0
  103. package/script/oas/securitySchemes/security-scheme-types.d.ts.map +1 -1
  104. package/script/oas/securitySchemes/security-scheme-types.js +15 -0
  105. package/script/oas/serverVariable/ServerVariable.d.ts +34 -0
  106. package/script/oas/serverVariable/ServerVariable.d.ts.map +1 -1
  107. package/script/oas/serverVariable/ServerVariable.js +24 -0
  108. package/script/oas/string/string-types.d.ts +38 -1
  109. package/script/oas/string/string-types.d.ts.map +1 -1
  110. package/script/oas/string/string-types.js +12 -0
  111. package/script/oas/union/union-types.d.ts +20 -0
  112. package/script/oas/union/union-types.d.ts.map +1 -1
  113. package/script/oas/union/union-types.js +7 -0
  114. package/script/oas/unknown/unknown-types.d.ts +18 -0
  115. package/script/oas/unknown/unknown-types.d.ts.map +1 -1
  116. package/script/oas/unknown/unknown-types.js +6 -0
  117. package/script/types/Results.d.ts +32 -0
  118. package/script/types/Results.d.ts.map +1 -1
  119. package/script/types/Results.js +12 -0
@@ -1,9 +1,26 @@
1
1
  import * as v from 'valibot';
2
+ /**
3
+ * Data type for OpenAPI discriminator objects.
4
+ *
5
+ * Discriminators are used with union types (oneOf/anyOf) to provide
6
+ * hints about which schema variant to use based on a property value.
7
+ * This enables more efficient type resolution and better tooling support.
8
+ */
2
9
  export type OasDiscriminatorData = {
10
+ /** Type category identifier for discriminator objects */
3
11
  oasType: 'discriminator';
12
+ /** Name of the property that contains the discriminator value */
4
13
  propertyName: string;
14
+ /** Optional mapping from property values to schema names */
5
15
  mapping?: Record<string, string>;
6
16
  };
17
+ /**
18
+ * Valibot schema for validating OpenAPI discriminator data objects.
19
+ *
20
+ * Validates discriminator objects including the required property name
21
+ * and optional value-to-schema mappings. Used to ensure discriminator
22
+ * objects conform to OpenAPI specification requirements.
23
+ */
7
24
  export declare const oasDiscriminatorData: v.ObjectSchema<{
8
25
  readonly oasType: v.LiteralSchema<"discriminator", undefined>;
9
26
  readonly propertyName: v.StringSchema<undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"discriminator-types.d.ts","sourceRoot":"","sources":["../../../src/oas/discriminator/discriminator-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,eAAe,CAAA;IACxB,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;aAI/B,CAAA"}
1
+ {"version":3,"file":"discriminator-types.d.ts","sourceRoot":"","sources":["../../../src/oas/discriminator/discriminator-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,yDAAyD;IACzD,OAAO,EAAE,eAAe,CAAA;IACxB,iEAAiE;IACjE,YAAY,EAAE,MAAM,CAAA;IACpB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;aAI/B,CAAA"}
@@ -1,4 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ /**
3
+ * Valibot schema for validating OpenAPI discriminator data objects.
4
+ *
5
+ * Validates discriminator objects including the required property name
6
+ * and optional value-to-schema mappings. Used to ensure discriminator
7
+ * objects conform to OpenAPI specification requirements.
8
+ */
2
9
  export const oasDiscriminatorData = v.object({
3
10
  oasType: v.literal('discriminator'),
4
11
  propertyName: v.string(),
@@ -5,18 +5,57 @@ import type { OasRef } from '../ref/Ref.js';
5
5
  type ToExampleSimpleV3Args = {
6
6
  example: unknown;
7
7
  };
8
+ /**
9
+ * Creates a simple OAS example from a value.
10
+ *
11
+ * Converts a raw example value into an OasExample object with basic
12
+ * fields. Used for simple example scenarios where only the value matters.
13
+ *
14
+ * @param args - Arguments containing the example value
15
+ * @returns OasExample object with the provided value
16
+ */
8
17
  export declare const toExampleSimpleV3: ({ example }: ToExampleSimpleV3Args) => OasExample | OasRef<"example">;
18
+ /**
19
+ * Arguments for processing OpenAPI v3 examples into OAS example objects.
20
+ *
21
+ * Handles both single example and examples collection scenarios,
22
+ * with context for tracing and error handling.
23
+ */
9
24
  export type ToExamplesV3Args = {
25
+ /** Single example object (OpenAPI v3 format) */
10
26
  example: OpenAPIV3.ExampleObject | undefined;
27
+ /** Collection of named examples (OpenAPI v3 format) */
11
28
  examples: Record<string, OpenAPIV3.ExampleObject | OpenAPIV3.ReferenceObject> | undefined;
29
+ /** Key name for the example context */
12
30
  exampleKey: string;
31
+ /** Parse context for tracing and error handling */
13
32
  context: ParseContext;
14
33
  };
34
+ /**
35
+ * Processes OpenAPI v3 examples into OAS example objects.
36
+ *
37
+ * Handles both single example and examples collection scenarios,
38
+ * converting them to the internal OAS representation. Provides
39
+ * warnings when both formats are specified simultaneously.
40
+ *
41
+ * @param args - Arguments containing example data and context
42
+ * @returns Record of processed examples, or undefined if no examples
43
+ */
15
44
  export declare const toExamplesV3: ({ example, examples, exampleKey, context }: ToExamplesV3Args) => Record<string, OasExample | OasRef<"example">> | undefined;
16
45
  type ToExampleV3Args = {
17
46
  example: OpenAPIV3.ExampleObject | OpenAPIV3.ReferenceObject;
18
47
  context: ParseContext;
19
48
  };
49
+ /**
50
+ * Processes a single OpenAPI v3 example into an OAS example object.
51
+ *
52
+ * Converts OpenAPI v3 example objects or references into the internal
53
+ * OAS representation, handling both direct examples and $ref references.
54
+ * Processes specification extensions and maintains all example metadata.
55
+ *
56
+ * @param args - Arguments containing the example and parsing context
57
+ * @returns OasExample object or reference to an example
58
+ */
20
59
  export declare const toExampleV3: ({ example, context }: ToExampleV3Args) => OasExample | OasRef<"example">;
21
60
  export {};
22
61
  //# sourceMappingURL=toExamplesV3.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toExamplesV3.d.ts","sourceRoot":"","sources":["../../../src/oas/example/toExamplesV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE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AG3C,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAAI,aAE/B,qBAAqB,KAAG,UAAU,GAAG,MAAM,CAAC,SAAS,CAQvD,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,gDAAgD;IAChD,OAAO,EAAE,SAAS,CAAC,aAAa,GAAG,SAAS,CAAA;IAC5C,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,aAAa,GAAG,SAAS,CAAC,eAAe,CAAC,GAAG,SAAS,CAAA;IACzF,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAA;IAClB,mDAAmD;IACnD,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GAAI,4CAK1B,gBAAgB,KAAG,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,SAsBtE,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,SAAS,CAAC,aAAa,GAAG,SAAS,CAAC,eAAe,CAAA;IAC5D,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,GAAI,sBAGzB,eAAe,KAAG,UAAU,GAAG,MAAM,CAAC,SAAS,CAoBjD,CAAA"}
@@ -2,6 +2,15 @@ import { isRef } from '../../helpers/refFns.js';
2
2
  import { toRefV31 } from '../ref/toRefV31.js';
3
3
  import { OasExample } from './Example.js';
4
4
  import { toSpecificationExtensionsV3 } from '../specificationExtensions/toSpecificationExtensionsV3.js';
5
+ /**
6
+ * Creates a simple OAS example from a value.
7
+ *
8
+ * Converts a raw example value into an OasExample object with basic
9
+ * fields. Used for simple example scenarios where only the value matters.
10
+ *
11
+ * @param args - Arguments containing the example value
12
+ * @returns OasExample object with the provided value
13
+ */
5
14
  export const toExampleSimpleV3 = ({ example }) => {
6
15
  const fields = {
7
16
  value: example,
@@ -10,6 +19,16 @@ export const toExampleSimpleV3 = ({ example }) => {
10
19
  };
11
20
  return new OasExample(fields);
12
21
  };
22
+ /**
23
+ * Processes OpenAPI v3 examples into OAS example objects.
24
+ *
25
+ * Handles both single example and examples collection scenarios,
26
+ * converting them to the internal OAS representation. Provides
27
+ * warnings when both formats are specified simultaneously.
28
+ *
29
+ * @param args - Arguments containing example data and context
30
+ * @returns Record of processed examples, or undefined if no examples
31
+ */
13
32
  export const toExamplesV3 = ({ example, examples, exampleKey, context }) => {
14
33
  if (example && examples) {
15
34
  context.logger.warn(`Both example and examples are defined for ${exampleKey}`);
@@ -28,6 +47,16 @@ export const toExamplesV3 = ({ example, examples, exampleKey, context }) => {
28
47
  }
29
48
  return undefined;
30
49
  };
50
+ /**
51
+ * Processes a single OpenAPI v3 example into an OAS example object.
52
+ *
53
+ * Converts OpenAPI v3 example objects or references into the internal
54
+ * OAS representation, handling both direct examples and $ref references.
55
+ * Processes specification extensions and maintains all example metadata.
56
+ *
57
+ * @param args - Arguments containing the example and parsing context
58
+ * @returns OasExample object or reference to an example
59
+ */
31
60
  export const toExampleV3 = ({ example, context }) => {
32
61
  if (isRef(example)) {
33
62
  return toRefV31({ ref: example, refType: 'example', context });
@@ -1,6 +1,24 @@
1
1
  import * as v from 'valibot';
2
+ /**
3
+ * Valibot schema for validating integer values.
4
+ *
5
+ * Ensures values are numbers and specifically integers,
6
+ * used for integer validation throughout OAS processing.
7
+ */
2
8
  export declare const integerSchema: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
9
+ /**
10
+ * Valibot schema for valid integer format values.
11
+ *
12
+ * Defines the size formats for integer types: int32 for 32-bit signed
13
+ * integers and int64 for 64-bit signed integers.
14
+ */
3
15
  export declare const integerFormat: v.UnionSchema<[v.LiteralSchema<"int32", undefined>, v.LiteralSchema<"int64", undefined>], undefined>;
16
+ /**
17
+ * Valibot schema for validating OpenAPI integer data objects.
18
+ *
19
+ * Validates integer schemas including size formats (int32/int64),
20
+ * range constraints, multiple validation, and enumeration values.
21
+ */
4
22
  export declare const oasIntegerData: v.ObjectSchema<{
5
23
  readonly type: v.LiteralSchema<"integer", undefined>;
6
24
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"integer-types.d.ts","sourceRoot":"","sources":["../../../src/oas/integer/integer-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,aAAa,4FAAkC,CAAA;AAE5D,eAAO,MAAM,aAAa,sGAAoD,CAAA;AAE9E,eAAO,MAAM,cAAc;;;;;;;;;;;;;;aAczB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;IAC1B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA"}
1
+ {"version":3,"file":"integer-types.d.ts","sourceRoot":"","sources":["../../../src/oas/integer/integer-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;GAKG;AACH,eAAO,MAAM,aAAa,4FAAkC,CAAA;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,aAAa,sGAAoD,CAAA;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;aAczB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;IAC1B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA"}
@@ -1,6 +1,24 @@
1
1
  import * as v from 'valibot';
2
+ /**
3
+ * Valibot schema for validating integer values.
4
+ *
5
+ * Ensures values are numbers and specifically integers,
6
+ * used for integer validation throughout OAS processing.
7
+ */
2
8
  export const integerSchema = v.pipe(v.number(), v.integer());
9
+ /**
10
+ * Valibot schema for valid integer format values.
11
+ *
12
+ * Defines the size formats for integer types: int32 for 32-bit signed
13
+ * integers and int64 for 64-bit signed integers.
14
+ */
3
15
  export const integerFormat = v.union([v.literal('int32'), v.literal('int64')]);
16
+ /**
17
+ * Valibot schema for validating OpenAPI integer data objects.
18
+ *
19
+ * Validates integer schemas including size formats (int32/int64),
20
+ * range constraints, multiple validation, and enumeration values.
21
+ */
4
22
  export const oasIntegerData = v.object({
5
23
  type: v.literal('integer'),
6
24
  title: v.optional(v.string()),
@@ -2,12 +2,29 @@ import { type OasExampleData } from '../example/example-types.js';
2
2
  import { type OasExampleRefData, type OasSchemaRefData } from '../ref/ref-types.js';
3
3
  import { type OasSchemaData } from '../schema/schema-types.js';
4
4
  import * as v from 'valibot';
5
+ /**
6
+ * Data type for OpenAPI media type objects.
7
+ *
8
+ * Represents media type definitions within request/response bodies,
9
+ * specifying the format, schema, and examples for different content types
10
+ * like application/json, multipart/form-data, etc.
11
+ */
5
12
  export type OasMediaTypeData = {
13
+ /** Type identifier for OAS media type objects */
6
14
  oasType: 'mediaType';
15
+ /** The media type identifier (e.g., 'application/json', 'text/plain') */
7
16
  mediaType: string;
17
+ /** Schema definition for the media type content */
8
18
  schema?: OasSchemaData | OasSchemaRefData;
19
+ /** Named examples for the media type content */
9
20
  examples?: Record<string, OasExampleData | OasExampleRefData>;
10
21
  };
22
+ /**
23
+ * Valibot schema for validating OpenAPI media type data.
24
+ *
25
+ * Validates the structure of media type objects including content type
26
+ * identifiers, schema definitions, and example collections.
27
+ */
11
28
  export declare const oasMediaTypeData: v.ObjectSchema<{
12
29
  readonly oasType: v.LiteralSchema<"mediaType", undefined>;
13
30
  readonly mediaType: v.StringSchema<undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"mediaType-types.d.ts","sourceRoot":"","sources":["../../../src/oas/mediaType/mediaType-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,6BAA6B,CAAA;AACjF,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAGtB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,KAAK,aAAa,EAAiB,MAAM,2BAA2B,CAAA;AAC7E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,WAAW,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,aAAa,GAAG,gBAAgB,CAAA;IAEzC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,iBAAiB,CAAC,CAAA;CAE9D,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;aAO3B,CAAA"}
1
+ {"version":3,"file":"mediaType-types.d.ts","sourceRoot":"","sources":["../../../src/oas/mediaType/mediaType-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,6BAA6B,CAAA;AACjF,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAGtB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,KAAK,aAAa,EAAiB,MAAM,2BAA2B,CAAA;AAC7E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,iDAAiD;IACjD,OAAO,EAAE,WAAW,CAAA;IACpB,yEAAyE;IACzE,SAAS,EAAE,MAAM,CAAA;IACjB,mDAAmD;IACnD,MAAM,CAAC,EAAE,aAAa,GAAG,gBAAgB,CAAA;IAEzC,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,iBAAiB,CAAC,CAAA;CAE9D,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;aAO3B,CAAA"}
@@ -2,6 +2,12 @@ import { oasExampleData } from '../example/example-types.js';
2
2
  import { oasExampleRefData, oasSchemaRefData } from '../ref/ref-types.js';
3
3
  import { oasSchemaData } from '../schema/schema-types.js';
4
4
  import * as v from 'valibot';
5
+ /**
6
+ * Valibot schema for validating OpenAPI media type data.
7
+ *
8
+ * Validates the structure of media type objects including content type
9
+ * identifiers, schema definitions, and example collections.
10
+ */
5
11
  export const oasMediaTypeData = v.object({
6
12
  oasType: v.literal('mediaType'),
7
13
  mediaType: v.string(),
@@ -1,5 +1,17 @@
1
1
  import * as v from 'valibot';
2
+ /**
3
+ * Valibot schema for valid number format values.
4
+ *
5
+ * Defines the precision formats for number types: float for single-precision
6
+ * and double for double-precision floating-point numbers.
7
+ */
2
8
  export declare const numberFormat: v.UnionSchema<[v.LiteralSchema<"float", undefined>, v.LiteralSchema<"double", undefined>], undefined>;
9
+ /**
10
+ * Valibot schema for validating OpenAPI number data objects.
11
+ *
12
+ * Validates number schemas including precision formats, range constraints,
13
+ * multiple validation, and enumeration values.
14
+ */
3
15
  export declare const oasNumberData: v.ObjectSchema<{
4
16
  readonly type: v.LiteralSchema<"number", undefined>;
5
17
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"number-types.d.ts","sourceRoot":"","sources":["../../../src/oas/number/number-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,YAAY,uGAAqD,CAAA;AAE9E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;aAcxB,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,QAAQ,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA"}
1
+ {"version":3,"file":"number-types.d.ts","sourceRoot":"","sources":["../../../src/oas/number/number-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;GAKG;AACH,eAAO,MAAM,YAAY,uGAAqD,CAAA;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;aAcxB,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,QAAQ,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA"}
@@ -1,5 +1,17 @@
1
1
  import * as v from 'valibot';
2
+ /**
3
+ * Valibot schema for valid number format values.
4
+ *
5
+ * Defines the precision formats for number types: float for single-precision
6
+ * and double for double-precision floating-point numbers.
7
+ */
2
8
  export const numberFormat = v.union([v.literal('float'), v.literal('double')]);
9
+ /**
10
+ * Valibot schema for validating OpenAPI number data objects.
11
+ *
12
+ * Validates number schemas including precision formats, range constraints,
13
+ * multiple validation, and enumeration values.
14
+ */
3
15
  export const oasNumberData = v.object({
4
16
  type: v.literal('number'),
5
17
  title: v.optional(v.string()),
@@ -182,11 +182,17 @@ export declare class OasObject<Nullable extends boolean | undefined = boolean |
182
182
  * The default value of the object.
183
183
  */
184
184
  default: Nullable extends true ? Record<string, unknown> | null | undefined : Record<string, unknown> | undefined;
185
+ /** Maximum number of properties allowed in the object */
185
186
  maxProperties?: number;
187
+ /** Minimum number of properties required in the object */
186
188
  minProperties?: number;
189
+ /** Whether the object is read-only */
187
190
  readOnly?: boolean;
191
+ /** Whether the object is write-only */
188
192
  writeOnly?: boolean;
193
+ /** Whether the object schema is deprecated */
189
194
  deprecated?: boolean;
195
+ /** Array of valid enum values for the object */
190
196
  enums?: Nullable extends true ? (Record<string, unknown> | null)[] | undefined : Record<string, unknown>[] | undefined;
191
197
  /**
192
198
  * Creates a new OasObject instance.
@@ -1 +1 @@
1
- {"version":3,"file":"Object.d.ts","sourceRoot":"","sources":["../../../src/oas/object/Object.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAG9C;;;;GAIG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,IAAI;IAClE,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,WAAW,CAAC,GAAG,SAAS,CAAA;IACnF,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IAC/B,sEAAsE;IACtE,OAAO,CAAC,EAAE,QAAQ,SAAS,IAAI,GAC3B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,GAC1C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;IACvC,oEAAoE;IACpE,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC,QAAQ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;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CAAC,KAAK,IAAI,SAAS,CAAC,KAAK,CAAC;IAQhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACH,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,eAAe,GAAG,SAAS;IAmBnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS;IAkBvC,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,SAAS;IAIpB,WAAW,IAAI,SAAS;IAIxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,SAAS,CAAC,oBAAoB;CA8B3E"}
@@ -205,36 +205,42 @@ export class OasObject {
205
205
  writable: true,
206
206
  value: void 0
207
207
  });
208
+ /** Maximum number of properties allowed in the object */
208
209
  Object.defineProperty(this, "maxProperties", {
209
210
  enumerable: true,
210
211
  configurable: true,
211
212
  writable: true,
212
213
  value: void 0
213
214
  });
215
+ /** Minimum number of properties required in the object */
214
216
  Object.defineProperty(this, "minProperties", {
215
217
  enumerable: true,
216
218
  configurable: true,
217
219
  writable: true,
218
220
  value: void 0
219
221
  });
222
+ /** Whether the object is read-only */
220
223
  Object.defineProperty(this, "readOnly", {
221
224
  enumerable: true,
222
225
  configurable: true,
223
226
  writable: true,
224
227
  value: void 0
225
228
  });
229
+ /** Whether the object is write-only */
226
230
  Object.defineProperty(this, "writeOnly", {
227
231
  enumerable: true,
228
232
  configurable: true,
229
233
  writable: true,
230
234
  value: void 0
231
235
  });
236
+ /** Whether the object schema is deprecated */
232
237
  Object.defineProperty(this, "deprecated", {
233
238
  enumerable: true,
234
239
  configurable: true,
235
240
  writable: true,
236
241
  value: void 0
237
242
  });
243
+ /** Array of valid enum values for the object */
238
244
  Object.defineProperty(this, "enums", {
239
245
  enumerable: true,
240
246
  configurable: true,
@@ -11,19 +11,39 @@ import { OasObject } from '../object/Object.js';
11
11
  import type { ToJsonSchemaOptions } from '../schema/Schema.js';
12
12
  import type { OpenAPIV3 } from 'openapi-types';
13
13
  import type { OasSecurityRequirement } from '../securityRequirement/SecurityRequirement.js';
14
+ /**
15
+ * Fields for configuring an OpenAPI operation object.
16
+ *
17
+ * Contains all the properties needed to define a complete OpenAPI operation,
18
+ * including path information, parameters, request/response specifications,
19
+ * security requirements, and metadata.
20
+ */
14
21
  export type OperationFields = {
22
+ /** The API path for this operation */
15
23
  path: string;
24
+ /** The HTTP method for this operation */
16
25
  method: Method;
26
+ /** The parent path item containing this operation */
17
27
  pathItem: OasPathItem | undefined;
28
+ /** Unique identifier for the operation */
18
29
  operationId?: string | undefined;
30
+ /** Brief summary of the operation */
19
31
  summary?: string | undefined;
32
+ /** Tags for organizing operations in documentation */
20
33
  tags?: string[] | undefined;
34
+ /** Detailed description of the operation */
21
35
  description?: string | undefined;
36
+ /** Parameters accepted by this operation */
22
37
  parameters?: (OasParameter | OasRef<'parameter'>)[] | undefined;
38
+ /** Request body specification for this operation */
23
39
  requestBody?: OasRequestBody | OasRef<'requestBody'> | undefined;
40
+ /** Response specifications mapped by status code */
24
41
  responses: Record<string, OasResponse | OasRef<'response'>>;
42
+ /** Security requirements for this operation */
25
43
  security?: OasSecurityRequirement[] | undefined;
44
+ /** Whether this operation is deprecated */
26
45
  deprecated?: boolean | undefined;
46
+ /** OpenAPI specification extensions */
27
47
  extensionFields?: Record<string, unknown>;
28
48
  };
29
49
  type ToRequestBodyMapArgs = {
@@ -138,19 +158,33 @@ type ToRequestBodyMapArgs = {
138
158
  * ```
139
159
  */
140
160
  export declare class OasOperation {
161
+ /** Type identifier for OAS operation objects */
141
162
  oasType: 'operation';
163
+ /** The API path for this operation */
142
164
  path: string;
165
+ /** The HTTP method for this operation */
143
166
  method: Method;
167
+ /** The parent path item containing this operation */
144
168
  pathItem: OasPathItem | undefined;
169
+ /** Unique identifier for the operation */
145
170
  operationId: string | undefined;
171
+ /** Brief summary of the operation */
146
172
  summary: string | undefined;
173
+ /** Tags for organizing operations in documentation */
147
174
  tags: string[] | undefined;
175
+ /** Detailed description of the operation */
148
176
  description: string | undefined;
177
+ /** Parameters accepted by this operation */
149
178
  parameters: (OasParameter | OasRef<'parameter'>)[] | undefined;
179
+ /** Request body specification for this operation */
150
180
  requestBody: OasRequestBody | OasRef<'requestBody'> | undefined;
181
+ /** Response specifications mapped by status code */
151
182
  responses: Record<string, OasResponse | OasRef<'response'>>;
183
+ /** Security requirements for this operation */
152
184
  security: OasSecurityRequirement[] | undefined;
185
+ /** Whether this operation is deprecated */
153
186
  deprecated: boolean | undefined;
187
+ /** OpenAPI specification extensions */
154
188
  extensionFields: Record<string, unknown> | undefined;
155
189
  constructor(fields: OperationFields);
156
190
  toSuccessResponse(): OasResponse | OasRef<'response'> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Operation.d.ts","sourceRoot":"","sources":["../../../src/oas/operation/Operation.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,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
111
111
  constructor(fields) {
112
+ /** Type identifier for OAS operation objects */
112
113
  Object.defineProperty(this, "oasType", {
113
114
  enumerable: true,
114
115
  configurable: true,
115
116
  writable: true,
116
117
  value: 'operation'
117
118
  });
119
+ /** The API path for this operation */
118
120
  Object.defineProperty(this, "path", {
119
121
  enumerable: true,
120
122
  configurable: true,
121
123
  writable: true,
122
124
  value: void 0
123
125
  });
126
+ /** The HTTP method for this operation */
124
127
  Object.defineProperty(this, "method", {
125
128
  enumerable: true,
126
129
  configurable: true,
127
130
  writable: true,
128
131
  value: void 0
129
132
  });
133
+ /** The parent path item containing this operation */
130
134
  Object.defineProperty(this, "pathItem", {
131
135
  enumerable: true,
132
136
  configurable: true,
133
137
  writable: true,
134
138
  value: void 0
135
139
  });
140
+ /** Unique identifier for the operation */
136
141
  Object.defineProperty(this, "operationId", {
137
142
  enumerable: true,
138
143
  configurable: true,
139
144
  writable: true,
140
145
  value: void 0
141
146
  });
147
+ /** Brief summary of the operation */
142
148
  Object.defineProperty(this, "summary", {
143
149
  enumerable: true,
144
150
  configurable: true,
145
151
  writable: true,
146
152
  value: void 0
147
153
  });
154
+ /** Tags for organizing operations in documentation */
148
155
  Object.defineProperty(this, "tags", {
149
156
  enumerable: true,
150
157
  configurable: true,
151
158
  writable: true,
152
159
  value: void 0
153
160
  });
161
+ /** Detailed description of the operation */
154
162
  Object.defineProperty(this, "description", {
155
163
  enumerable: true,
156
164
  configurable: true,
157
165
  writable: true,
158
166
  value: void 0
159
167
  });
168
+ /** Parameters accepted by this operation */
160
169
  Object.defineProperty(this, "parameters", {
161
170
  enumerable: true,
162
171
  configurable: true,
163
172
  writable: true,
164
173
  value: void 0
165
174
  });
175
+ /** Request body specification for this operation */
166
176
  Object.defineProperty(this, "requestBody", {
167
177
  enumerable: true,
168
178
  configurable: true,
169
179
  writable: true,
170
180
  value: void 0
171
181
  });
182
+ /** Response specifications mapped by status code */
172
183
  Object.defineProperty(this, "responses", {
173
184
  enumerable: true,
174
185
  configurable: true,
175
186
  writable: true,
176
187
  value: void 0
177
188
  });
189
+ /** Security requirements for this operation */
178
190
  Object.defineProperty(this, "security", {
179
191
  enumerable: true,
180
192
  configurable: true,
181
193
  writable: true,
182
194
  value: void 0
183
195
  });
196
+ /** Whether this operation is deprecated */
184
197
  Object.defineProperty(this, "deprecated", {
185
198
  enumerable: true,
186
199
  configurable: true,
187
200
  writable: true,
188
201
  value: void 0
189
202
  });
203
+ /** OpenAPI specification extensions */
190
204
  Object.defineProperty(this, "extensionFields", {
191
205
  enumerable: true,
192
206
  configurable: true,
@@ -182,8 +182,11 @@ export type ParameterFields = {
182
182
  * ```
183
183
  */
184
184
  export declare class OasParameter {
185
+ /** Type identifier for OAS parameter objects */
185
186
  oasType: 'parameter';
187
+ /** The name of the parameter */
186
188
  name: string;
189
+ /** Where the parameter is located (path, query, header, cookie) */
187
190
  location: OasParameterLocation;
188
191
  description?: string | undefined;
189
192
  required?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Parameter.d.ts","sourceRoot":"","sources":["../../../src/oas/parameter/Parameter.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACnF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAK9C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,kEAAkE;IACl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ameter objects */
148
149
  Object.defineProperty(this, "oasType", {
149
150
  enumerable: true,
150
151
  configurable: true,
151
152
  writable: true,
152
153
  value: 'parameter'
153
154
  });
155
+ /** The name of the parameter */
154
156
  Object.defineProperty(this, "name", {
155
157
  enumerable: true,
156
158
  configurable: true,
157
159
  writable: true,
158
160
  value: void 0
159
161
  });
162
+ /** Where the parameter is located (path, query, header, cookie) */
160
163
  Object.defineProperty(this, "location", {
161
164
  enumerable: true,
162
165
  configurable: true,