@scalar/openapi-types 0.2.1 → 0.2.2
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/CHANGELOG.md +6 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +7 -0
- package/dist/openapi-types.js +28 -33
- package/dist/openapi-types.js.map +7 -0
- package/dist/openapi-types.test-d.js +52 -0
- package/dist/openapi-types.test-d.js.map +7 -0
- package/dist/schemas/3.1/compliance/callback-object.test.js +97 -0
- package/dist/schemas/3.1/compliance/callback-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/contact-object.test.js +19 -0
- package/dist/schemas/3.1/compliance/contact-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/example-object.test.js +91 -0
- package/dist/schemas/3.1/compliance/example-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/external-documentation-object.test.js +17 -0
- package/dist/schemas/3.1/compliance/external-documentation-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/header-object.test.js +47 -0
- package/dist/schemas/3.1/compliance/header-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/info-object.test.js +41 -0
- package/dist/schemas/3.1/compliance/info-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/license-object.test.js +17 -0
- package/dist/schemas/3.1/compliance/license-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/media-type-object.test.js +69 -0
- package/dist/schemas/3.1/compliance/media-type-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/openapi-object.test.js +381 -0
- package/dist/schemas/3.1/compliance/openapi-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/operation-object.test.js +467 -0
- package/dist/schemas/3.1/compliance/operation-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/parameter-object.test.js +155 -0
- package/dist/schemas/3.1/compliance/parameter-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/path-item-object.test.js +103 -0
- package/dist/schemas/3.1/compliance/path-item-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/reference-object.test.js +282 -0
- package/dist/schemas/3.1/compliance/reference-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/request-body-object.test.js +97 -0
- package/dist/schemas/3.1/compliance/request-body-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/response-object.test.js +131 -0
- package/dist/schemas/3.1/compliance/response-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/responses-object.test.js +53 -0
- package/dist/schemas/3.1/compliance/responses-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/runtime-expression.test.js +165 -0
- package/dist/schemas/3.1/compliance/runtime-expression.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/schema-object.test.js +470 -0
- package/dist/schemas/3.1/compliance/schema-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/security-requirement-object.test.js +54 -0
- package/dist/schemas/3.1/compliance/security-requirement-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/security-scheme-object.test.js +123 -0
- package/dist/schemas/3.1/compliance/security-scheme-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/server-object.test.js +17 -0
- package/dist/schemas/3.1/compliance/server-object.test.js.map +7 -0
- package/dist/schemas/3.1/compliance/tag-object.test.js +17 -0
- package/dist/schemas/3.1/compliance/tag-object.test.js.map +7 -0
- package/dist/schemas/3.1/processed/base-path-item-object.js +27 -33
- package/dist/schemas/3.1/processed/base-path-item-object.js.map +7 -0
- package/dist/schemas/3.1/processed/callback-object.js +7 -16
- package/dist/schemas/3.1/processed/callback-object.js.map +7 -0
- package/dist/schemas/3.1/processed/components-object.js +55 -62
- package/dist/schemas/3.1/processed/components-object.js.map +7 -0
- package/dist/schemas/3.1/processed/contact-object.js +11 -17
- package/dist/schemas/3.1/processed/contact-object.js.map +7 -0
- package/dist/schemas/3.1/processed/discriminator-object.js +15 -26
- package/dist/schemas/3.1/processed/discriminator-object.js.map +7 -0
- package/dist/schemas/3.1/processed/encoding-object.js +17 -28
- package/dist/schemas/3.1/processed/encoding-object.js.map +7 -0
- package/dist/schemas/3.1/processed/example-object.js +23 -33
- package/dist/schemas/3.1/processed/example-object.js.map +7 -0
- package/dist/schemas/3.1/processed/external-documentation-object.js +9 -15
- package/dist/schemas/3.1/processed/external-documentation-object.js.map +7 -0
- package/dist/schemas/3.1/processed/header-object.js +48 -64
- package/dist/schemas/3.1/processed/header-object.js.map +7 -0
- package/dist/schemas/3.1/processed/index.js +87 -30
- package/dist/schemas/3.1/processed/index.js.map +7 -0
- package/dist/schemas/3.1/processed/info-object.js +36 -43
- package/dist/schemas/3.1/processed/info-object.js.map +7 -0
- package/dist/schemas/3.1/processed/license-object.js +13 -19
- package/dist/schemas/3.1/processed/license-object.js.map +7 -0
- package/dist/schemas/3.1/processed/link-object.js +36 -50
- package/dist/schemas/3.1/processed/link-object.js.map +7 -0
- package/dist/schemas/3.1/processed/media-type-object-without-encoding.js +26 -32
- package/dist/schemas/3.1/processed/media-type-object-without-encoding.js.map +7 -0
- package/dist/schemas/3.1/processed/media-type-object.js +30 -36
- package/dist/schemas/3.1/processed/media-type-object.js.map +7 -0
- package/dist/schemas/3.1/processed/openapi-object.js +70 -78
- package/dist/schemas/3.1/processed/openapi-object.js.map +7 -0
- package/dist/schemas/3.1/processed/operation-object-without-callbacks.js +64 -70
- package/dist/schemas/3.1/processed/operation-object-without-callbacks.js.map +7 -0
- package/dist/schemas/3.1/processed/operation-object.js +14 -20
- package/dist/schemas/3.1/processed/operation-object.js.map +7 -0
- package/dist/schemas/3.1/processed/parameter-object.js +83 -91
- package/dist/schemas/3.1/processed/parameter-object.js.map +7 -0
- package/dist/schemas/3.1/processed/path-item-object-without-callbacks.js +38 -46
- package/dist/schemas/3.1/processed/path-item-object-without-callbacks.js.map +7 -0
- package/dist/schemas/3.1/processed/path-item-object.js +38 -46
- package/dist/schemas/3.1/processed/path-item-object.js.map +7 -0
- package/dist/schemas/3.1/processed/paths-object.js +16 -22
- package/dist/schemas/3.1/processed/paths-object.js.map +7 -0
- package/dist/schemas/3.1/processed/request-body-object.js +25 -31
- package/dist/schemas/3.1/processed/request-body-object.js.map +7 -0
- package/dist/schemas/3.1/processed/response-object.js +28 -34
- package/dist/schemas/3.1/processed/response-object.js.map +7 -0
- package/dist/schemas/3.1/processed/responses-object.js +17 -30
- package/dist/schemas/3.1/processed/responses-object.js.map +7 -0
- package/dist/schemas/3.1/processed/runtime-expression.js +50 -81
- package/dist/schemas/3.1/processed/runtime-expression.js.map +7 -0
- package/dist/schemas/3.1/processed/schema-object.js +88 -89
- package/dist/schemas/3.1/processed/schema-object.js.map +7 -0
- package/dist/schemas/3.1/processed/schema-object.test.js +310 -0
- package/dist/schemas/3.1/processed/schema-object.test.js.map +7 -0
- package/dist/schemas/3.1/processed/security-requirement-object.js +20 -36
- package/dist/schemas/3.1/processed/security-requirement-object.js.map +7 -0
- package/dist/schemas/3.1/processed/security-scheme-object.js +114 -142
- package/dist/schemas/3.1/processed/security-scheme-object.js.map +7 -0
- package/dist/schemas/3.1/processed/server-object.js +19 -25
- package/dist/schemas/3.1/processed/server-object.js.map +7 -0
- package/dist/schemas/3.1/processed/server-variable-object.js +19 -25
- package/dist/schemas/3.1/processed/server-variable-object.js.map +7 -0
- package/dist/schemas/3.1/processed/tag-object.js +12 -19
- package/dist/schemas/3.1/processed/tag-object.js.map +7 -0
- package/dist/schemas/3.1/processed/webhooks-object.js +6 -18
- package/dist/schemas/3.1/processed/webhooks-object.js.map +7 -0
- package/dist/schemas/3.1/processed/xml-object.js +28 -38
- package/dist/schemas/3.1/processed/xml-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/base-path-item-object.js +16 -22
- package/dist/schemas/3.1/unprocessed/base-path-item-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/callback-object.js +6 -15
- package/dist/schemas/3.1/unprocessed/callback-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/components-object.js +58 -65
- package/dist/schemas/3.1/unprocessed/components-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/contact-object.js +6 -12
- package/dist/schemas/3.1/unprocessed/contact-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/discriminator-object.js +6 -17
- package/dist/schemas/3.1/unprocessed/discriminator-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/encoding-object.js +14 -25
- package/dist/schemas/3.1/unprocessed/encoding-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/example-object.js +6 -16
- package/dist/schemas/3.1/unprocessed/example-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/external-documentation-object.js +6 -12
- package/dist/schemas/3.1/unprocessed/external-documentation-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/header-object.js +25 -41
- package/dist/schemas/3.1/unprocessed/header-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/index.js +89 -31
- package/dist/schemas/3.1/unprocessed/index.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/info-object.js +6 -13
- package/dist/schemas/3.1/unprocessed/info-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/license-object.js +6 -12
- package/dist/schemas/3.1/unprocessed/license-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/link-object.js +6 -20
- package/dist/schemas/3.1/unprocessed/link-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/media-type-object-without-encoding.js +6 -12
- package/dist/schemas/3.1/unprocessed/media-type-object-without-encoding.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/media-type-object.js +33 -39
- package/dist/schemas/3.1/unprocessed/media-type-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/openapi-object.js +6 -12
- package/dist/schemas/3.1/unprocessed/openapi-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/operation-object-without-callbacks.js +38 -44
- package/dist/schemas/3.1/unprocessed/operation-object-without-callbacks.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/operation-object.js +15 -21
- package/dist/schemas/3.1/unprocessed/operation-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/parameter-object.js +22 -30
- package/dist/schemas/3.1/unprocessed/parameter-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/path-item-object-without-callbacks.js +38 -46
- package/dist/schemas/3.1/unprocessed/path-item-object-without-callbacks.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/path-item-object.js +52 -60
- package/dist/schemas/3.1/unprocessed/path-item-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/paths-object.js +6 -14
- package/dist/schemas/3.1/unprocessed/paths-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/reference-object.js +20 -28
- package/dist/schemas/3.1/unprocessed/reference-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/request-body-object.js +6 -12
- package/dist/schemas/3.1/unprocessed/request-body-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/response-object.js +27 -33
- package/dist/schemas/3.1/unprocessed/response-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/responses-object.js +18 -31
- package/dist/schemas/3.1/unprocessed/responses-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/runtime-expression.js +6 -17
- package/dist/schemas/3.1/unprocessed/runtime-expression.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/schema-object.js +31 -32
- package/dist/schemas/3.1/unprocessed/schema-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/security-requirement-object.js +6 -23
- package/dist/schemas/3.1/unprocessed/security-requirement-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/security-scheme-object.js +41 -29
- package/dist/schemas/3.1/unprocessed/security-scheme-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/server-object.js +6 -12
- package/dist/schemas/3.1/unprocessed/server-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/server-variable-object.js +6 -12
- package/dist/schemas/3.1/unprocessed/server-variable-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/tag-object.js +6 -13
- package/dist/schemas/3.1/unprocessed/tag-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/webhooks-object.js +6 -18
- package/dist/schemas/3.1/unprocessed/webhooks-object.js.map +7 -0
- package/dist/schemas/3.1/unprocessed/xml-object.js +6 -16
- package/dist/schemas/3.1/unprocessed/xml-object.js.map +7 -0
- package/dist/schemas/extensions/index.js +29 -11
- package/dist/schemas/extensions/index.js.map +7 -0
- package/dist/schemas/extensions/x-additional-properties-name.js +6 -12
- package/dist/schemas/extensions/x-additional-properties-name.js.map +7 -0
- package/dist/schemas/extensions/x-additional-properties-name.test.js +28 -0
- package/dist/schemas/extensions/x-additional-properties-name.test.js.map +7 -0
- package/dist/schemas/extensions/x-code-samples.js +12 -10
- package/dist/schemas/extensions/x-code-samples.js.map +7 -0
- package/dist/schemas/extensions/x-code-samples.test.js +82 -0
- package/dist/schemas/extensions/x-code-samples.test.js.map +7 -0
- package/dist/schemas/extensions/x-display-name.js +8 -0
- package/dist/schemas/extensions/x-display-name.js.map +7 -0
- package/dist/schemas/extensions/x-display-name.test.js +28 -0
- package/dist/schemas/extensions/x-display-name.test.js.map +7 -0
- package/dist/schemas/extensions/x-enum-descriptions.js +6 -18
- package/dist/schemas/extensions/x-enum-descriptions.js.map +7 -0
- package/dist/schemas/extensions/x-enum-descriptions.test.js +36 -0
- package/dist/schemas/extensions/x-enum-descriptions.test.js.map +7 -0
- package/dist/schemas/extensions/x-internal.js +6 -5
- package/dist/schemas/extensions/x-internal.js.map +7 -0
- package/dist/schemas/extensions/x-internal.test.js +20 -0
- package/dist/schemas/extensions/x-internal.test.js.map +7 -0
- package/dist/schemas/extensions/x-scalar-icon.js +6 -5
- package/dist/schemas/extensions/x-scalar-icon.js.map +7 -0
- package/dist/schemas/extensions/x-scalar-icon.test.js +14 -0
- package/dist/schemas/extensions/x-scalar-icon.test.js.map +7 -0
- package/dist/schemas/extensions/x-scalar-ignore.js +6 -5
- package/dist/schemas/extensions/x-scalar-ignore.js.map +7 -0
- package/dist/schemas/extensions/x-scalar-ignore.test.js +20 -0
- package/dist/schemas/extensions/x-scalar-ignore.test.js.map +7 -0
- package/dist/schemas/extensions/x-scalar-redirect-uri.js +6 -5
- package/dist/schemas/extensions/x-scalar-redirect-uri.js.map +7 -0
- package/dist/schemas/extensions/x-scalar-redirect-uri.test.js +23 -0
- package/dist/schemas/extensions/x-scalar-redirect-uri.test.js.map +7 -0
- package/dist/schemas/extensions/x-scalar-sdk-installation.js +10 -13
- package/dist/schemas/extensions/x-scalar-sdk-installation.js.map +7 -0
- package/dist/schemas/extensions/x-scalar-sdk-installation.test.js +25 -0
- package/dist/schemas/extensions/x-scalar-sdk-installation.test.js.map +7 -0
- package/dist/schemas/extensions/x-scalar-stability.js +10 -19
- package/dist/schemas/extensions/x-scalar-stability.js.map +7 -0
- package/dist/schemas/extensions/x-scalar-stability.test.js +33 -0
- package/dist/schemas/extensions/x-scalar-stability.test.js.map +7 -0
- package/dist/schemas/extensions/x-tag-groups.js +14 -17
- package/dist/schemas/extensions/x-tag-groups.js.map +7 -0
- package/dist/schemas/extensions/x-tag-groups.test.js +55 -0
- package/dist/schemas/extensions/x-tag-groups.test.js.map +7 -0
- package/dist/schemas/extensions/x-use-pkce.js +11 -10
- package/dist/schemas/extensions/x-use-pkce.js.map +7 -0
- package/dist/schemas/extensions/x-use-pkce.test.js +34 -0
- package/dist/schemas/extensions/x-use-pkce.test.js.map +7 -0
- package/package.json +4 -5
|
@@ -1,35 +1,25 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Example Object
|
|
5
|
-
*
|
|
6
|
-
* An object grouping an internal or external example value with basic summary and description metadata. This object is
|
|
7
|
-
* typically used in fields named examples (plural), and is a referenceable alternative to older example (singular)
|
|
8
|
-
* fields that do not support referencing or metadata.
|
|
9
|
-
*
|
|
10
|
-
* Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI.
|
|
11
|
-
*
|
|
12
|
-
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#example-object
|
|
13
|
-
*/
|
|
1
|
+
import { z } from "zod";
|
|
14
2
|
const ExampleObjectSchema = z.object({
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Short description for the example.
|
|
5
|
+
*/
|
|
6
|
+
summary: z.string().optional(),
|
|
7
|
+
/**
|
|
8
|
+
* Long description for the example. CommonMark syntax MAY be used for rich text representation.
|
|
9
|
+
*/
|
|
10
|
+
description: z.string().optional(),
|
|
11
|
+
/**
|
|
12
|
+
* Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary.
|
|
13
|
+
*/
|
|
14
|
+
value: z.any().optional(),
|
|
15
|
+
/**
|
|
16
|
+
* A URI that identifies the literal example. This provides the capability to reference examples that cannot easily be
|
|
17
|
+
* included in JSON or YAML documents. The value field and externalValue field are mutually exclusive. See the rules
|
|
18
|
+
* for resolving Relative References.
|
|
19
|
+
*/
|
|
20
|
+
externalValue: z.string().optional()
|
|
33
21
|
});
|
|
34
|
-
|
|
35
|
-
|
|
22
|
+
export {
|
|
23
|
+
ExampleObjectSchema
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=example-object.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/3.1/processed/example-object.ts"],
|
|
4
|
+
"sourcesContent": ["import { z } from 'zod'\n\n/**\n * Example Object\n *\n * An object grouping an internal or external example value with basic summary and description metadata. This object is\n * typically used in fields named examples (plural), and is a referenceable alternative to older example (singular)\n * fields that do not support referencing or metadata.\n *\n * Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#example-object\n */\nexport const ExampleObjectSchema = z.object({\n /**\n * Short description for the example.\n */\n summary: z.string().optional(),\n /**\n * Long description for the example. CommonMark syntax MAY be used for rich text representation.\n */\n description: z.string().optional(),\n /**\n * Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary.\n */\n value: z.any().optional(),\n /**\n * A URI that identifies the literal example. This provides the capability to reference examples that cannot easily be\n * included in JSON or YAML documents. The value field and externalValue field are mutually exclusive. See the rules\n * for resolving Relative References.\n */\n externalValue: z.string().optional(),\n})\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,SAAS;AAaX,MAAM,sBAAsB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAI1C,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI7B,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIjC,OAAO,EAAE,IAAI,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMxB,eAAe,EAAE,OAAO,EAAE,SAAS;AACrC,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* External Documentation Object
|
|
5
|
-
*
|
|
6
|
-
* Allows referencing an external resource for extended documentation.
|
|
7
|
-
*
|
|
8
|
-
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#external-documentation-object
|
|
9
|
-
*/
|
|
1
|
+
import { z } from "zod";
|
|
10
2
|
const ExternalDocumentationObjectSchema = z.object({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
/** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */
|
|
4
|
+
description: z.string().optional(),
|
|
5
|
+
/** REQUIRED. The URL for the target documentation. This MUST be in the form of a URL. */
|
|
6
|
+
url: z.string()
|
|
15
7
|
});
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
export {
|
|
9
|
+
ExternalDocumentationObjectSchema
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=external-documentation-object.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/3.1/processed/external-documentation-object.ts"],
|
|
4
|
+
"sourcesContent": ["import { z } from 'zod'\n\n/**\n * External Documentation Object\n *\n * Allows referencing an external resource for extended documentation.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#external-documentation-object\n */\nexport const ExternalDocumentationObjectSchema = z.object({\n /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */\n description: z.string().optional(),\n /** REQUIRED. The URL for the target documentation. This MUST be in the form of a URL. */\n url: z.string(),\n})\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,SAAS;AASX,MAAM,oCAAoC,EAAE,OAAO;AAAA;AAAA,EAExD,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA,EAEjC,KAAK,EAAE,OAAO;AAChB,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,66 +1,50 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { ExampleObjectSchema } from
|
|
3
|
-
import { MediaTypeObjectSchemaWithoutEncoding } from
|
|
4
|
-
import { SchemaObjectSchema } from
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Header Object
|
|
8
|
-
*
|
|
9
|
-
* Describes a single header for HTTP responses and for individual parts in multipart representations; see the relevant
|
|
10
|
-
* Response Object and Encoding Object documentation for restrictions on which headers can be described.
|
|
11
|
-
*
|
|
12
|
-
* The Header Object follows the structure of the Parameter Object, including determining its serialization strategy
|
|
13
|
-
* based on whether schema or content is present, with the following changes:
|
|
14
|
-
*
|
|
15
|
-
* - name MUST NOT be specified, it is given in the corresponding headers map.
|
|
16
|
-
* - in MUST NOT be specified, it is implicitly in header.
|
|
17
|
-
* - All traits that are affected by the location MUST be applicable to a location of header (for example, style).
|
|
18
|
-
* This means that allowEmptyValue and allowReserved MUST NOT be used, and style, if used, MUST be limited to
|
|
19
|
-
* "simple".
|
|
20
|
-
*
|
|
21
|
-
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#header-object
|
|
22
|
-
*/
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ExampleObjectSchema } from "./example-object.js";
|
|
3
|
+
import { MediaTypeObjectSchemaWithoutEncoding } from "./media-type-object-without-encoding.js";
|
|
4
|
+
import { SchemaObjectSchema } from "./schema-object.js";
|
|
23
5
|
const HeaderObjectSchema = z.object({
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
6
|
+
/**
|
|
7
|
+
* A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text
|
|
8
|
+
* representation.
|
|
9
|
+
*/
|
|
10
|
+
description: z.string().optional(),
|
|
11
|
+
/**
|
|
12
|
+
* Determines whether this header is mandatory. The default value is false.
|
|
13
|
+
*/
|
|
14
|
+
required: z.boolean().optional(),
|
|
15
|
+
/**
|
|
16
|
+
* Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false.
|
|
17
|
+
*/
|
|
18
|
+
deprecated: z.boolean().optional(),
|
|
19
|
+
/**
|
|
20
|
+
* Describes how the parameter value will be serialized. Only "simple" is allowed for headers.
|
|
21
|
+
*/
|
|
22
|
+
style: z.enum(["matrix", "label", "simple", "form", "spaceDelimited", "pipeDelimited", "deepObject"]).optional(),
|
|
23
|
+
/**
|
|
24
|
+
* When this is true, parameter values of type array or object generate separate parameters
|
|
25
|
+
* for each value of the array or key-value pair of the map.
|
|
26
|
+
*/
|
|
27
|
+
explode: z.boolean().optional(),
|
|
28
|
+
/**
|
|
29
|
+
* The schema defining the type used for the header.
|
|
30
|
+
*/
|
|
31
|
+
schema: SchemaObjectSchema.optional(),
|
|
32
|
+
/**
|
|
33
|
+
* Example of the parameter's potential value.
|
|
34
|
+
*/
|
|
35
|
+
example: z.any().optional(),
|
|
36
|
+
/**
|
|
37
|
+
* Examples of the parameter's potential value.
|
|
38
|
+
*/
|
|
39
|
+
examples: z.record(z.string(), ExampleObjectSchema).optional(),
|
|
40
|
+
/**
|
|
41
|
+
* A map containing the representations for the parameter.
|
|
42
|
+
* The key is the media type and the value describes it.
|
|
43
|
+
* Only one of content or schema should be specified.
|
|
44
|
+
*/
|
|
45
|
+
content: z.record(z.string(), MediaTypeObjectSchemaWithoutEncoding).optional()
|
|
64
46
|
});
|
|
65
|
-
|
|
66
|
-
|
|
47
|
+
export {
|
|
48
|
+
HeaderObjectSchema
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=header-object.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/3.1/processed/header-object.ts"],
|
|
4
|
+
"sourcesContent": ["import { z } from 'zod'\nimport { ExampleObjectSchema } from './example-object'\nimport { MediaTypeObjectSchemaWithoutEncoding } from './media-type-object-without-encoding'\nimport { SchemaObjectSchema } from './schema-object'\n\n/**\n * Header Object\n *\n * Describes a single header for HTTP responses and for individual parts in multipart representations; see the relevant\n * Response Object and Encoding Object documentation for restrictions on which headers can be described.\n *\n * The Header Object follows the structure of the Parameter Object, including determining its serialization strategy\n * based on whether schema or content is present, with the following changes:\n *\n * - name MUST NOT be specified, it is given in the corresponding headers map.\n * - in MUST NOT be specified, it is implicitly in header.\n * - All traits that are affected by the location MUST be applicable to a location of header (for example, style).\n * This means that allowEmptyValue and allowReserved MUST NOT be used, and style, if used, MUST be limited to\n * \"simple\".\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#header-object\n */\nexport const HeaderObjectSchema = z.object({\n /**\n * A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text\n * representation.\n */\n description: z.string().optional(),\n /**\n * Determines whether this header is mandatory. The default value is false.\n */\n required: z.boolean().optional(),\n /**\n * Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false.\n */\n deprecated: z.boolean().optional(),\n /**\n * Describes how the parameter value will be serialized. Only \"simple\" is allowed for headers.\n */\n style: z.enum(['matrix', 'label', 'simple', 'form', 'spaceDelimited', 'pipeDelimited', 'deepObject']).optional(),\n /**\n * When this is true, parameter values of type array or object generate separate parameters\n * for each value of the array or key-value pair of the map.\n */\n explode: z.boolean().optional(),\n /**\n * The schema defining the type used for the header.\n */\n schema: SchemaObjectSchema.optional(),\n /**\n * Example of the parameter's potential value.\n */\n example: z.any().optional(),\n /**\n * Examples of the parameter's potential value.\n */\n examples: z.record(z.string(), ExampleObjectSchema).optional(),\n /**\n * A map containing the representations for the parameter.\n * The key is the media type and the value describes it.\n * Only one of content or schema should be specified.\n */\n content: z.record(z.string(), MediaTypeObjectSchemaWithoutEncoding).optional(),\n})\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,2BAA2B;AACpC,SAAS,4CAA4C;AACrD,SAAS,0BAA0B;AAmB5B,MAAM,qBAAqB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKzC,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIjC,UAAU,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI/B,YAAY,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIjC,OAAO,EAAE,KAAK,CAAC,UAAU,SAAS,UAAU,QAAQ,kBAAkB,iBAAiB,YAAY,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAK/G,SAAS,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI9B,QAAQ,mBAAmB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpC,SAAS,EAAE,IAAI,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI1B,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,mBAAmB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM7D,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,oCAAoC,EAAE,SAAS;AAC/E,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,30 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
import { CallbackObjectSchema } from "./callback-object.js";
|
|
2
|
+
import { ComponentsObjectSchema } from "./components-object.js";
|
|
3
|
+
import { ContactObjectSchema } from "./contact-object.js";
|
|
4
|
+
import { DiscriminatorObjectSchema } from "./discriminator-object.js";
|
|
5
|
+
import { EncodingObjectSchema } from "./encoding-object.js";
|
|
6
|
+
import { ExampleObjectSchema } from "./example-object.js";
|
|
7
|
+
import { ExternalDocumentationObjectSchema } from "./external-documentation-object.js";
|
|
8
|
+
import { HeaderObjectSchema } from "./header-object.js";
|
|
9
|
+
import { InfoObjectSchema } from "./info-object.js";
|
|
10
|
+
import { LicenseObjectSchema } from "./license-object.js";
|
|
11
|
+
import { LinkObjectSchema } from "./link-object.js";
|
|
12
|
+
import { MediaTypeObjectSchema } from "./media-type-object.js";
|
|
13
|
+
import { MediaTypeObjectSchemaWithoutEncoding } from "./media-type-object-without-encoding.js";
|
|
14
|
+
import { OpenApiObjectSchema } from "./openapi-object.js";
|
|
15
|
+
import { OperationObjectSchema } from "./operation-object.js";
|
|
16
|
+
import { ParameterObjectSchema } from "./parameter-object.js";
|
|
17
|
+
import { PathItemObjectSchema } from "./path-item-object.js";
|
|
18
|
+
import { PathsObjectSchema } from "./paths-object.js";
|
|
19
|
+
import { RequestBodyObjectSchema } from "./request-body-object.js";
|
|
20
|
+
import { ResponseObjectSchema } from "./response-object.js";
|
|
21
|
+
import { ResponsesObjectSchema } from "./responses-object.js";
|
|
22
|
+
import { RuntimeExpressionSchema } from "./runtime-expression.js";
|
|
23
|
+
import { SchemaObjectSchema } from "./schema-object.js";
|
|
24
|
+
import { SecurityRequirementObjectSchema } from "./security-requirement-object.js";
|
|
25
|
+
import {
|
|
26
|
+
ApiKeyInValues,
|
|
27
|
+
ApiKeySchema,
|
|
28
|
+
AuthorizationCodeFlowSchema,
|
|
29
|
+
ClientCredentialsFlowSchema,
|
|
30
|
+
HttpSchema,
|
|
31
|
+
ImplicitFlowSchema,
|
|
32
|
+
MutualTlsSchema,
|
|
33
|
+
OAuthFlowObjectSchema,
|
|
34
|
+
OAuthFlowsObjectSchema,
|
|
35
|
+
OpenIdConnectSchema,
|
|
36
|
+
PasswordFlowSchema,
|
|
37
|
+
SecuritySchemeObjectSchema
|
|
38
|
+
} from "./security-scheme-object.js";
|
|
39
|
+
import { ServerObjectSchema } from "./server-object.js";
|
|
40
|
+
import { ServerVariableObjectSchema } from "./server-variable-object.js";
|
|
41
|
+
import { TagObjectSchema } from "./tag-object.js";
|
|
42
|
+
import { WebhooksObjectSchema } from "./webhooks-object.js";
|
|
43
|
+
import { XmlObjectSchema } from "./xml-object.js";
|
|
44
|
+
export {
|
|
45
|
+
ApiKeyInValues,
|
|
46
|
+
ApiKeySchema,
|
|
47
|
+
AuthorizationCodeFlowSchema,
|
|
48
|
+
CallbackObjectSchema,
|
|
49
|
+
ClientCredentialsFlowSchema,
|
|
50
|
+
ComponentsObjectSchema,
|
|
51
|
+
ContactObjectSchema,
|
|
52
|
+
DiscriminatorObjectSchema,
|
|
53
|
+
EncodingObjectSchema,
|
|
54
|
+
ExampleObjectSchema,
|
|
55
|
+
ExternalDocumentationObjectSchema,
|
|
56
|
+
HeaderObjectSchema,
|
|
57
|
+
HttpSchema,
|
|
58
|
+
ImplicitFlowSchema,
|
|
59
|
+
InfoObjectSchema,
|
|
60
|
+
LicenseObjectSchema,
|
|
61
|
+
LinkObjectSchema,
|
|
62
|
+
MediaTypeObjectSchema,
|
|
63
|
+
MediaTypeObjectSchemaWithoutEncoding,
|
|
64
|
+
MutualTlsSchema,
|
|
65
|
+
OAuthFlowObjectSchema,
|
|
66
|
+
OAuthFlowsObjectSchema,
|
|
67
|
+
OpenApiObjectSchema,
|
|
68
|
+
OpenIdConnectSchema,
|
|
69
|
+
OperationObjectSchema,
|
|
70
|
+
ParameterObjectSchema,
|
|
71
|
+
PasswordFlowSchema,
|
|
72
|
+
PathItemObjectSchema,
|
|
73
|
+
PathsObjectSchema,
|
|
74
|
+
RequestBodyObjectSchema,
|
|
75
|
+
ResponseObjectSchema,
|
|
76
|
+
ResponsesObjectSchema,
|
|
77
|
+
RuntimeExpressionSchema,
|
|
78
|
+
SchemaObjectSchema,
|
|
79
|
+
SecurityRequirementObjectSchema,
|
|
80
|
+
SecuritySchemeObjectSchema,
|
|
81
|
+
ServerObjectSchema,
|
|
82
|
+
ServerVariableObjectSchema,
|
|
83
|
+
TagObjectSchema,
|
|
84
|
+
WebhooksObjectSchema,
|
|
85
|
+
XmlObjectSchema
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/3.1/processed/index.ts"],
|
|
4
|
+
"sourcesContent": ["export { CallbackObjectSchema } from './callback-object'\nexport { ComponentsObjectSchema } from './components-object'\nexport { ContactObjectSchema } from './contact-object'\nexport { DiscriminatorObjectSchema } from './discriminator-object'\nexport { EncodingObjectSchema } from './encoding-object'\nexport { ExampleObjectSchema } from './example-object'\nexport { ExternalDocumentationObjectSchema } from './external-documentation-object'\nexport { HeaderObjectSchema } from './header-object'\nexport { InfoObjectSchema } from './info-object'\nexport { LicenseObjectSchema } from './license-object'\nexport { LinkObjectSchema } from './link-object'\nexport { MediaTypeObjectSchema } from './media-type-object'\nexport { MediaTypeObjectSchemaWithoutEncoding } from './media-type-object-without-encoding'\nexport { OpenApiObjectSchema } from './openapi-object'\nexport { OperationObjectSchema } from './operation-object'\nexport { ParameterObjectSchema } from './parameter-object'\nexport { PathItemObjectSchema } from './path-item-object'\nexport { PathsObjectSchema } from './paths-object'\nexport { RequestBodyObjectSchema } from './request-body-object'\nexport { ResponseObjectSchema } from './response-object'\nexport { ResponsesObjectSchema } from './responses-object'\nexport { RuntimeExpressionSchema } from './runtime-expression'\nexport { SchemaObjectSchema } from './schema-object'\nexport { SecurityRequirementObjectSchema } from './security-requirement-object'\nexport {\n ApiKeyInValues,\n ApiKeySchema,\n AuthorizationCodeFlowSchema,\n ClientCredentialsFlowSchema,\n HttpSchema,\n ImplicitFlowSchema,\n MutualTlsSchema,\n OAuthFlowObjectSchema,\n OAuthFlowsObjectSchema,\n OpenIdConnectSchema,\n PasswordFlowSchema,\n SecuritySchemeObjectSchema,\n} from './security-scheme-object'\nexport { ServerObjectSchema } from './server-object'\nexport { ServerVariableObjectSchema } from './server-variable-object'\nexport { TagObjectSchema } from './tag-object'\nexport { WebhooksObjectSchema } from './webhooks-object'\nexport { XmlObjectSchema } from './xml-object'\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AACvC,SAAS,2BAA2B;AACpC,SAAS,iCAAiC;AAC1C,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AACpC,SAAS,yCAAyC;AAClD,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AACjC,SAAS,6BAA6B;AACtC,SAAS,4CAA4C;AACrD,SAAS,2BAA2B;AACpC,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AACtC,SAAS,4BAA4B;AACrC,SAAS,yBAAyB;AAClC,SAAS,+BAA+B;AACxC,SAAS,4BAA4B;AACrC,SAAS,6BAA6B;AACtC,SAAS,+BAA+B;AACxC,SAAS,0BAA0B;AACnC,SAAS,uCAAuC;AAChD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,0BAA0B;AACnC,SAAS,kCAAkC;AAC3C,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AACrC,SAAS,uBAAuB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,45 +1,38 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { ContactObjectSchema } from
|
|
3
|
-
import { LicenseObjectSchema } from
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Info Object
|
|
7
|
-
*
|
|
8
|
-
* The object provides metadata about the API. The metadata MAY be used by the clients if needed,
|
|
9
|
-
* and MAY be presented in editing or documentation generation tools for convenience.
|
|
10
|
-
*
|
|
11
|
-
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#info-object
|
|
12
|
-
*/
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ContactObjectSchema } from "./contact-object.js";
|
|
3
|
+
import { LicenseObjectSchema } from "./license-object.js";
|
|
13
4
|
const InfoObjectSchema = z.object({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
5
|
+
/**
|
|
6
|
+
* REQUIRED. The title of the API.
|
|
7
|
+
*/
|
|
8
|
+
title: z.string().catch("API"),
|
|
9
|
+
/**
|
|
10
|
+
* A short summary of the API.
|
|
11
|
+
*/
|
|
12
|
+
summary: z.string().optional().catch(void 0),
|
|
13
|
+
/**
|
|
14
|
+
* A description of the API. CommonMark syntax MAY be used for rich text representation.
|
|
15
|
+
*/
|
|
16
|
+
description: z.string().optional().catch(void 0),
|
|
17
|
+
/**
|
|
18
|
+
* A URL to the Terms of Service for the API. This MUST be in the form of a URL.
|
|
19
|
+
*/
|
|
20
|
+
termsOfService: z.string().url().optional().catch(void 0),
|
|
21
|
+
/**
|
|
22
|
+
* The contact information for the exposed API.
|
|
23
|
+
*/
|
|
24
|
+
contact: ContactObjectSchema.optional().catch(void 0),
|
|
25
|
+
/**
|
|
26
|
+
* The license information for the exposed API.
|
|
27
|
+
**/
|
|
28
|
+
license: LicenseObjectSchema.optional().catch(void 0),
|
|
29
|
+
/**
|
|
30
|
+
* REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the
|
|
31
|
+
* version of the API being described or the version of the OpenAPI Description).
|
|
32
|
+
*/
|
|
33
|
+
version: z.string().catch("1.0")
|
|
43
34
|
});
|
|
44
|
-
|
|
45
|
-
|
|
35
|
+
export {
|
|
36
|
+
InfoObjectSchema
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=info-object.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/3.1/processed/info-object.ts"],
|
|
4
|
+
"sourcesContent": ["import { z } from 'zod'\nimport { ContactObjectSchema } from './contact-object'\nimport { LicenseObjectSchema } from './license-object'\n\n/**\n * Info Object\n *\n * The object provides metadata about the API. The metadata MAY be used by the clients if needed,\n * and MAY be presented in editing or documentation generation tools for convenience.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#info-object\n */\nexport const InfoObjectSchema = z.object({\n /**\n * REQUIRED. The title of the API.\n */\n title: z.string().catch('API'),\n /**\n * A short summary of the API.\n */\n summary: z.string().optional().catch(undefined),\n /**\n * A description of the API. CommonMark syntax MAY be used for rich text representation.\n */\n description: z.string().optional().catch(undefined),\n /**\n * A URL to the Terms of Service for the API. This MUST be in the form of a URL.\n */\n termsOfService: z.string().url().optional().catch(undefined),\n /**\n * The contact information for the exposed API.\n */\n contact: ContactObjectSchema.optional().catch(undefined),\n /**\n * The license information for the exposed API.\n **/\n license: LicenseObjectSchema.optional().catch(undefined),\n /**\n * REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the\n * version of the API being described or the version of the OpenAPI Description).\n */\n version: z.string().catch('1.0'),\n})\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AAU7B,MAAM,mBAAmB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAIvC,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK;AAAA;AAAA;AAAA;AAAA,EAI7B,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA,EAI9C,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA,EAIlD,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA,EAI3D,SAAS,oBAAoB,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA,EAIvD,SAAS,oBAAoB,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKvD,SAAS,EAAE,OAAO,EAAE,MAAM,KAAK;AACjC,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* License Object
|
|
5
|
-
*
|
|
6
|
-
* License information for the exposed API.
|
|
7
|
-
*
|
|
8
|
-
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#license-object
|
|
9
|
-
*/
|
|
1
|
+
import { z } from "zod";
|
|
10
2
|
const LicenseObjectSchema = z.object({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
/** REQUIRED. The license name used for the API. */
|
|
4
|
+
name: z.string().optional().nullable().catch(null),
|
|
5
|
+
/** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */
|
|
6
|
+
identifier: z.string().optional().catch(void 0),
|
|
7
|
+
/**
|
|
8
|
+
* A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field.
|
|
9
|
+
*/
|
|
10
|
+
url: z.string().url().optional().catch(void 0)
|
|
19
11
|
});
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
export {
|
|
13
|
+
LicenseObjectSchema
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=license-object.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/3.1/processed/license-object.ts"],
|
|
4
|
+
"sourcesContent": ["import { z } from 'zod'\n\n/**\n * License Object\n *\n * License information for the exposed API.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#license-object\n */\nexport const LicenseObjectSchema = z.object({\n /** REQUIRED. The license name used for the API. */\n name: z.string().optional().nullable().catch(null),\n /** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */\n identifier: z.string().optional().catch(undefined),\n /**\n * A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field.\n */\n url: z.string().url().optional().catch(undefined),\n})\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,SAAS;AASX,MAAM,sBAAsB,EAAE,OAAO;AAAA;AAAA,EAE1C,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,IAAI;AAAA;AAAA,EAEjD,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA,EAIjD,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAS;AAClD,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,52 +1,38 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { RuntimeExpressionSchema } from
|
|
3
|
-
import { ServerObjectSchema } from
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Link Object
|
|
7
|
-
*
|
|
8
|
-
* The Link Object represents a possible design-time link for a response. The presence of a link does not guarantee the
|
|
9
|
-
* caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between
|
|
10
|
-
* responses and other operations.
|
|
11
|
-
*
|
|
12
|
-
* Unlike dynamic links (i.e. links provided in the response payload), the OAS linking mechanism does not require link
|
|
13
|
-
* information in the runtime response.
|
|
14
|
-
*
|
|
15
|
-
* For computing links and providing instructions to execute them, a runtime expression is used for accessing values in an
|
|
16
|
-
* operation and using them as parameters while invoking the linked operation.
|
|
17
|
-
*
|
|
18
|
-
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#link-object
|
|
19
|
-
*/
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { RuntimeExpressionSchema } from "./runtime-expression.js";
|
|
3
|
+
import { ServerObjectSchema } from "./server-object.js";
|
|
20
4
|
const LinkObjectSchema = z.object({
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
5
|
+
/**
|
|
6
|
+
* A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to
|
|
7
|
+
* an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI Description.
|
|
8
|
+
*/
|
|
9
|
+
operationRef: z.string().optional(),
|
|
10
|
+
/**
|
|
11
|
+
* The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually
|
|
12
|
+
* exclusive of the operationRef field.
|
|
13
|
+
*/
|
|
14
|
+
operationId: z.string().optional(),
|
|
15
|
+
/**
|
|
16
|
+
* A map representing parameters to pass to an operation as specified with operationId or identified via
|
|
17
|
+
* operationRef. The key is the parameter name to be used (optionally qualified with the parameter location, e.g.
|
|
18
|
+
* path.id for an id parameter in the path), whereas the value can be a constant or an expression to be evaluated
|
|
19
|
+
* and passed to the linked operation.
|
|
20
|
+
*/
|
|
21
|
+
parameters: z.record(z.string(), RuntimeExpressionSchema).optional(),
|
|
22
|
+
/**
|
|
23
|
+
* A literal value or {expression} to use as a request body when calling the target operation.
|
|
24
|
+
*/
|
|
25
|
+
requestBody: RuntimeExpressionSchema.optional(),
|
|
26
|
+
/**
|
|
27
|
+
* A description of the link. CommonMark syntax MAY be used for rich text representation.
|
|
28
|
+
*/
|
|
29
|
+
description: z.string().optional(),
|
|
30
|
+
/**
|
|
31
|
+
* A server object to be used by the target operation.
|
|
32
|
+
*/
|
|
33
|
+
server: ServerObjectSchema.optional()
|
|
50
34
|
});
|
|
51
|
-
|
|
52
|
-
|
|
35
|
+
export {
|
|
36
|
+
LinkObjectSchema
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=link-object.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/3.1/processed/link-object.ts"],
|
|
4
|
+
"sourcesContent": ["import { z } from 'zod'\nimport { RuntimeExpressionSchema } from './runtime-expression'\nimport { ServerObjectSchema } from './server-object'\n\n/**\n * Link Object\n *\n * The Link Object represents a possible design-time link for a response. The presence of a link does not guarantee the\n * caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between\n * responses and other operations.\n *\n * Unlike dynamic links (i.e. links provided in the response payload), the OAS linking mechanism does not require link\n * information in the runtime response.\n *\n * For computing links and providing instructions to execute them, a runtime expression is used for accessing values in an\n * operation and using them as parameters while invoking the linked operation.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#link-object\n */\nexport const LinkObjectSchema = z.object({\n /**\n * A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to\n * an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI Description.\n */\n operationRef: z.string().optional(),\n /**\n * The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually\n * exclusive of the operationRef field.\n */\n operationId: z.string().optional(),\n /**\n * A map representing parameters to pass to an operation as specified with operationId or identified via\n * operationRef. The key is the parameter name to be used (optionally qualified with the parameter location, e.g.\n * path.id for an id parameter in the path), whereas the value can be a constant or an expression to be evaluated\n * and passed to the linked operation.\n */\n parameters: z.record(z.string(), RuntimeExpressionSchema).optional(),\n /**\n * A literal value or {expression} to use as a request body when calling the target operation.\n */\n requestBody: RuntimeExpressionSchema.optional(),\n /**\n * A description of the link. CommonMark syntax MAY be used for rich text representation.\n */\n description: z.string().optional(),\n /**\n * A server object to be used by the target operation.\n */\n server: ServerObjectSchema.optional(),\n})\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,+BAA+B;AACxC,SAAS,0BAA0B;AAiB5B,MAAM,mBAAmB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKvC,cAAc,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKlC,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOjC,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,uBAAuB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAInE,aAAa,wBAAwB,SAAS;AAAA;AAAA;AAAA;AAAA,EAI9C,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIjC,QAAQ,mBAAmB,SAAS;AACtC,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|