@scalar/cli 2.11.0 → 2.12.1
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/README.md +3 -0
- package/chunks/{action-RQCXSJPZ.js → action-4B3MNNEG.js} +18 -18
- package/chunks/{action-ZUZL7R3H.js → action-4G23NFVD.js} +10 -10
- package/chunks/{action-6M5PTDF6.js → action-5I763IT2.js} +16 -16
- package/chunks/{action-HUICEXJZ.js → action-6IHAGCNR.js} +14 -14
- package/chunks/{action-MJMLQFLT.js → action-6IZYBY5P.js} +21 -15
- package/chunks/{action-LR75GHBA.js → action-6KP6KOYC.js} +7 -7
- package/chunks/{action-NHU4CUKT.js → action-6UOTMYQ4.js} +2 -2
- package/chunks/{action-FMA5ECUA.js → action-7HXYZPOT.js} +5 -5
- package/chunks/{action-5I4XDPPG.js → action-A2GXYB2K.js} +10 -10
- package/chunks/{action-CQQCKSNS.js → action-AOKHLTZ6.js} +18 -12
- package/chunks/{action-7H3AWCHX.js → action-AQ7BSPBE.js} +9 -9
- package/chunks/{action-OTPXODUE.js → action-D3IVCY24.js} +5 -5
- package/chunks/{action-YN4TE7TG.js → action-D52JJ3NL.js} +14 -14
- package/chunks/{action-SOYSVG67.js → action-ENZGEP4Y.js} +5 -5
- package/chunks/{action-D5QWDNQ2.js → action-GZKDPO3N.js} +13 -13
- package/chunks/{action-EYPYQQVM.js → action-HA3CMV3P.js} +5 -5
- package/chunks/{action-NKTFNFU7.js → action-HJSRU322.js} +13 -13
- package/chunks/{action-DQDHBOLJ.js → action-IASJWF5P.js} +15 -15
- package/chunks/{action-LAAHRDSR.js → action-INB2R2NQ.js} +4 -4
- package/chunks/{action-IQM54ITT.js → action-JHPUNA7Z.js} +17 -17
- package/chunks/{action-GXDJLF2G.js → action-JT6C472I.js} +5 -5
- package/chunks/{action-KC3ZCNDR.js → action-KDT6H6ML.js} +5 -5
- package/chunks/{action-RPCDNGCI.js → action-KWFAMQN5.js} +19 -19
- package/chunks/{action-IH6G77C5.js → action-NY2MGVBS.js} +14 -14
- package/chunks/{action-NMW5WPD2.js → action-O757TFA2.js} +5 -5
- package/chunks/{action-J5TO3UJW.js → action-RDXVIAS3.js} +19 -19
- package/chunks/{action-73ELLN3T.js → action-S7SONQ5E.js} +2 -2
- package/chunks/{action-2VF6LODL.js → action-T2I4TFLU.js} +8 -8
- package/chunks/{action-L7TMS3Q3.js → action-TH3TYR2A.js} +21 -21
- package/chunks/{action-ZGNVWTHZ.js → action-UTFRCKGE.js} +5 -5
- package/chunks/{action-BRSLSOE5.js → action-VK5HZHSC.js} +9 -9
- package/chunks/{action-25QMCP5G.js → action-XPJFCCAT.js} +17 -17
- package/chunks/{action-ZKKRPLDK.js → action-YL3CEKE7.js} +14 -14
- package/chunks/{actions-S6K76HCW.js → actions-LNIEIP7C.js} +14 -14
- package/chunks/{agent-IRNEV4K5.js → agent-F2A4UROF.js} +5 -5
- package/chunks/{asyncapi-WQPIQMEZ.js → asyncapi-HASQNFWS.js} +9 -9
- package/chunks/{build.action-CLBVKFWD.js → build.action-XKJ4ET3G.js} +16 -16
- package/chunks/{chunk-U6VE6JOS.js → chunk-4BE7UCJO.js} +2 -2
- package/chunks/{chunk-BQYVSPAI.js → chunk-7M44FQHX.js} +126 -2
- package/chunks/{chunk-SOV4POMS.js → chunk-7TSQ7ZGU.js} +15 -12
- package/chunks/{chunk-ULRJZXMS.js → chunk-BHWUD65X.js} +1 -1
- package/chunks/{chunk-5L7V7RCH.js → chunk-CFI5GBAK.js} +1 -1
- package/chunks/{chunk-KOD2HX5I.js → chunk-D5YZ3FXG.js} +1 -1
- package/chunks/{chunk-US54KYOJ.js → chunk-DKZ3PS3X.js} +1 -1
- package/chunks/{chunk-3TFOA64C.js → chunk-E57QCEAV.js} +1 -1
- package/chunks/{chunk-HZN6IIPZ.js → chunk-EJSGWV2K.js} +2 -2
- package/chunks/{chunk-GYR5E6RB.js → chunk-GPQXLA43.js} +2 -2
- package/chunks/{chunk-GKCVATQJ.js → chunk-IZVRYC2N.js} +3 -3
- package/chunks/{chunk-SEURG74P.js → chunk-JLNHOA5Z.js} +3 -3
- package/chunks/{chunk-ALYM4ZB2.js → chunk-KWLAZV7P.js} +1 -1
- package/chunks/{chunk-N5CJ5MTY.js → chunk-LLZDQXYS.js} +1 -1
- package/chunks/{chunk-F3OPMYME.js → chunk-LWIAFTKX.js} +90 -14
- package/chunks/{chunk-FG5AOTDN.js → chunk-N645RGAB.js} +785 -407
- package/chunks/{chunk-3RIUDHLG.js → chunk-NTRWXCXD.js} +2 -2
- package/chunks/{chunk-QMLRYD76.js → chunk-PERC34BV.js} +1 -1
- package/chunks/{chunk-LOLVJNI5.js → chunk-PU5UIHAF.js} +2 -2
- package/chunks/{chunk-AVZFSWPD.js → chunk-Q26DFKTY.js} +1 -1
- package/chunks/{chunk-Y6XGC4K5.js → chunk-RYWXF3LO.js} +8 -1
- package/chunks/{chunk-4JKXZ5CF.js → chunk-SNOAL2C5.js} +1 -1
- package/chunks/{chunk-25XERWCE.js → chunk-U764PQUA.js} +3 -27
- package/chunks/{chunk-T34TL6KL.js → chunk-V3MYP5SQ.js} +27 -2
- package/chunks/{chunk-MN2AFJXM.js → chunk-VUNOOPEG.js} +1 -1
- package/chunks/{chunk-GMHIK5K2.js → chunk-WZJTV4ET.js} +1 -1
- package/chunks/{chunk-NWJ37GI2.js → chunk-XLZEIIPW.js} +28 -9
- package/chunks/{chunk-CSSTCHHF.js → chunk-YLZP3W37.js} +8 -3
- package/chunks/{chunk-DQD2753S.js → chunk-YMRRFDEQ.js} +2 -2
- package/chunks/{chunk-UFSFY7Z4.js → chunk-ZW62VYJW.js} +96 -2
- package/chunks/{create.action-ITEOQ644.js → create.action-XXOLILUS.js} +16 -16
- package/chunks/{delete.action-77MFPLUN.js → delete.action-R5KGPLDG.js} +16 -16
- package/chunks/{delete.action-C6VX4S5Q.js → delete.action-TQJOZRV7.js} +16 -16
- package/chunks/{get.action-LNBOWUVE.js → get.action-46OBVOQQ.js} +15 -15
- package/chunks/{get.action-3BP4FHZC.js → get.action-IQMOL4WM.js} +10 -10
- package/chunks/{list.action-KR5YIDR4.js → list.action-GXTKKVHY.js} +17 -17
- package/chunks/{list.action-6CRFQPJT.js → list.action-RIS7Q4OU.js} +15 -15
- package/chunks/{publish.action-YBORRPBM.js → publish.action-A4T4BT3F.js} +21 -21
- package/chunks/{update.action-QZI7M2MV.js → update.action-IZ5GULPY.js} +16 -16
- package/chunks/{update.action-O7TSXDGV.js → update.action-TK5L4PXB.js} +16 -16
- package/index.js +65 -64
- package/package.json +1 -1
- package/skills/scalar-cli/SKILL.md +1 -1
- package/template.md +3 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
SdkLanguage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RYWXF3LO.js";
|
|
5
5
|
import {
|
|
6
6
|
contentShaSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-U764PQUA.js";
|
|
8
8
|
import {
|
|
9
9
|
compareVersionsDesc,
|
|
10
10
|
docVersionSchema,
|
|
@@ -42,7 +42,7 @@ var sdkTrackedApiVersionSpec = (sdk) => sdk.apiVersion ?? (findOpenSdkDraft(sdkV
|
|
|
42
42
|
// ../../packages/entities/dist/sdk/scalar-config.js
|
|
43
43
|
import yaml from "yaml";
|
|
44
44
|
|
|
45
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
45
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/scalar-sdk.config.schema.json
|
|
46
46
|
var scalar_sdk_config_schema_default = {
|
|
47
47
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
48
48
|
$id: "https://registry.scalar.com/@scalar/schemas/sdk-config",
|
|
@@ -75,11 +75,11 @@ var scalar_sdk_config_schema_default = {
|
|
|
75
75
|
additionalProperties: {
|
|
76
76
|
$ref: "#/$defs/customCasingConfig"
|
|
77
77
|
},
|
|
78
|
-
description: "SDK symbol casing overrides, including
|
|
78
|
+
description: "SDK symbol casing overrides, including initialisms. A key may span several words when written with separators (`three_ds`, not `threeDS`), and then matches that word sequence anywhere in a generated name. A multi-word key needs an explicit `pascal` or `camel` spelling, since `initialism` applies to a single word; whichever one it declares spells both PascalCase and camelCase names. snake_case names already spell the key as written."
|
|
79
79
|
},
|
|
80
80
|
targets: {
|
|
81
81
|
$ref: "#/$defs/targetConfigMap",
|
|
82
|
-
description: "Per-language packaging, publishing, and
|
|
82
|
+
description: "Per-language packaging, publishing, and generation options, keyed by target id."
|
|
83
83
|
},
|
|
84
84
|
environments: {
|
|
85
85
|
type: "object",
|
|
@@ -93,7 +93,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
93
93
|
items: {
|
|
94
94
|
type: "string"
|
|
95
95
|
},
|
|
96
|
-
description: "
|
|
96
|
+
description: "Order the generated client lists environments in; the first entry is the default."
|
|
97
97
|
},
|
|
98
98
|
clientSettings: {
|
|
99
99
|
$ref: "#/$defs/clientSettings",
|
|
@@ -116,7 +116,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
116
116
|
},
|
|
117
117
|
settings: {
|
|
118
118
|
$ref: "#/$defs/globalSettings",
|
|
119
|
-
description: "
|
|
119
|
+
description: "Generator behavior shared by every target."
|
|
120
120
|
},
|
|
121
121
|
openapi: {
|
|
122
122
|
$ref: "#/$defs/openAPIConfig",
|
|
@@ -124,7 +124,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
124
124
|
},
|
|
125
125
|
grpc: {
|
|
126
126
|
$ref: "#/$defs/grpcConfig",
|
|
127
|
-
description: "How proto services
|
|
127
|
+
description: "How proto services become SDK methods: which protos are compiled, the wire protocol generated clients speak, per-service placement and naming, and RPCs to drop. Under `transcode`, an RPC with no usable `google.api.http` annotation falls back to a Connect call and is reported."
|
|
128
128
|
},
|
|
129
129
|
errors: {
|
|
130
130
|
$ref: "#/$defs/errorsConfig",
|
|
@@ -136,7 +136,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
136
136
|
type: "string",
|
|
137
137
|
pattern: "^((delete|get|head|options|patch|post|put|trace) .+|grpc [A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*/[A-Za-z_][A-Za-z0-9_]*)$"
|
|
138
138
|
},
|
|
139
|
-
description: 'Endpoints to drop from generation entirely, even when a resource places them. Equivalent to `skip: true` on the placed method. Written as `"<verb> <path>"` for HTTP operations and `"grpc <package>.<Service>/<Method>"` for RPCs
|
|
139
|
+
description: 'Endpoints to drop from generation entirely, even when a resource places them. Equivalent to `skip: true` on the placed method. Written as `"<verb> <path>"` for HTTP operations and `"grpc <package>.<Service>/<Method>"` for RPCs generated from a proto.'
|
|
140
140
|
},
|
|
141
141
|
streaming: {
|
|
142
142
|
$ref: "#/$defs/streamingConfig",
|
|
@@ -151,7 +151,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
151
151
|
},
|
|
152
152
|
diagnostics: {
|
|
153
153
|
$ref: "#/$defs/diagnosticsConfig",
|
|
154
|
-
description: "
|
|
154
|
+
description: "When diagnostics fail the build, per-rule severity overrides, and suppressions."
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
required: ["organization", "resources", "targets", "environments", "environmentOrder"],
|
|
@@ -165,7 +165,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
165
165
|
},
|
|
166
166
|
docs: {
|
|
167
167
|
type: "string",
|
|
168
|
-
description: "URL of the API documentation site, linked from generated package metadata."
|
|
168
|
+
description: "URL of the API documentation site, linked from generated package metadata and from the generated README."
|
|
169
169
|
},
|
|
170
170
|
contact: {
|
|
171
171
|
type: "string",
|
|
@@ -173,7 +173,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
173
173
|
},
|
|
174
174
|
securityContact: {
|
|
175
175
|
type: "string",
|
|
176
|
-
description: "Email address API vulnerability reports should go to, named in the generated security policy. Every target
|
|
176
|
+
description: "Email address API vulnerability reports should go to, named in the generated security policy. Every target generates one, and each sends reports about the generated SDK code itself to Scalar instead, whether or not this is set."
|
|
177
177
|
},
|
|
178
178
|
logo: {
|
|
179
179
|
type: "string",
|
|
@@ -193,7 +193,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
193
193
|
failOn: {
|
|
194
194
|
enum: ["off", "info", "warn", "error"],
|
|
195
195
|
default: "error",
|
|
196
|
-
description: "Lowest severity that fails the build
|
|
196
|
+
description: "Lowest severity that fails the build; `off` means no severity fails it."
|
|
197
197
|
},
|
|
198
198
|
maxWarnings: {
|
|
199
199
|
type: "number",
|
|
@@ -221,7 +221,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
223
|
additionalProperties: false,
|
|
224
|
-
description: "Controls
|
|
224
|
+
description: "Controls when diagnostics fail the build, rule severities, and suppressions."
|
|
225
225
|
},
|
|
226
226
|
diagnosticIgnoreConfig: {
|
|
227
227
|
anyOf: [
|
|
@@ -369,7 +369,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
369
369
|
minProperties: 1
|
|
370
370
|
}
|
|
371
371
|
],
|
|
372
|
-
description: "Deprecation message surfaced in generated code: one string for every target, or a map naming a message per target. A target without its own message falls back to `default`, except on a method that forwards to a renamed one, where TypeScript, Python and Go instead name the replacement in their own casing; Java, Kotlin and PHP render `default` verbatim there, so a rename those SDKs should spell in their own casing needs its own key. With no `default` at all the declaration is still deprecated everywhere, and the targets it does not name carry the same bare marker a spec-level `deprecated: true` produces. Only TypeScript, Python, Go, PHP, Java and Kotlin
|
|
372
|
+
description: "Deprecation message surfaced in generated code: one string for every target, or a map naming a message per target. A target without its own message falls back to `default`, except on a method that forwards to a renamed one, where TypeScript, Python and Go instead name the replacement in their own casing; Java, Kotlin and PHP render `default` verbatim there, so a rename those SDKs should spell in their own casing needs its own key. With no `default` at all the declaration is still deprecated everywhere, and the targets it does not name carry the same bare marker a spec-level `deprecated: true` produces. Only TypeScript, Python, Go, PHP, Java and Kotlin use the message; the other targets accept a key but generate either no deprecation marker or one with fixed text. The CLI takes no key of its own: it is built on the generated TypeScript SDK, so it uses the `typescript` message."
|
|
373
373
|
},
|
|
374
374
|
httpMethod: {
|
|
375
375
|
enum: ["delete", "get", "head", "options", "patch", "post", "put", "trace"]
|
|
@@ -425,7 +425,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
425
425
|
},
|
|
426
426
|
streamEventModel: {
|
|
427
427
|
type: "string",
|
|
428
|
-
description: "
|
|
428
|
+
description: "Model path for the generated stream events."
|
|
429
429
|
},
|
|
430
430
|
methodNames: {
|
|
431
431
|
type: "object",
|
|
@@ -453,11 +453,11 @@ var scalar_sdk_config_schema_default = {
|
|
|
453
453
|
},
|
|
454
454
|
filter: {
|
|
455
455
|
type: "string",
|
|
456
|
-
description: "CLI-specific parameter filter expression.
|
|
456
|
+
description: "CLI-specific parameter filter expression. Not used yet: setting it does not change the generated CLI."
|
|
457
457
|
},
|
|
458
458
|
format: {
|
|
459
459
|
type: "string",
|
|
460
|
-
description: "Default CLI output format for this method.
|
|
460
|
+
description: "Default CLI output format for this method. Not used yet: the generated CLI uses the target-wide `defaultFormat`."
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
},
|
|
@@ -599,7 +599,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
599
599
|
{
|
|
600
600
|
type: "string",
|
|
601
601
|
pattern: "^((delete|get|head|options|patch|post|put|trace) .+|grpc [A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*/[A-Za-z_][A-Za-z0-9_]*)$",
|
|
602
|
-
description: 'Endpoint shorthand, `"<verb> <path>"` for HTTP operations and `"grpc <package>.<Service>/<Method>"` for an RPC
|
|
602
|
+
description: 'Endpoint shorthand, `"<verb> <path>"` for HTTP operations and `"grpc <package>.<Service>/<Method>"` for an RPC generated from a proto. The RPC spelling names the RPC itself and is the one to prefer. Under `grpc.protocol: "connect"` the same RPC is equivalently spellable as `"post /<package>.<Service>/<Method>"` \u2014 the route a Connect call is actually sent to, and the form every endpoint string normalizes to internally \u2014 but that route is a fact about the protocol rather than about the RPC, so it is not portable to a different `grpc.protocol`.'
|
|
603
603
|
},
|
|
604
604
|
{
|
|
605
605
|
type: "object",
|
|
@@ -626,7 +626,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
626
626
|
},
|
|
627
627
|
publicIdentifier: {
|
|
628
628
|
type: "string",
|
|
629
|
-
description: "Exact
|
|
629
|
+
description: "Exact public method name, used as written before each target applies its own casing."
|
|
630
630
|
},
|
|
631
631
|
bodyContentType: {
|
|
632
632
|
type: "string",
|
|
@@ -717,7 +717,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
717
717
|
},
|
|
718
718
|
asyncapi: {
|
|
719
719
|
$ref: "#/$defs/asyncapiMethodConfig",
|
|
720
|
-
description: "For methods
|
|
720
|
+
description: "For methods generated from an AsyncAPI document, the channel and operations they bind to."
|
|
721
721
|
},
|
|
722
722
|
webhook: {
|
|
723
723
|
$ref: "#/$defs/webhookMethodConfig",
|
|
@@ -857,7 +857,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
857
857
|
},
|
|
858
858
|
publicAccessor: {
|
|
859
859
|
type: "string",
|
|
860
|
-
description: "Exact public resource accessor
|
|
860
|
+
description: "Exact public resource accessor, used as written before each target applies its own casing."
|
|
861
861
|
},
|
|
862
862
|
description: {
|
|
863
863
|
type: "string",
|
|
@@ -897,7 +897,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
897
897
|
properties: {
|
|
898
898
|
title: {
|
|
899
899
|
type: "string",
|
|
900
|
-
description: "Heading of the generated README, replacing the SDK display name it is otherwise derived from. `targets.<lang>.readmeTitle` overrides it for one target.
|
|
900
|
+
description: "Heading of the generated README, replacing the SDK display name it is otherwise derived from. `targets.<lang>.readmeTitle` overrides it for one target. Plain text: markdown in it is shown as written, not rendered."
|
|
901
901
|
},
|
|
902
902
|
attribution: {
|
|
903
903
|
type: "boolean",
|
|
@@ -909,7 +909,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
909
909
|
additionalProperties: {
|
|
910
910
|
$ref: "#/$defs/readmeExample"
|
|
911
911
|
},
|
|
912
|
-
description: "Example requests the README renders, keyed by the section each illustrates: `default` (the usage quickstart), `errors`, `pagination`, `retries`, `timeouts`, `nested_params`, `http_agent`, and `headline`.
|
|
912
|
+
description: "Example requests the README renders, keyed by the section each illustrates: `default` (the usage quickstart), `errors`, `pagination`, `retries`, `timeouts`, `nested_params`, `http_agent`, and `headline`. A key for a section the README does not have is accepted and ignored."
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
915
|
},
|
|
@@ -971,7 +971,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
971
971
|
properties: {
|
|
972
972
|
initialism: {
|
|
973
973
|
type: "boolean",
|
|
974
|
-
description: "Marks the word as an initialism so
|
|
974
|
+
description: "Marks the word as an initialism so generated names keep its acronym casing. `false` turns off a word the generator uppercases by default, spelling it as an ordinary word (`ttl` \u2192 `Ttl` rather than `TTL`)."
|
|
975
975
|
}
|
|
976
976
|
},
|
|
977
977
|
required: ["initialism"]
|
|
@@ -1005,11 +1005,11 @@ var scalar_sdk_config_schema_default = {
|
|
|
1005
1005
|
},
|
|
1006
1006
|
branch: {
|
|
1007
1007
|
type: "string",
|
|
1008
|
-
description: "Default branch of the destination repository,
|
|
1008
|
+
description: "Default branch of the destination repository, which release pull requests target. Generated output is pushed to the `scalar-generated` branch and merged with your custom code on the integration branch (`integrationBranch`, `scalar-next` by default); the release pull request is opened from there against this branch. Defaults to a `#branch` suffix on `repo`, then `main`. A value that is not a safe git branch name is skipped in favor of the next one."
|
|
1009
1009
|
},
|
|
1010
1010
|
integrationBranch: {
|
|
1011
1011
|
type: "string",
|
|
1012
|
-
description: "
|
|
1012
|
+
description: "Branch where generated output is combined with your custom code; defaults to `scalar-next`. Commit customizations here: each regeneration is merged into it, release pull requests are opened from it, and each released version is synced back to it. An empty string means the default. The name must be a safe git branch name, and it cannot be the default branch or collide with the branches Scalar and release-please manage, such as `scalar-generated`."
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
1015
|
},
|
|
@@ -1018,7 +1018,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1018
1018
|
properties: {
|
|
1019
1019
|
production: {
|
|
1020
1020
|
$ref: "#/$defs/gitDestination",
|
|
1021
|
-
description: "Primary
|
|
1021
|
+
description: "Primary repository this target's generated output is published to. Setting it turns on the generated GitHub Actions: the CI workflow, the release-please configuration, and the versioning policy. A release workflow is added too when `publish` enables a registry that needs one; a registry served from git tags publishes from the release tag alone. Without a production destination the target is still generated, but with no workflows."
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
1024
1024
|
},
|
|
@@ -1026,7 +1026,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1026
1026
|
type: "string",
|
|
1027
1027
|
enum: ["automatic", "manual"],
|
|
1028
1028
|
default: "automatic",
|
|
1029
|
-
description: "When a successful build's generated output reaches this target's production destination. `automatic`, the default, pushes every build, which opens a release pull request. `manual` holds each build at the staging playground until
|
|
1029
|
+
description: "When a successful build's generated output reaches this target's production destination. `automatic`, the default, pushes every build, which opens a release pull request. `manual` holds each build at the staging playground until you promote it.\n\nThis changes when the push happens, never what is generated: a `manual` target still gets the GitHub Actions, release-please configuration, and versioning policy that `destinations.production` turns on. A target with no production destination is never pushed, whatever this is set to."
|
|
1030
1030
|
},
|
|
1031
1031
|
baseTargetConfig: {
|
|
1032
1032
|
type: "object",
|
|
@@ -1042,7 +1042,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1042
1042
|
},
|
|
1043
1043
|
readmeTitle: {
|
|
1044
1044
|
type: "string",
|
|
1045
|
-
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`.
|
|
1045
|
+
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`. Plain text: markdown in it is shown as written, not rendered."
|
|
1046
1046
|
},
|
|
1047
1047
|
destinations: {
|
|
1048
1048
|
$ref: "#/$defs/destinationsConfig",
|
|
@@ -1099,15 +1099,15 @@ var scalar_sdk_config_schema_default = {
|
|
|
1099
1099
|
tapRepo: {
|
|
1100
1100
|
type: "string",
|
|
1101
1101
|
pattern: "^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$",
|
|
1102
|
-
description: "Homebrew tap repository (`owner/repo`) the release workflow pushes the generated formula to, e.g. `acme/homebrew-tap`. Required, because a tap is the only thing a Homebrew release has to push to: there is no central registry to fall back on, so a guessed repository either does not exist or belongs to someone else.
|
|
1102
|
+
description: "Homebrew tap repository (`owner/repo`) the release workflow pushes the generated formula to, e.g. `acme/homebrew-tap`. Required, because a tap is the only thing a Homebrew release has to push to: there is no central registry to fall back on, so a guessed repository either does not exist or belongs to someone else. Must be a single `owner/repo` pair of GitHub name characters.\n\nCreate the repository yourself before the first release \u2014 nothing in the generated workflow creates it \u2014 and set it up so a user can install from it:\n\n- **Name it `homebrew-<tap>`.** Homebrew expands the `brew install <owner>/<tap>/<formula>` shorthand back to `github.com/<owner>/homebrew-<tap>`, so a conventionally named tap installs in one command. Any other name is still a working tap, but users have to `brew tap <owner>/<repo> https://github.com/<owner>/<repo>` first, and that is what the generated README documents instead. Either way the README installs by the fully qualified `<owner>/<tap>/<formula>` name: Homebrew resolves a bare name against its official formulae and casks before any tap, and since Homebrew 6 a tap is untrusted until its user trusts it, so a bare name from it does not load at all. Installing by the full name trusts that one package.\n- **Keep it public.** `brew install` fetches the formula anonymously; a private tap only installs for users who have configured their own GitHub credentials for Homebrew.\n\nThe owner does not have to match the SDK repository's owner \u2014 a tap shared across several CLIs usually does not. Access to it comes from the `HOMEBREW_TAP_TOKEN` secret (or `HOMEBREW_TAP_GITHUB_TOKEN` when that is unset), not from the workflow's own repository permissions; see `publish.homebrew` for how to create and store it."
|
|
1103
1103
|
},
|
|
1104
1104
|
authMethod: {
|
|
1105
1105
|
$ref: "#/$defs/publishAuthMethod",
|
|
1106
|
-
description: "
|
|
1106
|
+
description: "Not used for Homebrew: the formula is pushed to the `tapRepo` with the `HOMEBREW_TAP_TOKEN` repository secret (or `HOMEBREW_TAP_GITHUB_TOKEN` when that is unset), and there is no registry to trust a publisher with. See `publish.homebrew` for the setup."
|
|
1107
1107
|
},
|
|
1108
1108
|
releaseEnvironment: {
|
|
1109
1109
|
type: "string",
|
|
1110
|
-
description: "Release environment name used by generated publishing workflows. It renders as the publish job's `environment:`, so the destination repository's environment protection rules
|
|
1110
|
+
description: "Release environment name used by generated publishing workflows. It renders as the publish job's `environment:`, so the destination repository's environment protection rules apply to the release, and this registry's secrets can come from that environment \u2014 one there overrides a repository secret of the same name. The CLI publishes all of its registries from one job, so there the first entry that names an environment decides it for every channel and later ones are ignored."
|
|
1111
1111
|
},
|
|
1112
1112
|
homepage: {
|
|
1113
1113
|
type: "string",
|
|
@@ -1123,15 +1123,15 @@ var scalar_sdk_config_schema_default = {
|
|
|
1123
1123
|
},
|
|
1124
1124
|
replaceCask: {
|
|
1125
1125
|
type: "boolean",
|
|
1126
|
-
description: "Retire a Homebrew **cask** of the same name that the tap already ships, so users who installed the CLI as that cask move to this formula instead of
|
|
1126
|
+
description: "Retire a Homebrew **cask** of the same name that the tap already ships, so users who installed the CLI as that cask move to this formula instead of staying on the cask's last version or ending up with both. Set it when this CLI takes over a tap whose previous release tooling published a cask, such as GoReleaser's `homebrew_casks`, under the same name.\n\nWhen the tap holds a cask with this name that installs this CLI's command, the release deletes it and adds a `tap_migrations.json` entry in the same commit, which is Homebrew's own cask-to-formula migration. On the next `brew update`, a machine with the cask installed switches to the formula when the formula or the whole tap is trusted; otherwise, since Homebrew 6, it prints the `brew trust --formula` and `brew install --formula` commands that finish the move. The generated README tells cask users to run `brew uninstall --cask <formula>` first. A same-named cask for anything else, such as a desktop app, is left in place, and the release log says so. Defaults to `false`."
|
|
1127
1127
|
},
|
|
1128
1128
|
cask: {
|
|
1129
1129
|
type: "boolean",
|
|
1130
|
-
description: "Publish a Homebrew **cask** (`Casks/<formula>.rb`) instead of a formula (`Formula/<formula>.rb`). Users install it with `brew install --cask <owner>/<tap>/<formula>`, and the generated README says so. Casks are how Homebrew expects prebuilt executables to ship; a formula is meant to build from source.\n\nRequires `signing.macos` to be `sign-and-notarize`, and the config is rejected without it. Homebrew quarantines everything a cask downloads, the way a browser marks a download, so Gatekeeper checks the macOS executable the first time it runs and blocks one Apple has not notarized \u2014 a signature alone is not enough. A formula download is not quarantined, which is why the formula needs no notarization.\n\nThe cask
|
|
1130
|
+
description: "Publish a Homebrew **cask** (`Casks/<formula>.rb`) instead of a formula (`Formula/<formula>.rb`). Users install it with `brew install --cask <owner>/<tap>/<formula>`, and the generated README says so. Casks are how Homebrew expects prebuilt executables to ship; a formula is meant to build from source.\n\nRequires `signing.macos` to be `sign-and-notarize`, and the config is rejected without it. Homebrew quarantines everything a cask downloads, the way a browser marks a download, so Gatekeeper checks the macOS executable the first time it runs and blocks one Apple has not notarized \u2014 a signature alone is not enough. A formula download is not quarantined, which is why the formula needs no notarization.\n\nThe cask installs the same macOS and Linux archives the formula would (Homebrew installs casks on Linux too), along with the man pages and, unless `shellCompletions` is off, bash, zsh and fish completions. A cask with completions needs Homebrew 5.1.1 or later; `brew install` updates Homebrew first unless auto-update is turned off.\n\n`replaceCask` cannot be combined with this, since the release would delete the cask it just wrote. To move users of a same-named formula onto the cask, set `replaceFormula`. Defaults to `false`."
|
|
1131
1131
|
},
|
|
1132
1132
|
replaceFormula: {
|
|
1133
1133
|
type: "boolean",
|
|
1134
|
-
description:
|
|
1134
|
+
description: "Retire a Homebrew **formula** of the same name that the tap already ships, so users who installed the CLI as that formula move to the cask this release writes. Otherwise they stay on the formula's last version, and because Homebrew resolves a name to a formula before a cask, new users who omit `--cask` keep getting the stale formula too. Only applies with `cask` on; the config is rejected otherwise. Set it when switching a CLI from a formula to a cask, or when taking over a tap whose earlier release tooling wrote `Formula/<name>.rb`.\n\nWhen the tap holds a formula with this name that installs this CLI's command, the release deletes it and adds a `tap_migrations.json` entry in the same commit, which is Homebrew's own formula-to-cask migration. On the next `brew update`, a machine with the formula installed switches to the cask when the cask or the whole tap is trusted; otherwise, since Homebrew 6, it prints the `brew trust --cask` and `brew install --cask` commands that finish the move. The generated README tells formula users to run `brew uninstall --formula <formula>` first. A same-named formula for anything else is left in place, and the release log says so. Defaults to `false`."
|
|
1135
1135
|
}
|
|
1136
1136
|
},
|
|
1137
1137
|
required: ["tapRepo"],
|
|
@@ -1166,7 +1166,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1166
1166
|
},
|
|
1167
1167
|
releaseEnvironment: {
|
|
1168
1168
|
type: "string",
|
|
1169
|
-
description: "Release environment name used by generated publishing workflows. It renders as the publish job's `environment:`, so the destination repository's environment protection rules
|
|
1169
|
+
description: "Release environment name used by generated publishing workflows. It renders as the publish job's `environment:`, so the destination repository's environment protection rules apply to the release, and this registry's secrets can come from that environment \u2014 one there overrides a repository secret of the same name. Under OIDC it must also match the environment registered on the trusted publisher."
|
|
1170
1170
|
},
|
|
1171
1171
|
access: {
|
|
1172
1172
|
anyOf: [
|
|
@@ -1181,12 +1181,12 @@ var scalar_sdk_config_schema_default = {
|
|
|
1181
1181
|
pattern: "^\\S+$"
|
|
1182
1182
|
}
|
|
1183
1183
|
],
|
|
1184
|
-
description: "Package visibility the release publishes with, as npm's `--access`:\n\n- `public` (the default): installable by anyone.
|
|
1184
|
+
description: "Package visibility the release publishes with, as npm's `--access`:\n\n- `public` (the default): installable by anyone. npm publishes a scoped package as `restricted` unless told otherwise, so without this default a scoped SDK would publish privately.\n- `restricted`: readable only by the publishing account or organization. It needs a paid npm plan and a scoped package; npm rejects it otherwise.\n- Any other string is passed to `npm publish` as given. A blank value, or one with whitespace, is rejected before a release tag is cut."
|
|
1185
1185
|
},
|
|
1186
1186
|
tag: {
|
|
1187
1187
|
type: "string",
|
|
1188
1188
|
pattern: "^[a-z][a-z0-9-]*$",
|
|
1189
|
-
description: "Dist-tag stable releases land on, as npm's `--tag`. Defaults to
|
|
1189
|
+
description: "Dist-tag stable releases land on, as npm's `--tag`. Defaults to `latest`, the tag a bare `npm install <package>` resolves. Set it to publish releases without moving `latest`, for example for a package that ships a `next` line.\n\nPrereleases ignore it and take their tag from the version's prerelease identifier:\n\n- `1.0.0-beta.1` publishes under `beta`.\n- A prerelease identifier that is not usable as a tag publishes under `next`.\n- A derived tag that would name a stable line gets a `-prerelease` suffix instead. `latest` always counts as one, so `1.0.0-latest.1` publishes under `latest-prerelease`; with `tag: next`, `1.3.0-RC.1` publishes under `next-prerelease`.\n\nMust be lowercase letters, digits, and hyphens, starting with a letter. npm also rejects a tag that looks like a semver version, which `npm publish` reports."
|
|
1190
1190
|
},
|
|
1191
1191
|
homepage: {
|
|
1192
1192
|
type: "string",
|
|
@@ -1230,7 +1230,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1230
1230
|
},
|
|
1231
1231
|
readmeTitle: {
|
|
1232
1232
|
type: "string",
|
|
1233
|
-
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`.
|
|
1233
|
+
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`. Plain text: markdown in it is shown as written, not rendered."
|
|
1234
1234
|
},
|
|
1235
1235
|
packageName: {
|
|
1236
1236
|
type: "string",
|
|
@@ -1238,7 +1238,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1238
1238
|
},
|
|
1239
1239
|
packageManager: {
|
|
1240
1240
|
type: "string",
|
|
1241
|
-
description: "TypeScript package manager preference.
|
|
1241
|
+
description: "TypeScript package manager preference. Not used yet: setting it does not change the generated SDK."
|
|
1242
1242
|
},
|
|
1243
1243
|
publish: {
|
|
1244
1244
|
$ref: "#/$defs/npmPublishConfig",
|
|
@@ -1247,11 +1247,11 @@ var scalar_sdk_config_schema_default = {
|
|
|
1247
1247
|
prereleaseType: { $ref: "#/$defs/prereleaseType" },
|
|
1248
1248
|
options: {
|
|
1249
1249
|
$ref: "#/$defs/typeScriptTargetOptions",
|
|
1250
|
-
description: "TypeScript
|
|
1250
|
+
description: "TypeScript generation options."
|
|
1251
1251
|
},
|
|
1252
1252
|
compatibility: {
|
|
1253
1253
|
enum: ["speakeasy"],
|
|
1254
|
-
description: "
|
|
1254
|
+
description: "Experimental and not yet complete: generates an extra module of deprecated wrapper functions that mirror a Speakeasy SDK's public surface and forward to the generated SDK, so code written against a Speakeasy SDK keeps compiling. The wrapper module does not yet reproduce every part of a Speakeasy SDK's surface. `speakeasy` generates standalone functions returning a functional `Result` in `src/compat/speakeasy.ts`, plus subpath modules laid out like a Speakeasy SDK (`src/funcs/`, `src/sdk/`, `src/models/`, `src/lib/`, `src/types/` and `src/core.ts`). Omit to generate nothing extra."
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
1257
|
},
|
|
@@ -1261,12 +1261,17 @@ var scalar_sdk_config_schema_default = {
|
|
|
1261
1261
|
propertyCasing: {
|
|
1262
1262
|
enum: ["wire", "sdk"],
|
|
1263
1263
|
default: "wire",
|
|
1264
|
-
description: "Naming style for generated properties and parameters.
|
|
1264
|
+
description: "Naming style for generated properties and parameters. `wire` (the default) keeps the OpenAPI names, such as `order_by` and `event_name`. `sdk` uses camelCase, such as `orderBy` and `eventName`, and the generated SDK maps them back to the wire names in requests and responses."
|
|
1265
1265
|
},
|
|
1266
1266
|
dateTimeType: {
|
|
1267
1267
|
enum: ["string", "Date"],
|
|
1268
1268
|
default: "string",
|
|
1269
|
-
description: "How `format: date-time` values are typed.
|
|
1269
|
+
description: "How `format: date-time` values are typed. `string` (the default) types them as ISO 8601 strings and passes them through unchanged. `Date` types them as JavaScript `Date` objects: responses are parsed into `Date`, and request inputs accept `Date | string` and are sent as ISO strings. Date-only (`format: date`) values stay strings. Some positions keep strings even with `Date`: headers, path segments, `multipart/form-data` parts, and the responses of streaming, paginated, websocket, gRPC/Connect, and unwrapped methods. Known gaps: a shared model reached only through a union or intersection, or only through one of those methods, is typed `Date` but holds the ISO string, and a header, path, or multipart parameter that references a date-time model keeps that model's `Date` type."
|
|
1270
|
+
},
|
|
1271
|
+
int64Type: {
|
|
1272
|
+
enum: ["number", "bigint"],
|
|
1273
|
+
default: "number",
|
|
1274
|
+
description: "How `integer` values declared `format: int64` (or the unregistered `format: uint64`) are typed. 'number' (the default) declares them as a JavaScript `number` and parses responses with the platform JSON parser, which is what every generated TypeScript SDK does today: a value past 2^53 - 1, such as `9007199254740993`, silently arrives rounded to the nearest representable `number`. 'bigint' declares them as a JavaScript `bigint` and keeps them exact: response bodies are parsed without loss, and every int64 value on a path the response remap reaches is handed back as a `bigint` built from the digits the server sent. An inline int64 request input accepts `bigint | number`, and the runtime writes a `bigint` as a plain JSON number in a request body (where `JSON.stringify` alone would throw) and as its decimal digits in a query string, a path segment, a header or a `multipart/form-data` part. Where the response remap cannot run \u2014 streaming, paginated, websocket, gRPC/Connect and unwrapped responses \u2014 and under a union or intersection arm, whose taken arm the schema cannot decide, an inline int64 stays a `number` so the type never promises a `bigint` the runtime does not deliver. The gaps `dateTimeType: 'Date'` documents carry over unchanged, because a shared model is declared once under the SDK-wide setting rather than per use site: a model reached only through a union or intersection arm, through one of those non-remapping methods or through a webhook payload `unwrap` parses declares `bigint` over fields that hold the parsed `number`, and a request that references a model takes that model's plain `bigint`, not `bigint | number`, for its int64 fields. A proto `int64` is unaffected and stays the `string` proto3-JSON writes it as. There is no 'string' value: a request would then need a per-field rule to tell an int64 string from any other string and write it as a JSON number, where a `bigint` is told apart by its `typeof`."
|
|
1270
1275
|
},
|
|
1271
1276
|
backCompat: {
|
|
1272
1277
|
$ref: "#/$defs/typeScriptBackCompatOptions",
|
|
@@ -1281,7 +1286,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1281
1286
|
typeAliases: {
|
|
1282
1287
|
type: "array",
|
|
1283
1288
|
items: { $ref: "#/$defs/typeScriptTypeAlias" },
|
|
1284
|
-
description: "Extra type names declared in generated resource modules, so an import or annotation an already-published TypeScript SDK shipped keeps compiling after the type it named moved or was renamed, e.g. `PartListResponse` for `PartList.Data` in `resources/widgets/parts`. Each entry appends `export type <name> = <to>;` to `module`, and the name is re-exported wherever that module's types are: the resource's own `export declare namespace`, its direct parent's namespace, and the resource barrels beside it. For a root resource module that parent is the client namespace. Deeper ancestors reach a nested module's alias through the nested namespace path (`Client.Widgets.Parts.PartListResponse`), not under their own name. Generation fails when `module` is not a resource module this SDK
|
|
1289
|
+
description: "Extra type names declared in generated resource modules, so an import or annotation an already-published TypeScript SDK shipped keeps compiling after the type it named moved or was renamed, e.g. `PartListResponse` for `PartList.Data` in `resources/widgets/parts`. Each entry appends `export type <name> = <to>;` to `module`, and the name is re-exported wherever that module's types are: the resource's own `export declare namespace`, its direct parent's namespace, and the resource barrels beside it. For a root resource module that parent is the client namespace. Deeper ancestors reach a nested module's alias through the nested namespace path (`Client.Widgets.Parts.PartListResponse`), not under their own name. Generation fails when `module` is not a resource module this SDK generates, when `to` is not a type `module` itself declares, when `module` already binds `name`, when another module already exports `name` or a generated class carries it (the shared namespaces and barrels would otherwise rename that type), or when `name` is a global type generated modules may use unqualified, such as `Array`, `Response`, `Blob` or `Date`. A stale entry is therefore caught when it stops resolving, rather than shipping without the name or renaming another type."
|
|
1285
1290
|
}
|
|
1286
1291
|
}
|
|
1287
1292
|
},
|
|
@@ -1391,7 +1396,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1391
1396
|
},
|
|
1392
1397
|
readmeTitle: {
|
|
1393
1398
|
type: "string",
|
|
1394
|
-
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`.
|
|
1399
|
+
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`. Plain text: markdown in it is shown as written, not rendered."
|
|
1395
1400
|
},
|
|
1396
1401
|
packageName: {
|
|
1397
1402
|
type: "string",
|
|
@@ -1408,7 +1413,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1408
1413
|
prereleaseType: { $ref: "#/$defs/prereleaseType" },
|
|
1409
1414
|
options: {
|
|
1410
1415
|
$ref: "#/$defs/pythonTargetOptions",
|
|
1411
|
-
description: "Python
|
|
1416
|
+
description: "Python generation options."
|
|
1412
1417
|
}
|
|
1413
1418
|
}
|
|
1414
1419
|
},
|
|
@@ -1505,20 +1510,20 @@ var scalar_sdk_config_schema_default = {
|
|
|
1505
1510
|
},
|
|
1506
1511
|
readmeTitle: {
|
|
1507
1512
|
type: "string",
|
|
1508
|
-
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`.
|
|
1513
|
+
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`. Plain text: markdown in it is shown as written, not rendered."
|
|
1509
1514
|
},
|
|
1510
1515
|
packageName: {
|
|
1511
1516
|
type: "string",
|
|
1512
|
-
description: "Go package
|
|
1517
|
+
description: "Go package name, and a module-path fallback. It names the `package <name>` clause in every generated file, normalized to a Go identifier (`Acme` becomes `acme`, `pagination-api` becomes `paginationapi`), and it is how users spell every call (`acme.NewClient(...)`), so renaming it on a published SDK breaks their code. The module path normally comes from `destinations.production.repo`, or from `goModulePathOverride`; this is only the fallback for a target that sets neither. Defaults to `clientSettings.defaultClientName`, then the SDK name."
|
|
1513
1518
|
},
|
|
1514
1519
|
goModulePathOverride: {
|
|
1515
1520
|
type: "string",
|
|
1516
1521
|
pattern: "^[A-Za-z0-9][A-Za-z0-9._~+-]*(/[A-Za-z0-9][A-Za-z0-9._~+-]*)*$",
|
|
1517
|
-
description: "Go module path for `go.mod` and every generated import, when it must differ from the destination repository. The module path is normally derived from `destinations.production.repo` (e.g. `acme/acme-go` becomes `github.com/acme/acme-go`); set this when the published module path and the repository name have diverged, e.g. a repo renamed to `acme/widget-sdk-go` whose module must stay `github.com/acme/widget-go-sdk`. Accepts a full module path or an `owner/name` shorthand that is expanded to `github.com/owner/name`.
|
|
1522
|
+
description: "Go module path for `go.mod` and every generated import, when it must differ from the destination repository. The module path is normally derived from `destinations.production.repo` (e.g. `acme/acme-go` becomes `github.com/acme/acme-go`); set this when the published module path and the repository name have diverged, e.g. a repo renamed to `acme/widget-sdk-go` whose module must stay `github.com/acme/widget-go-sdk`. Accepts a full module path or an `owner/name` shorthand that is expanded to `github.com/owner/name`. Restricted to Go module path characters (`A-Za-z0-9._~+-` per `/`-separated element)."
|
|
1518
1523
|
},
|
|
1519
1524
|
pointerServices: {
|
|
1520
1525
|
type: "boolean",
|
|
1521
|
-
description: "Currently ignored
|
|
1526
|
+
description: "Currently ignored. Whether the generated client is pointer- or value-shaped follows `options.codeStyle`, and the default `v1` style is always pointer-shaped (`NewClient` returns `*Client`). Accepted so existing configs stay valid."
|
|
1522
1527
|
},
|
|
1523
1528
|
publish: {
|
|
1524
1529
|
$ref: "#/$defs/goPublishConfig",
|
|
@@ -1527,7 +1532,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1527
1532
|
prereleaseType: { $ref: "#/$defs/prereleaseType" },
|
|
1528
1533
|
options: {
|
|
1529
1534
|
$ref: "#/$defs/goTargetOptions",
|
|
1530
|
-
description: "Go
|
|
1535
|
+
description: "Go generation options: which Go code style the SDK uses, and whether the per-service options field is exported."
|
|
1531
1536
|
}
|
|
1532
1537
|
}
|
|
1533
1538
|
},
|
|
@@ -1537,12 +1542,12 @@ var scalar_sdk_config_schema_default = {
|
|
|
1537
1542
|
codeStyle: {
|
|
1538
1543
|
enum: ["v1", "v2"],
|
|
1539
1544
|
default: "v1",
|
|
1540
|
-
description: "Which
|
|
1545
|
+
description: "Which Go code style the SDK is generated in. `v1` (the default) types every parameter as `param.Field[T]`, keeps response metadata in a separate struct of `apijson.Field`, and represents unions as interfaces with `AsUnion()`. `v2` types an optional or nullable scalar parameter as `param.Opt[T]` and other parameters as plain Go types, inlines response metadata as a `JSON` struct of `respjson.Field`, and represents unions as structs with `As<Variant>()` and `AsAny()` accessors. The two styles export different root helpers (`F`, `Null`, `Raw` and `FileParam` against `Opt`, `Ptr`, `Time` and `File`), so switching a published SDK in either direction is a breaking change for its users. Set `v2` only for a Go SDK with no published users, or in a major release. A config generated for you leaves this unset, so new projects start on `v1`."
|
|
1541
1546
|
},
|
|
1542
1547
|
optionsFieldExported: {
|
|
1543
1548
|
type: "boolean",
|
|
1544
1549
|
default: true,
|
|
1545
|
-
description: "Name the per-service request-
|
|
1550
|
+
description: "Name the per-service request-options field `Options` rather than the unexported `options`, so callers can read or replace a service's default request options. Defaults to true. Set it to false only for an SDK whose published services already hide the field: on a live SDK, false removes a field its users can read. Works with either `codeStyle`."
|
|
1546
1551
|
}
|
|
1547
1552
|
}
|
|
1548
1553
|
},
|
|
@@ -1579,15 +1584,15 @@ var scalar_sdk_config_schema_default = {
|
|
|
1579
1584
|
"tests"
|
|
1580
1585
|
]
|
|
1581
1586
|
},
|
|
1582
|
-
description: "Maven artifact ID the JVM SDK publishes under, e.g. `acme-java`. Defaults to `<sdk slug>-java`
|
|
1587
|
+
description: "Maven artifact ID the JVM SDK publishes under, e.g. `acme-java`. Defaults to `<sdk slug>-java` or `<sdk slug>-kotlin`, so set it only when the published coordinate is spelled differently: regenerating such an SDK without it renames the artifact its users depend on. It also names the generated Gradle modules (`<artifactId>-core`, `<artifactId>-client-okhttp`) and their directories, so it must be alphanumeric runs joined by single `.`, `_`, or `-` separators. It cannot be a name the generated project already uses at its root: `LICENSE`, `README.md`, `SECURITY.md`, `SKILL.md`, `VERSIONING.md`, `api.md`, `build`, `build.gradle.kts`, `buildSrc`, `gradle`, `gradle.properties`, `gradlew`, `gradlew.bat`, `local.properties`, `release-please-config.json`, `scalar-sdk.manifest.json`, `settings.gradle.kts`, or `tests`."
|
|
1583
1588
|
},
|
|
1584
1589
|
authMethod: {
|
|
1585
1590
|
$ref: "#/$defs/publishAuthMethod",
|
|
1586
|
-
description: "
|
|
1591
|
+
description: "Not used for Maven Central: every release authenticates with the `MAVEN_CENTRAL_USERNAME`, `MAVEN_CENTRAL_PASSWORD`, `MAVEN_GPG_PRIVATE_KEY`, and `MAVEN_GPG_PASSPHRASE` repository secrets, each falling back to `SONATYPE_USERNAME`, `SONATYPE_PASSWORD`, `GPG_SIGNING_KEY` and `GPG_SIGNING_PASSWORD` respectively when it is unset. See `publish.maven` for the setup."
|
|
1587
1592
|
},
|
|
1588
1593
|
releaseEnvironment: {
|
|
1589
1594
|
type: "string",
|
|
1590
|
-
description: "Release environment name used by generated publishing workflows. It renders as the publish job's `environment:`, so the destination repository's environment protection rules
|
|
1595
|
+
description: "Release environment name used by generated publishing workflows. It renders as the publish job's `environment:`, so the destination repository's environment protection rules apply to the release, and this registry's secrets can come from that environment \u2014 one there overrides a repository secret of the same name."
|
|
1591
1596
|
},
|
|
1592
1597
|
sonatypePlatform: {
|
|
1593
1598
|
anyOf: [
|
|
@@ -1601,7 +1606,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1601
1606
|
type: "string"
|
|
1602
1607
|
}
|
|
1603
1608
|
],
|
|
1604
|
-
description: "Maven Central
|
|
1609
|
+
description: "Maven Central platform an imported config named: `portal` for the Central Portal, `ossrh` for the retired OSSRH staging API. Accepted only on `maven`. Generated releases always publish through the Central Portal, so this does not change the generated SDK."
|
|
1605
1610
|
},
|
|
1606
1611
|
homepage: {
|
|
1607
1612
|
type: "string",
|
|
@@ -1645,7 +1650,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1645
1650
|
},
|
|
1646
1651
|
readmeTitle: {
|
|
1647
1652
|
type: "string",
|
|
1648
|
-
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`.
|
|
1653
|
+
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`. Plain text: markdown in it is shown as written, not rendered."
|
|
1649
1654
|
},
|
|
1650
1655
|
reverseDomain: {
|
|
1651
1656
|
type: "string",
|
|
@@ -1658,7 +1663,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1658
1663
|
prereleaseType: { $ref: "#/$defs/prereleaseType" },
|
|
1659
1664
|
options: {
|
|
1660
1665
|
$ref: "#/$defs/jvmTargetOptions",
|
|
1661
|
-
description: "
|
|
1666
|
+
description: "Kotlin generation options. Each one changes generated class names, class shapes, or file layout, so changing one on an SDK that already has users is a breaking change."
|
|
1662
1667
|
}
|
|
1663
1668
|
}
|
|
1664
1669
|
},
|
|
@@ -1672,7 +1677,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1672
1677
|
elideConst: {
|
|
1673
1678
|
type: "boolean",
|
|
1674
1679
|
default: true,
|
|
1675
|
-
description: "
|
|
1680
|
+
description: "Leave required constant-valued properties out of the typed API and pin their values instead. True by default: such a property has no typed getter, enum, or builder setter, only a raw accessor and a raw setter for sending a value the API description does not describe, and `build()` does not check it. A closed union variant whose only property is its discriminator becomes raw JSON instead of a class. Set it to false to generate the property as an ordinary typed field (typed getter, required builder slot, checked on `build()`) and to give such a variant its own class. A string constant is then typed as a single-member enum; numeric and boolean constants keep their scalar types. A `readOnly` or nullable constant is never elided."
|
|
1676
1681
|
}
|
|
1677
1682
|
}
|
|
1678
1683
|
},
|
|
@@ -1682,7 +1687,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1682
1687
|
flatModelPackages: {
|
|
1683
1688
|
type: "boolean",
|
|
1684
1689
|
default: false,
|
|
1685
|
-
description: "
|
|
1690
|
+
description: "Generate every model into one flat `models` package instead of a package per resource, and name each operation's params, page, async page, page response, and implied response class after its full chain of resources: `models/ProjectTaskCommentCreateParams` instead of `models/projects/tasks/comments/CommentCreateParams`. `unnamespacedImplicitResponses` exempts implied responses from the prefix. Models named after a component schema keep their names, operations on a resource with `useNamespaceInTypeNames` disabled drop the ancestor prefix, and services stay nested. Off by default."
|
|
1686
1691
|
},
|
|
1687
1692
|
refNameNestedModels: {
|
|
1688
1693
|
type: "boolean",
|
|
@@ -1717,7 +1722,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1717
1722
|
},
|
|
1718
1723
|
readmeTitle: {
|
|
1719
1724
|
type: "string",
|
|
1720
|
-
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`.
|
|
1725
|
+
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`. Plain text: markdown in it is shown as written, not rendered."
|
|
1721
1726
|
},
|
|
1722
1727
|
reverseDomain: {
|
|
1723
1728
|
type: "string",
|
|
@@ -1730,7 +1735,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1730
1735
|
prereleaseType: { $ref: "#/$defs/prereleaseType" },
|
|
1731
1736
|
options: {
|
|
1732
1737
|
$ref: "#/$defs/javaTargetOptions",
|
|
1733
|
-
description: "Java
|
|
1738
|
+
description: "Java generation options. Each one changes generated class names, class shapes, or file layout, so changing one on an SDK that already has users is a breaking change."
|
|
1734
1739
|
}
|
|
1735
1740
|
}
|
|
1736
1741
|
},
|
|
@@ -1785,7 +1790,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1785
1790
|
},
|
|
1786
1791
|
readmeTitle: {
|
|
1787
1792
|
type: "string",
|
|
1788
|
-
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`.
|
|
1793
|
+
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`. Plain text: markdown in it is shown as written, not rendered."
|
|
1789
1794
|
},
|
|
1790
1795
|
gemName: {
|
|
1791
1796
|
type: "string",
|
|
@@ -1819,7 +1824,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1819
1824
|
},
|
|
1820
1825
|
readmeTitle: {
|
|
1821
1826
|
type: "string",
|
|
1822
|
-
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`.
|
|
1827
|
+
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`. Plain text: markdown in it is shown as written, not rendered."
|
|
1823
1828
|
},
|
|
1824
1829
|
packageName: {
|
|
1825
1830
|
type: "string",
|
|
@@ -1870,7 +1875,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1870
1875
|
},
|
|
1871
1876
|
readmeTitle: {
|
|
1872
1877
|
type: "string",
|
|
1873
|
-
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`.
|
|
1878
|
+
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`. Plain text: markdown in it is shown as written, not rendered."
|
|
1874
1879
|
},
|
|
1875
1880
|
packageName: {
|
|
1876
1881
|
type: "string",
|
|
@@ -1880,9 +1885,39 @@ var scalar_sdk_config_schema_default = {
|
|
|
1880
1885
|
$ref: "#/$defs/nugetPublishConfig",
|
|
1881
1886
|
description: "NuGet publishing configuration."
|
|
1882
1887
|
},
|
|
1883
|
-
prereleaseType: { $ref: "#/$defs/prereleaseType" }
|
|
1888
|
+
prereleaseType: { $ref: "#/$defs/prereleaseType" },
|
|
1889
|
+
options: {
|
|
1890
|
+
$ref: "#/$defs/cSharpTargetOptions",
|
|
1891
|
+
description: "C# generation options."
|
|
1892
|
+
}
|
|
1884
1893
|
}
|
|
1885
1894
|
},
|
|
1895
|
+
cSharpTargetOptions: {
|
|
1896
|
+
type: "object",
|
|
1897
|
+
properties: {
|
|
1898
|
+
strongName: {
|
|
1899
|
+
$ref: "#/$defs/cSharpStrongNameConfig",
|
|
1900
|
+
description: "Signs the generated assembly with a strong-name key, so the package can be referenced from a strong-named assembly. Consumers on .NET Framework, or building with warnings as errors, cannot load or reference an unsigned assembly from a signed one. Turning signing on or off changes the assembly's identity, so a consumer bound to the old identity has to rebuild: decide it before the first release. The key is yours, and the generator never creates or writes one: commit the `.snk` file to the destination repository yourself. Without the key file the SDK still builds, unsigned, but packing it for release fails; see the C# publishing guide."
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
},
|
|
1904
|
+
cSharpStrongNameConfig: {
|
|
1905
|
+
type: "object",
|
|
1906
|
+
properties: {
|
|
1907
|
+
keyFile: {
|
|
1908
|
+
type: "string",
|
|
1909
|
+
pattern: "^([A-Za-z0-9_-][A-Za-z0-9._-]*/)*[A-Za-z0-9_-][A-Za-z0-9._-]*\\.snk$",
|
|
1910
|
+
description: "Path of the strong-name key file (`.snk`), relative to the root of the destination repository, for example `Open.snk` or `keys/Sdk.snk`. Directories are separated by `/`, and each segment must start with a letter, digit, `_` or `-` and contain only letters, digits, `.`, `_` and `-`, so the path cannot be absolute, contain `.` or `..`, or pass through a hidden directory."
|
|
1911
|
+
},
|
|
1912
|
+
publicKey: {
|
|
1913
|
+
type: "string",
|
|
1914
|
+
pattern: "^([0-9A-Fa-f]{2}){96,}$",
|
|
1915
|
+
description: "Full public key of `keyFile` in hexadecimal on one line, without spaces: the hex `sn -tp` prints for the key's public half, joined onto one line (not the 16-digit public key token). When set, the generated test project is declared a friend assembly with this key (`InternalsVisibleTo`). When unset, the library declares no friend assembly at all, because a signed assembly can only name a friend by its public key; the generated tests only use the public API, so they still build and run."
|
|
1916
|
+
}
|
|
1917
|
+
},
|
|
1918
|
+
required: ["keyFile"],
|
|
1919
|
+
additionalProperties: false
|
|
1920
|
+
},
|
|
1886
1921
|
cliPublishConfig: {
|
|
1887
1922
|
type: "object",
|
|
1888
1923
|
allOf: [
|
|
@@ -1924,7 +1959,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
1924
1959
|
},
|
|
1925
1960
|
signing: {
|
|
1926
1961
|
$ref: "#/$defs/cliSigningConfig",
|
|
1927
|
-
description: "Code signing
|
|
1962
|
+
description: "Code signing for the compiled CLI executables. It is not a publishing channel: it signs what `binaries` and `homebrew` ship, so set it alongside one of them; on its own it publishes nothing. Unlike the registry entries beside it, an unknown key here fails config loading instead of producing a warning, so a typo cannot silently ship unsigned binaries."
|
|
1928
1963
|
}
|
|
1929
1964
|
}
|
|
1930
1965
|
},
|
|
@@ -2008,7 +2043,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
2008
2043
|
},
|
|
2009
2044
|
readmeTitle: {
|
|
2010
2045
|
type: "string",
|
|
2011
|
-
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`.
|
|
2046
|
+
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`. Plain text: markdown in it is shown as written, not rendered."
|
|
2012
2047
|
},
|
|
2013
2048
|
packageName: {
|
|
2014
2049
|
type: "string",
|
|
@@ -2016,7 +2051,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
2016
2051
|
},
|
|
2017
2052
|
options: {
|
|
2018
2053
|
$ref: "#/$defs/rustTargetOptions",
|
|
2019
|
-
description: "Rust
|
|
2054
|
+
description: "Rust generation options: naming overrides, date-time mapping, TLS backend, retries, and extra Cargo dependencies."
|
|
2020
2055
|
},
|
|
2021
2056
|
publish: {
|
|
2022
2057
|
$ref: "#/$defs/cargoPublishConfig",
|
|
@@ -2046,7 +2081,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
2046
2081
|
},
|
|
2047
2082
|
readmeTitle: {
|
|
2048
2083
|
type: "string",
|
|
2049
|
-
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`.
|
|
2084
|
+
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`. Plain text: markdown in it is shown as written, not rendered."
|
|
2050
2085
|
},
|
|
2051
2086
|
packageName: {
|
|
2052
2087
|
type: "string",
|
|
@@ -2059,7 +2094,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
2059
2094
|
prereleaseType: { $ref: "#/$defs/prereleaseType" },
|
|
2060
2095
|
options: {
|
|
2061
2096
|
$ref: "#/$defs/swiftTargetOptions",
|
|
2062
|
-
description: "Swift
|
|
2097
|
+
description: "Swift generation options."
|
|
2063
2098
|
}
|
|
2064
2099
|
}
|
|
2065
2100
|
},
|
|
@@ -2079,6 +2114,59 @@ var scalar_sdk_config_schema_default = {
|
|
|
2079
2114
|
}
|
|
2080
2115
|
}
|
|
2081
2116
|
},
|
|
2117
|
+
cppTargetConfig: {
|
|
2118
|
+
type: "object",
|
|
2119
|
+
properties: {
|
|
2120
|
+
generatorVersion: {
|
|
2121
|
+
"x-mjst": { hidden: true },
|
|
2122
|
+
type: "string",
|
|
2123
|
+
description: "Version of the Scalar SDK Generator used to generate this target's SDK, overriding the top-level generatorVersion."
|
|
2124
|
+
},
|
|
2125
|
+
skip: {
|
|
2126
|
+
type: "boolean",
|
|
2127
|
+
description: "When true, the target is not generated."
|
|
2128
|
+
},
|
|
2129
|
+
readmeTitle: {
|
|
2130
|
+
type: "string",
|
|
2131
|
+
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`. Plain text: markdown in it is shown as written, not rendered."
|
|
2132
|
+
},
|
|
2133
|
+
destinations: {
|
|
2134
|
+
$ref: "#/$defs/destinationsConfig",
|
|
2135
|
+
description: "Per-target GitHub destinations for pushing generated output."
|
|
2136
|
+
},
|
|
2137
|
+
promotion: {
|
|
2138
|
+
$ref: "#/$defs/promotion"
|
|
2139
|
+
},
|
|
2140
|
+
options: {
|
|
2141
|
+
$ref: "#/$defs/cppTargetOptions",
|
|
2142
|
+
description: "C++ emitter options."
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
},
|
|
2146
|
+
cppTargetOptions: {
|
|
2147
|
+
type: "object",
|
|
2148
|
+
properties: {
|
|
2149
|
+
namespace: {
|
|
2150
|
+
type: "string",
|
|
2151
|
+
pattern: "^[a-z](_?[a-z0-9])*(::[a-z](_?[a-z0-9])*)*$",
|
|
2152
|
+
description: "C++ namespace the generated client, models and resources are declared in, such as `acme` or `acme::v2`. Each `::` segment is lowercase snake_case that starts with a letter, with no doubled or trailing `_`; a segment that C++, the C library or a dependency reserves fails generation: for example a keyword, `std`, a macro such as `linux` or `min`, or a C library function such as `time` as the first segment. The namespace also names the public include directory, the umbrella header and the macro prefix (`acme::v2` gives `include/acme_v2/`, `acme_v2.hpp` and `ACME_V2_`). Defaults to the package name passed to the generator, else the SDK's slug, converted to snake_case."
|
|
2153
|
+
},
|
|
2154
|
+
libraryName: {
|
|
2155
|
+
type: "string",
|
|
2156
|
+
description: "Name of the generated CMake project and library target, and of the package `find_package` looks for. The value is converted to snake_case. The public headers live under `include/` in a directory named after `namespace`, not this. Defaults to the package name passed to the generator, else the SDK's slug, converted to snake_case. A value that does not start with a letter once converted, or one CMake, a dependency or Windows reserves (such as `test`, `install` or `con`), fails generation."
|
|
2157
|
+
},
|
|
2158
|
+
async: {
|
|
2159
|
+
type: "boolean",
|
|
2160
|
+
default: true,
|
|
2161
|
+
description: "Generates an asynchronous client beside the synchronous one, whose methods return a `std::future` or take a completion callback. Set `false` to leave it out, which shortens build times for a very large API. The asynchronous client is not generated yet; today `false` only leaves out the executor runtime header it will use. Defaults to `true`."
|
|
2162
|
+
},
|
|
2163
|
+
preserveUnknownFields: {
|
|
2164
|
+
type: "boolean",
|
|
2165
|
+
default: true,
|
|
2166
|
+
description: "Gives every generated model an `extra_fields` member that keeps the JSON keys the API document does not describe, so a model decoded from a response and written back into a request round-trips them unchanged. Set `false` to drop the member and discard those keys on decode. Defaults to `true`."
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2169
|
+
},
|
|
2082
2170
|
dartTargetConfig: {
|
|
2083
2171
|
type: "object",
|
|
2084
2172
|
properties: {
|
|
@@ -2100,7 +2188,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
2100
2188
|
},
|
|
2101
2189
|
readmeTitle: {
|
|
2102
2190
|
type: "string",
|
|
2103
|
-
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`.
|
|
2191
|
+
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`. Plain text: markdown in it is shown as written, not rendered."
|
|
2104
2192
|
},
|
|
2105
2193
|
packageName: {
|
|
2106
2194
|
type: "string",
|
|
@@ -2119,7 +2207,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
2119
2207
|
enabled: {
|
|
2120
2208
|
type: "boolean",
|
|
2121
2209
|
default: true,
|
|
2122
|
-
description: "Set `false` to
|
|
2210
|
+
description: "Set `false` to generate no credential store at all: no `login`, no `logout`, no stored-credential read. Defaults to **true**, but only applies to a CLI whose SDK has an auth scheme; without one there is nothing to sign in with, so the commands are left out anyway. Use it when your API has auth but you do not want a credential file on your users' machines."
|
|
2123
2211
|
},
|
|
2124
2212
|
backend: {
|
|
2125
2213
|
type: "string",
|
|
@@ -2139,7 +2227,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
2139
2227
|
clientId: {
|
|
2140
2228
|
type: "string",
|
|
2141
2229
|
minLength: 1,
|
|
2142
|
-
description: "Public OAuth client id registered for this CLI.
|
|
2230
|
+
description: "Public OAuth client id registered for this CLI. It is not a secret (a CLI is a public client, so the browser flow uses PKCE rather than a client secret), and it is written into the generated source. Never configure a confidential secret here: it would ship inside a published npm package.\n\nSet it here, not as a `clientSettings.opts` default: options that carry credentials do not accept defaults."
|
|
2143
2231
|
},
|
|
2144
2232
|
redirectPort: {
|
|
2145
2233
|
type: "integer",
|
|
@@ -2157,12 +2245,12 @@ var scalar_sdk_config_schema_default = {
|
|
|
2157
2245
|
revocationUrl: {
|
|
2158
2246
|
type: "string",
|
|
2159
2247
|
minLength: 1,
|
|
2160
|
-
description: "Token revocation endpoint (RFC 7009) that `logout` calls after
|
|
2248
|
+
description: "Token revocation endpoint (RFC 7009) that `logout` calls after deleting the local credential. It takes precedence over a `revocation_endpoint` the provider publishes in its metadata: an `openIdConnect` scheme's discovery document, or the RFC 8414 document an `oauth2` scheme's `oauth2MetadataUrl` names.\n\nA relative URL is resolved against the API base URL, the same way the flow's `tokenUrl` is. The endpoint must be HTTPS (a loopback host may use plain HTTP) and must have the same origin as the token endpoint that issued the token, so a token is never sent to another provider; when nothing qualifies, `login` prints a warning and `logout` only deletes the local copy. An authorization server on another host therefore needs an absolute URL, and generation reports a relative one that can never be used as `Config/UnusedRevocationUrl`. The URL chosen at sign-in is saved with the credential and used by later `logout` calls.\n\n`logout` revokes the refresh token, then the access token, sending the stored `client_id` but never a client secret. Revocation is best effort: if it fails, the local credential is still deleted, `logout` still succeeds, and the failure is printed as a warning."
|
|
2161
2249
|
},
|
|
2162
2250
|
issuer: {
|
|
2163
2251
|
type: "string",
|
|
2164
2252
|
pattern: "^(https://[^\\s/?#@]+|http://(localhost|127\\.0\\.0\\.1|\\[::1\\])(:[0-9]+)?)(/[^\\s?#]*)?$",
|
|
2165
|
-
description: "Issuer identifier of the authorization server, e.g. `https://auth.example.com
|
|
2253
|
+
description: "Issuer identifier of the authorization server, e.g. `https://auth.example.com`, as its metadata publishes it in `issuer`. An `https` URL with no query, fragment, or credentials; plain `http` is accepted only for `localhost`, `127.0.0.1`, and `[::1]`.\n\nWhen set, a browser sign-in requires the redirect back to the CLI to carry this value as its `iss` parameter ([RFC 9207](https://www.rfc-editor.org/rfc/rfc9207)), and stops without storing anything when it is missing or different. This defends against mix-up attacks. Set it only when your provider sends `iss` on its redirects, or every sign-in fails. It applies to every browser sign-in the CLI offers, OAuth and OpenID Connect alike. An `openIdConnect` scheme whose discovery URL names a different issuer could never sign in, so the CLI leaves that flow out and generation reports `Config/OidcIssuerMismatch`. A device sign-in that reads a scheme's `oauth2MetadataUrl` also checks that document's `issuer` against this value.\n\nOpenID Connect sign-ins verify the issuer from the discovery document even without this setting, and check that an ID token names it, is issued to this `clientId`, is unexpired, and echoes the sign-in's `nonce`. The ID token's signature is not checked, since it comes straight from the token endpoint over TLS, which OpenID Connect Core section 3.1.3.7 allows."
|
|
2166
2254
|
}
|
|
2167
2255
|
},
|
|
2168
2256
|
required: ["clientId"]
|
|
@@ -2188,16 +2276,16 @@ var scalar_sdk_config_schema_default = {
|
|
|
2188
2276
|
},
|
|
2189
2277
|
readmeTitle: {
|
|
2190
2278
|
type: "string",
|
|
2191
|
-
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`.
|
|
2279
|
+
description: "Heading of this target's generated README, overriding the SDK-wide `readme.title`. Plain text: markdown in it is shown as written, not rendered."
|
|
2192
2280
|
},
|
|
2193
2281
|
packageName: {
|
|
2194
2282
|
type: "string",
|
|
2195
|
-
description: "Name the generated CLI is published under on npm, e.g. `@acme/widget`. Defaults to the kebab-cased SDK name with a `-cli` suffix (`scalar-galaxy-cli`). This is not the command name: `targets.cli.binaryName` names the command this package installs (`widget`)
|
|
2283
|
+
description: "Name the generated CLI is published under on npm, e.g. `@acme/widget`. Defaults to the kebab-cased SDK name with a `-cli` suffix (`scalar-galaxy-cli`). This is not the command name: `targets.cli.binaryName` names the command this package installs (`widget`). An `@scope/name` value keeps its scope. The value is lowercased and anything outside `a-z0-9._-` becomes `-`, so `@Acme/Widget CLI` publishes as `@acme/widget-cli`. Other npm naming rules, such as the 214-character limit, are checked by `npm publish`."
|
|
2196
2284
|
},
|
|
2197
2285
|
binaryName: {
|
|
2198
2286
|
type: "string",
|
|
2199
2287
|
pattern: "^[A-Za-z0-9]([A-Za-z0-9._-]*[A-Za-z0-9_])?$",
|
|
2200
|
-
description: "Command name the generated CLI is installed and invoked as, e.g. `acme-hr`. Defaults to the SDK slug. This is not the package name: `targets.cli.packageName` names the published npm package (`@acme/widget`), while this names the command that package installs (`widget`).
|
|
2288
|
+
description: "Command name the generated CLI is installed and invoked as, e.g. `acme-hr`. Defaults to the SDK slug. This is not the package name: `targets.cli.packageName` names the published npm package (`@acme/widget`), while this names the command that package installs (`widget`). The same spelling is used for the `package.json` `bin` key, the man pages, the binary Homebrew installs, and the command shown in `--help`, the README, and shell completions, so it is restricted to `A-Za-z0-9._-`, starting with an alphanumeric and not ending in `-` or `.`. Case is preserved (`MyWidget` installs and runs as `MyWidget`); only the Homebrew formula file name is lowercased. A name with a scope, spaces, or shell metacharacters is rejected, since npm and Homebrew would each change it differently."
|
|
2201
2289
|
},
|
|
2202
2290
|
defaultFormat: {
|
|
2203
2291
|
type: "string",
|
|
@@ -2210,12 +2298,12 @@ var scalar_sdk_config_schema_default = {
|
|
|
2210
2298
|
shellCompletions: {
|
|
2211
2299
|
type: "boolean",
|
|
2212
2300
|
default: true,
|
|
2213
|
-
description: "Whether the generated CLI ships shell completion scripts and the `completion` subcommand that prints them.
|
|
2301
|
+
description: "Whether the generated CLI ships shell completion scripts and the `completion` subcommand that prints them."
|
|
2214
2302
|
},
|
|
2215
2303
|
subresourceSeparator: {
|
|
2216
2304
|
enum: ["colon", "space"],
|
|
2217
2305
|
default: "colon",
|
|
2218
|
-
description: "How the generated CLI spells a command under a nested resource. `colon` joins the resource chain into one command group (`projects:tasks create`), the shape Heroku-style `oclif` CLIs use. `space` nests each subresource as a subcommand of its parent (`projects tasks create`), the shape `gh`, `kubectl`, and `gcloud` use; `--help`, shell completion, man pages, the README, and the smoke test all follow the nested tree. Under `space` a subresource and a method of its parent resource would be the same command if they shared a name, and so would a root method and a top-level resource that has only subresources. A subresource whose accessor clashes with a method is already renamed for every target (`policies-resource`); a clash that survives that, such as a method whose `publicIdentifier` differs from its name, fails generation naming both commands rather than silently renaming either. Top-level resources and root methods are spelled the same either way.
|
|
2306
|
+
description: "How the generated CLI spells a command under a nested resource. `colon` joins the resource chain into one command group (`projects:tasks create`), the shape Heroku-style `oclif` CLIs use. `space` nests each subresource as a subcommand of its parent (`projects tasks create`), the shape `gh`, `kubectl`, and `gcloud` use; `--help`, shell completion, man pages, the README, and the smoke test all follow the nested tree. Under `space` a subresource and a method of its parent resource would be the same command if they shared a name, and so would a root method and a top-level resource that has only subresources. A subresource whose accessor clashes with a method is already renamed for every target (`policies-resource`); a clash that survives that, such as a method whose `publicIdentifier` differs from its name, fails generation naming both commands rather than silently renaming either. Top-level resources and root methods are spelled the same either way."
|
|
2219
2307
|
},
|
|
2220
2308
|
publish: {
|
|
2221
2309
|
$ref: "#/$defs/cliPublishConfig",
|
|
@@ -2223,7 +2311,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
2223
2311
|
},
|
|
2224
2312
|
credentialStore: {
|
|
2225
2313
|
$ref: "#/$defs/cliCredentialStoreConfig",
|
|
2226
|
-
description: "Interactive sign-in for the generated CLI: a `login` command that acquires a credential the way the SDK's auth scheme demands \u2014 prompting for an API key, or running an OAuth flow \u2014 and a `logout` that clears it, so later commands need no flag or environment variable.\n\
|
|
2314
|
+
description: "Interactive sign-in for the generated CLI: a `login` command that acquires a credential the way the SDK's auth scheme demands \u2014 prompting for an API key, or running an OAuth flow \u2014 and a `logout` that clears it, so later commands need no flag or environment variable.\n\nGenerated only when the SDK has an auth scheme, and suppressed by `enabled: false`. Where the credential is kept is `backend`'s call: by default the operating system's own credential store \u2014 the Keychain on macOS, the Secret Service on Linux, Credential Manager on Windows \u2014 falling back to a `0600` file inside a `0700` directory in the user's state directory when none is reachable. Either way it is keyed by the base URL the command resolves \u2014 `--base-url`, else the environment selected with `--environment` or `<PREFIX>_ENVIRONMENT`, else `<PREFIX>_BASE_URL`, else the default \u2014 and `login`, `logout` and every request resolve it the same way, so a credential issued against one environment is never sent to another. An explicit flag or environment variable always wins over a stored one."
|
|
2227
2315
|
},
|
|
2228
2316
|
prereleaseType: { $ref: "#/$defs/prereleaseType" }
|
|
2229
2317
|
}
|
|
@@ -2292,7 +2380,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
2292
2380
|
title: "C#"
|
|
2293
2381
|
},
|
|
2294
2382
|
cpp: {
|
|
2295
|
-
$ref: "#/$defs/
|
|
2383
|
+
$ref: "#/$defs/cppTargetConfig",
|
|
2296
2384
|
description: "C++ SDK target config.",
|
|
2297
2385
|
"x-scalar-stability": "experimental",
|
|
2298
2386
|
title: "C++"
|
|
@@ -2570,7 +2658,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
2570
2658
|
agentSkill: {
|
|
2571
2659
|
type: "boolean",
|
|
2572
2660
|
default: true,
|
|
2573
|
-
description: "
|
|
2661
|
+
description: "Generate SKILL.md Agent Skill files describing the generated SDK for AI coding agents. Defaults to true."
|
|
2574
2662
|
},
|
|
2575
2663
|
fileHeader: {
|
|
2576
2664
|
type: "string",
|
|
@@ -2658,7 +2746,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
2658
2746
|
items: {
|
|
2659
2747
|
$ref: "#/$defs/openAPITransformation"
|
|
2660
2748
|
},
|
|
2661
|
-
description: "OpenAPI document transforms applied before
|
|
2749
|
+
description: "OpenAPI document transforms applied before generation."
|
|
2662
2750
|
}
|
|
2663
2751
|
}
|
|
2664
2752
|
},
|
|
@@ -2758,7 +2846,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
2758
2846
|
properties: {
|
|
2759
2847
|
type: {
|
|
2760
2848
|
$ref: "#/$defs/paginationRequestFieldRole",
|
|
2761
|
-
description: "
|
|
2849
|
+
description: "Role of this request field in pagination: a cursor, an offset, or a page parameter."
|
|
2762
2850
|
},
|
|
2763
2851
|
param: {
|
|
2764
2852
|
type: "string",
|
|
@@ -2798,7 +2886,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
2798
2886
|
properties: {
|
|
2799
2887
|
type: {
|
|
2800
2888
|
$ref: "#/$defs/paginationResponseFieldRole",
|
|
2801
|
-
description: "
|
|
2889
|
+
description: "Role of this response field in pagination: the items, a cursor, or page metadata."
|
|
2802
2890
|
},
|
|
2803
2891
|
location: {
|
|
2804
2892
|
$ref: "#/$defs/paginationResponseLocation",
|
|
@@ -3041,7 +3129,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
3041
3129
|
},
|
|
3042
3130
|
handle: {
|
|
3043
3131
|
type: "string",
|
|
3044
|
-
description: "Action
|
|
3132
|
+
description: "Action the generated SDK takes when this handler matches."
|
|
3045
3133
|
},
|
|
3046
3134
|
eventType: {
|
|
3047
3135
|
anyOf: [
|
|
@@ -3079,7 +3167,7 @@ var scalar_sdk_config_schema_default = {
|
|
|
3079
3167
|
items: {
|
|
3080
3168
|
$ref: "#/$defs/streamingEventHandler"
|
|
3081
3169
|
},
|
|
3082
|
-
description: "Ordered event handlers
|
|
3170
|
+
description: "Ordered event handlers for stream events."
|
|
3083
3171
|
}
|
|
3084
3172
|
},
|
|
3085
3173
|
required: ["onEvent"]
|
|
@@ -3087,12 +3175,12 @@ var scalar_sdk_config_schema_default = {
|
|
|
3087
3175
|
}
|
|
3088
3176
|
};
|
|
3089
3177
|
|
|
3090
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
3178
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/reserved-publish-keys.js
|
|
3091
3179
|
var RESERVED_PUBLISH_KEYS = ["signing"];
|
|
3092
3180
|
var reserved = new Set(RESERVED_PUBLISH_KEYS);
|
|
3093
3181
|
var isReservedPublishKey = (key) => reserved.has(key);
|
|
3094
3182
|
|
|
3095
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
3183
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/target-languages.js
|
|
3096
3184
|
var TARGET_LANGUAGES = [
|
|
3097
3185
|
"typescript",
|
|
3098
3186
|
"python",
|
|
@@ -3112,7 +3200,7 @@ var WEBSOCKET_RUNTIME_TARGETS = ["typescript", "python", "rust", "cli"];
|
|
|
3112
3200
|
var GRPC_RUNTIME_TARGETS = ["typescript"];
|
|
3113
3201
|
var targetLanguageSet = new Set(TARGET_LANGUAGES);
|
|
3114
3202
|
|
|
3115
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
3203
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/target-fields.js
|
|
3116
3204
|
var resolveSchemaRef = (node) => {
|
|
3117
3205
|
if (typeof node !== "object" || node === null)
|
|
3118
3206
|
return void 0;
|
|
@@ -3144,7 +3232,7 @@ var targetsDeclaringField = (field) => {
|
|
|
3144
3232
|
var PACKAGE_NAME_TARGETS = targetsDeclaringField("packageName");
|
|
3145
3233
|
var PRERELEASE_TYPE_TARGETS = targetsDeclaringField("prereleaseType");
|
|
3146
3234
|
|
|
3147
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
3235
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/publish-registries.js
|
|
3148
3236
|
var targetPublishRegistryNodes = (target) => {
|
|
3149
3237
|
const publish = resolveSchemaRef(targetSchemaFields(target)["publish"]);
|
|
3150
3238
|
return publish?.["properties"];
|
|
@@ -3190,7 +3278,7 @@ var targetRegistryOptions = new Map(Object.entries(derivePublishRegistryOptions(
|
|
|
3190
3278
|
new Map(Object.entries(registries))
|
|
3191
3279
|
]));
|
|
3192
3280
|
|
|
3193
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
3281
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/target-stability.js
|
|
3194
3282
|
var STABILITY_VALUES = ["stable", "experimental", "stub"];
|
|
3195
3283
|
var isStability = (value) => typeof value === "string" && STABILITY_VALUES.includes(value);
|
|
3196
3284
|
var TARGET_STABILITY = Object.freeze(Object.fromEntries(TARGET_LANGUAGES.map((language) => {
|
|
@@ -3198,7 +3286,7 @@ var TARGET_STABILITY = Object.freeze(Object.fromEntries(TARGET_LANGUAGES.map((la
|
|
|
3198
3286
|
return [language, isStability(declared) ? declared : "experimental"];
|
|
3199
3287
|
})));
|
|
3200
3288
|
|
|
3201
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
3289
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/reads/target-catalog.js
|
|
3202
3290
|
var PACKAGE_NAME_FIELDS = ["composerPackageName", "gemName", "packageName"];
|
|
3203
3291
|
var targetTitle = (language) => {
|
|
3204
3292
|
const value = targetSchemaNode(language)?.["title"];
|
|
@@ -3222,7 +3310,7 @@ var describeTarget = (language) => {
|
|
|
3222
3310
|
};
|
|
3223
3311
|
var TARGETS = Object.freeze(Object.fromEntries(TARGET_LANGUAGES.map((language) => [language, describeTarget(language)])));
|
|
3224
3312
|
|
|
3225
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
3313
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/coerce-config.js
|
|
3226
3314
|
import { parse as parseYaml } from "yaml";
|
|
3227
3315
|
|
|
3228
3316
|
// ../../node_modules/.pnpm/@scalar+sdk-helpers@0.8.0/node_modules/@scalar/sdk-helpers/dist/initialisms.js
|
|
@@ -3382,20 +3470,20 @@ var PROTO_QUALIFIED_NAME_PATTERN = String.raw`${PROTO_IDENTIFIER_PATTERN}(?:\.${
|
|
|
3382
3470
|
var PROTO_IDENTIFIER = new RegExp(`^${PROTO_IDENTIFIER_PATTERN}$`, "u");
|
|
3383
3471
|
var PROTO_QUALIFIED_NAME = new RegExp(`^${PROTO_QUALIFIED_NAME_PATTERN}$`, "u");
|
|
3384
3472
|
|
|
3385
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
3473
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/helpers/resolve-ref.js
|
|
3386
3474
|
import { getResolvedRef, mergeSiblingReferences } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3387
3475
|
|
|
3388
3476
|
// ../../node_modules/.pnpm/@scalar+openapi-loader@0.7.1_typescript@7.0.2/node_modules/@scalar/openapi-loader/dist/assert-supported-openapi.js
|
|
3389
3477
|
import { getResolvedRef as getResolvedRef2, mergeSiblingReferences as mergeSiblingReferences2 } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3390
3478
|
|
|
3391
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
3479
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/generate-default-config.js
|
|
3392
3480
|
import { isAsyncApiDocument } from "@scalar/workspace-store/schemas";
|
|
3393
3481
|
|
|
3394
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
3395
|
-
var validateClientSettings =
|
|
3396
|
-
var validateGlobalSettings =
|
|
3397
|
-
var validatePaginationConfig =
|
|
3398
|
-
var
|
|
3482
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/scalar-sdk.config.validator.js
|
|
3483
|
+
var validateClientSettings = validate197;
|
|
3484
|
+
var validateGlobalSettings = validate201;
|
|
3485
|
+
var validatePaginationConfig = validate202;
|
|
3486
|
+
var schema165 = { "type": "object", "properties": { "agentSkill": { "type": "boolean", "default": true }, "fileHeader": { "type": "string" }, "license": { "type": "string" }, "unwrapResponseFields": { "type": "array", "items": { "type": "string" } }, "positionalParams": { "type": "string", "enum": ["all", "none", "last"] }, "ordering": { "type": "string", "default": "config", "enum": ["config", "openapi", "crud"] }, "requireWebsocketDependencies": { "type": "boolean" }, "unwrapMultipropertyResponseFields": { "type": "boolean" } } };
|
|
3399
3487
|
var schema44 = { "oneOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" }, "typescript": { "type": "string" }, "python": { "type": "string" }, "go": { "type": "string" }, "rust": { "type": "string" }, "java": { "type": "string" }, "kotlin": { "type": "string" }, "swift": { "type": "string" }, "ruby": { "type": "string" }, "php": { "type": "string" }, "csharp": { "type": "string" }, "cpp": { "type": "string" }, "dart": { "type": "string" } }, "additionalProperties": false, "minProperties": 1 }] };
|
|
3400
3488
|
var schema35 = { "enum": ["http", "alias", "websocket", "webhookUnwrap", "helper"] };
|
|
3401
3489
|
var schema36 = { "enum": ["delete", "get", "head", "options", "patch", "post", "put", "trace"] };
|
|
@@ -8641,7 +8729,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8641
8729
|
return errors === 0;
|
|
8642
8730
|
}
|
|
8643
8731
|
validate49.evaluated = { "props": { "npm": true }, "dynamicProps": false, "dynamicItems": false };
|
|
8644
|
-
var schema69 = { "type": "object", "properties": { "propertyCasing": { "enum": ["wire", "sdk"], "default": "wire" }, "dateTimeType": { "enum": ["string", "Date"], "default": "string" }, "backCompat": { "$ref": "#/$defs/typeScriptBackCompatOptions" } } };
|
|
8732
|
+
var schema69 = { "type": "object", "properties": { "propertyCasing": { "enum": ["wire", "sdk"], "default": "wire" }, "dateTimeType": { "enum": ["string", "Date"], "default": "string" }, "int64Type": { "enum": ["number", "bigint"], "default": "number" }, "backCompat": { "$ref": "#/$defs/typeScriptBackCompatOptions" } } };
|
|
8645
8733
|
var pattern10 = new RegExp("^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$", "u");
|
|
8646
8734
|
var pattern11 = new RegExp("^(?!(?:any|bigint|boolean|never|number|object|string|symbol|undefined|unknown|void|arguments|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|eval|export|extends|false|finally|for|function|if|implements|import|in|instanceof|interface|let|new|null|package|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|var|while|with|yield)$)[A-Za-z_$][A-Za-z0-9_$]*$", "u");
|
|
8647
8735
|
var pattern12 = new RegExp("^(?!(?:arguments|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|eval|export|extends|false|finally|for|function|if|implements|import|in|instanceof|interface|let|new|null|package|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)(?:\\.|$))[A-Za-z_$][A-Za-z0-9_$]*(\\.(?!(?:arguments|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|eval|export|extends|false|finally|for|function|if|implements|import|in|instanceof|interface|let|new|null|package|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)(?:\\.|$))[A-Za-z_$][A-Za-z0-9_$]*)*$", "u");
|
|
@@ -8925,6 +9013,18 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8925
9013
|
errors++;
|
|
8926
9014
|
}
|
|
8927
9015
|
}
|
|
9016
|
+
if (data.int64Type !== void 0) {
|
|
9017
|
+
let data2 = data.int64Type;
|
|
9018
|
+
if (!(data2 === "number" || data2 === "bigint")) {
|
|
9019
|
+
const err2 = { instancePath: instancePath + "/int64Type", schemaPath: "#/properties/int64Type/enum", keyword: "enum", params: { allowedValues: schema69.properties.int64Type.enum }, message: "must be equal to one of the allowed values" };
|
|
9020
|
+
if (vErrors === null) {
|
|
9021
|
+
vErrors = [err2];
|
|
9022
|
+
} else {
|
|
9023
|
+
vErrors.push(err2);
|
|
9024
|
+
}
|
|
9025
|
+
errors++;
|
|
9026
|
+
}
|
|
9027
|
+
}
|
|
8928
9028
|
if (data.backCompat !== void 0) {
|
|
8929
9029
|
if (!validate54(data.backCompat, { instancePath: instancePath + "/backCompat", parentData: data, parentDataProperty: "backCompat", rootData, dynamicAnchors })) {
|
|
8930
9030
|
vErrors = vErrors === null ? validate54.errors : vErrors.concat(validate54.errors);
|
|
@@ -8932,18 +9032,18 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8932
9032
|
}
|
|
8933
9033
|
}
|
|
8934
9034
|
} else {
|
|
8935
|
-
const
|
|
9035
|
+
const err3 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8936
9036
|
if (vErrors === null) {
|
|
8937
|
-
vErrors = [
|
|
9037
|
+
vErrors = [err3];
|
|
8938
9038
|
} else {
|
|
8939
|
-
vErrors.push(
|
|
9039
|
+
vErrors.push(err3);
|
|
8940
9040
|
}
|
|
8941
9041
|
errors++;
|
|
8942
9042
|
}
|
|
8943
9043
|
validate53.errors = vErrors;
|
|
8944
9044
|
return errors === 0;
|
|
8945
9045
|
}
|
|
8946
|
-
validate53.evaluated = { "props": { "propertyCasing": true, "dateTimeType": true, "backCompat": true }, "dynamicProps": false, "dynamicItems": false };
|
|
9046
|
+
validate53.evaluated = { "props": { "propertyCasing": true, "dateTimeType": true, "int64Type": true, "backCompat": true }, "dynamicProps": false, "dynamicItems": false };
|
|
8947
9047
|
var pattern9 = new RegExp("^[A-Za-z][0-9A-Za-z-]*$", "u");
|
|
8948
9048
|
function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
8949
9049
|
let vErrors = null;
|
|
@@ -13065,6 +13165,143 @@ function validate119(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13065
13165
|
return errors === 0;
|
|
13066
13166
|
}
|
|
13067
13167
|
validate119.evaluated = { "props": { "nuget": true }, "dynamicProps": false, "dynamicItems": false };
|
|
13168
|
+
var pattern27 = new RegExp("^([A-Za-z0-9_-][A-Za-z0-9._-]*/)*[A-Za-z0-9_-][A-Za-z0-9._-]*\\.snk$", "u");
|
|
13169
|
+
var pattern28 = new RegExp("^([0-9A-Fa-f]{2}){96,}$", "u");
|
|
13170
|
+
function validate122(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13171
|
+
let vErrors = null;
|
|
13172
|
+
let errors = 0;
|
|
13173
|
+
const evaluated0 = validate122.evaluated;
|
|
13174
|
+
if (evaluated0.dynamicProps) {
|
|
13175
|
+
evaluated0.props = void 0;
|
|
13176
|
+
}
|
|
13177
|
+
if (evaluated0.dynamicItems) {
|
|
13178
|
+
evaluated0.items = void 0;
|
|
13179
|
+
}
|
|
13180
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
13181
|
+
if (data.strongName !== void 0) {
|
|
13182
|
+
let data0 = data.strongName;
|
|
13183
|
+
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
13184
|
+
if (data0.keyFile === void 0) {
|
|
13185
|
+
const err0 = { instancePath: instancePath + "/strongName", schemaPath: "#/$defs/cSharpStrongNameConfig/required", keyword: "required", params: { missingProperty: "keyFile" }, message: "must have required property 'keyFile'" };
|
|
13186
|
+
if (vErrors === null) {
|
|
13187
|
+
vErrors = [err0];
|
|
13188
|
+
} else {
|
|
13189
|
+
vErrors.push(err0);
|
|
13190
|
+
}
|
|
13191
|
+
errors++;
|
|
13192
|
+
}
|
|
13193
|
+
for (const key0 in data0) {
|
|
13194
|
+
if (!(key0 === "keyFile" || key0 === "publicKey")) {
|
|
13195
|
+
const err1 = { instancePath: instancePath + "/strongName", schemaPath: "#/$defs/cSharpStrongNameConfig/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
13196
|
+
if (vErrors === null) {
|
|
13197
|
+
vErrors = [err1];
|
|
13198
|
+
} else {
|
|
13199
|
+
vErrors.push(err1);
|
|
13200
|
+
}
|
|
13201
|
+
errors++;
|
|
13202
|
+
}
|
|
13203
|
+
}
|
|
13204
|
+
if (data0.keyFile !== void 0) {
|
|
13205
|
+
let data1 = data0.keyFile;
|
|
13206
|
+
if (typeof data1 !== "string") {
|
|
13207
|
+
let dataType0 = typeof data1;
|
|
13208
|
+
let coerced0 = void 0;
|
|
13209
|
+
if (!(coerced0 !== void 0)) {
|
|
13210
|
+
if (dataType0 == "number" || dataType0 == "boolean") {
|
|
13211
|
+
coerced0 = "" + data1;
|
|
13212
|
+
} else if (data1 === null) {
|
|
13213
|
+
coerced0 = "";
|
|
13214
|
+
} else {
|
|
13215
|
+
const err2 = { instancePath: instancePath + "/strongName/keyFile", schemaPath: "#/$defs/cSharpStrongNameConfig/properties/keyFile/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
13216
|
+
if (vErrors === null) {
|
|
13217
|
+
vErrors = [err2];
|
|
13218
|
+
} else {
|
|
13219
|
+
vErrors.push(err2);
|
|
13220
|
+
}
|
|
13221
|
+
errors++;
|
|
13222
|
+
}
|
|
13223
|
+
}
|
|
13224
|
+
if (coerced0 !== void 0) {
|
|
13225
|
+
data1 = coerced0;
|
|
13226
|
+
if (data0 !== void 0) {
|
|
13227
|
+
data0["keyFile"] = coerced0;
|
|
13228
|
+
}
|
|
13229
|
+
}
|
|
13230
|
+
}
|
|
13231
|
+
if (typeof data1 === "string") {
|
|
13232
|
+
if (!pattern27.test(data1)) {
|
|
13233
|
+
const err3 = { instancePath: instancePath + "/strongName/keyFile", schemaPath: "#/$defs/cSharpStrongNameConfig/properties/keyFile/pattern", keyword: "pattern", params: { pattern: "^([A-Za-z0-9_-][A-Za-z0-9._-]*/)*[A-Za-z0-9_-][A-Za-z0-9._-]*\\.snk$" }, message: 'must match pattern "^([A-Za-z0-9_-][A-Za-z0-9._-]*/)*[A-Za-z0-9_-][A-Za-z0-9._-]*\\.snk$"' };
|
|
13234
|
+
if (vErrors === null) {
|
|
13235
|
+
vErrors = [err3];
|
|
13236
|
+
} else {
|
|
13237
|
+
vErrors.push(err3);
|
|
13238
|
+
}
|
|
13239
|
+
errors++;
|
|
13240
|
+
}
|
|
13241
|
+
}
|
|
13242
|
+
}
|
|
13243
|
+
if (data0.publicKey !== void 0) {
|
|
13244
|
+
let data2 = data0.publicKey;
|
|
13245
|
+
if (typeof data2 !== "string") {
|
|
13246
|
+
let dataType1 = typeof data2;
|
|
13247
|
+
let coerced1 = void 0;
|
|
13248
|
+
if (!(coerced1 !== void 0)) {
|
|
13249
|
+
if (dataType1 == "number" || dataType1 == "boolean") {
|
|
13250
|
+
coerced1 = "" + data2;
|
|
13251
|
+
} else if (data2 === null) {
|
|
13252
|
+
coerced1 = "";
|
|
13253
|
+
} else {
|
|
13254
|
+
const err4 = { instancePath: instancePath + "/strongName/publicKey", schemaPath: "#/$defs/cSharpStrongNameConfig/properties/publicKey/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
13255
|
+
if (vErrors === null) {
|
|
13256
|
+
vErrors = [err4];
|
|
13257
|
+
} else {
|
|
13258
|
+
vErrors.push(err4);
|
|
13259
|
+
}
|
|
13260
|
+
errors++;
|
|
13261
|
+
}
|
|
13262
|
+
}
|
|
13263
|
+
if (coerced1 !== void 0) {
|
|
13264
|
+
data2 = coerced1;
|
|
13265
|
+
if (data0 !== void 0) {
|
|
13266
|
+
data0["publicKey"] = coerced1;
|
|
13267
|
+
}
|
|
13268
|
+
}
|
|
13269
|
+
}
|
|
13270
|
+
if (typeof data2 === "string") {
|
|
13271
|
+
if (!pattern28.test(data2)) {
|
|
13272
|
+
const err5 = { instancePath: instancePath + "/strongName/publicKey", schemaPath: "#/$defs/cSharpStrongNameConfig/properties/publicKey/pattern", keyword: "pattern", params: { pattern: "^([0-9A-Fa-f]{2}){96,}$" }, message: 'must match pattern "^([0-9A-Fa-f]{2}){96,}$"' };
|
|
13273
|
+
if (vErrors === null) {
|
|
13274
|
+
vErrors = [err5];
|
|
13275
|
+
} else {
|
|
13276
|
+
vErrors.push(err5);
|
|
13277
|
+
}
|
|
13278
|
+
errors++;
|
|
13279
|
+
}
|
|
13280
|
+
}
|
|
13281
|
+
}
|
|
13282
|
+
} else {
|
|
13283
|
+
const err6 = { instancePath: instancePath + "/strongName", schemaPath: "#/$defs/cSharpStrongNameConfig/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
13284
|
+
if (vErrors === null) {
|
|
13285
|
+
vErrors = [err6];
|
|
13286
|
+
} else {
|
|
13287
|
+
vErrors.push(err6);
|
|
13288
|
+
}
|
|
13289
|
+
errors++;
|
|
13290
|
+
}
|
|
13291
|
+
}
|
|
13292
|
+
} else {
|
|
13293
|
+
const err7 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
13294
|
+
if (vErrors === null) {
|
|
13295
|
+
vErrors = [err7];
|
|
13296
|
+
} else {
|
|
13297
|
+
vErrors.push(err7);
|
|
13298
|
+
}
|
|
13299
|
+
errors++;
|
|
13300
|
+
}
|
|
13301
|
+
validate122.errors = vErrors;
|
|
13302
|
+
return errors === 0;
|
|
13303
|
+
}
|
|
13304
|
+
validate122.evaluated = { "props": { "strongName": true }, "dynamicProps": false, "dynamicItems": false };
|
|
13068
13305
|
function validate117(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13069
13306
|
let vErrors = null;
|
|
13070
13307
|
let errors = 0;
|
|
@@ -13275,6 +13512,12 @@ function validate117(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13275
13512
|
}
|
|
13276
13513
|
}
|
|
13277
13514
|
}
|
|
13515
|
+
if (data.options !== void 0) {
|
|
13516
|
+
if (!validate122(data.options, { instancePath: instancePath + "/options", parentData: data, parentDataProperty: "options", rootData, dynamicAnchors })) {
|
|
13517
|
+
vErrors = vErrors === null ? validate122.errors : vErrors.concat(validate122.errors);
|
|
13518
|
+
errors = vErrors.length;
|
|
13519
|
+
}
|
|
13520
|
+
}
|
|
13278
13521
|
} else {
|
|
13279
13522
|
const err8 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
13280
13523
|
if (vErrors === null) {
|
|
@@ -13287,11 +13530,12 @@ function validate117(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13287
13530
|
validate117.errors = vErrors;
|
|
13288
13531
|
return errors === 0;
|
|
13289
13532
|
}
|
|
13290
|
-
validate117.evaluated = { "props": { "destinations": true, "promotion": true, "generatorVersion": true, "skip": true, "readmeTitle": true, "packageName": true, "publish": true, "prereleaseType": true }, "dynamicProps": false, "dynamicItems": false };
|
|
13291
|
-
|
|
13533
|
+
validate117.evaluated = { "props": { "destinations": true, "promotion": true, "generatorVersion": true, "skip": true, "readmeTitle": true, "packageName": true, "publish": true, "prereleaseType": true, "options": true }, "dynamicProps": false, "dynamicItems": false };
|
|
13534
|
+
var pattern29 = new RegExp("^[a-z](_?[a-z0-9])*(::[a-z](_?[a-z0-9])*)*$", "u");
|
|
13535
|
+
function validate125(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13292
13536
|
let vErrors = null;
|
|
13293
13537
|
let errors = 0;
|
|
13294
|
-
const evaluated0 =
|
|
13538
|
+
const evaluated0 = validate125.evaluated;
|
|
13295
13539
|
if (evaluated0.dynamicProps) {
|
|
13296
13540
|
evaluated0.props = void 0;
|
|
13297
13541
|
}
|
|
@@ -13425,23 +13669,157 @@ function validate123(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13425
13669
|
errors++;
|
|
13426
13670
|
}
|
|
13427
13671
|
}
|
|
13672
|
+
if (data.options !== void 0) {
|
|
13673
|
+
let data5 = data.options;
|
|
13674
|
+
if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
|
|
13675
|
+
if (data5.namespace !== void 0) {
|
|
13676
|
+
let data6 = data5.namespace;
|
|
13677
|
+
if (typeof data6 !== "string") {
|
|
13678
|
+
let dataType4 = typeof data6;
|
|
13679
|
+
let coerced4 = void 0;
|
|
13680
|
+
if (!(coerced4 !== void 0)) {
|
|
13681
|
+
if (dataType4 == "number" || dataType4 == "boolean") {
|
|
13682
|
+
coerced4 = "" + data6;
|
|
13683
|
+
} else if (data6 === null) {
|
|
13684
|
+
coerced4 = "";
|
|
13685
|
+
} else {
|
|
13686
|
+
const err5 = { instancePath: instancePath + "/options/namespace", schemaPath: "#/$defs/cppTargetOptions/properties/namespace/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
13687
|
+
if (vErrors === null) {
|
|
13688
|
+
vErrors = [err5];
|
|
13689
|
+
} else {
|
|
13690
|
+
vErrors.push(err5);
|
|
13691
|
+
}
|
|
13692
|
+
errors++;
|
|
13693
|
+
}
|
|
13694
|
+
}
|
|
13695
|
+
if (coerced4 !== void 0) {
|
|
13696
|
+
data6 = coerced4;
|
|
13697
|
+
if (data5 !== void 0) {
|
|
13698
|
+
data5["namespace"] = coerced4;
|
|
13699
|
+
}
|
|
13700
|
+
}
|
|
13701
|
+
}
|
|
13702
|
+
if (typeof data6 === "string") {
|
|
13703
|
+
if (!pattern29.test(data6)) {
|
|
13704
|
+
const err6 = { instancePath: instancePath + "/options/namespace", schemaPath: "#/$defs/cppTargetOptions/properties/namespace/pattern", keyword: "pattern", params: { pattern: "^[a-z](_?[a-z0-9])*(::[a-z](_?[a-z0-9])*)*$" }, message: 'must match pattern "^[a-z](_?[a-z0-9])*(::[a-z](_?[a-z0-9])*)*$"' };
|
|
13705
|
+
if (vErrors === null) {
|
|
13706
|
+
vErrors = [err6];
|
|
13707
|
+
} else {
|
|
13708
|
+
vErrors.push(err6);
|
|
13709
|
+
}
|
|
13710
|
+
errors++;
|
|
13711
|
+
}
|
|
13712
|
+
}
|
|
13713
|
+
}
|
|
13714
|
+
if (data5.libraryName !== void 0) {
|
|
13715
|
+
let data7 = data5.libraryName;
|
|
13716
|
+
if (typeof data7 !== "string") {
|
|
13717
|
+
let dataType5 = typeof data7;
|
|
13718
|
+
let coerced5 = void 0;
|
|
13719
|
+
if (!(coerced5 !== void 0)) {
|
|
13720
|
+
if (dataType5 == "number" || dataType5 == "boolean") {
|
|
13721
|
+
coerced5 = "" + data7;
|
|
13722
|
+
} else if (data7 === null) {
|
|
13723
|
+
coerced5 = "";
|
|
13724
|
+
} else {
|
|
13725
|
+
const err7 = { instancePath: instancePath + "/options/libraryName", schemaPath: "#/$defs/cppTargetOptions/properties/libraryName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
13726
|
+
if (vErrors === null) {
|
|
13727
|
+
vErrors = [err7];
|
|
13728
|
+
} else {
|
|
13729
|
+
vErrors.push(err7);
|
|
13730
|
+
}
|
|
13731
|
+
errors++;
|
|
13732
|
+
}
|
|
13733
|
+
}
|
|
13734
|
+
if (coerced5 !== void 0) {
|
|
13735
|
+
data7 = coerced5;
|
|
13736
|
+
if (data5 !== void 0) {
|
|
13737
|
+
data5["libraryName"] = coerced5;
|
|
13738
|
+
}
|
|
13739
|
+
}
|
|
13740
|
+
}
|
|
13741
|
+
}
|
|
13742
|
+
if (data5.async !== void 0) {
|
|
13743
|
+
let data8 = data5.async;
|
|
13744
|
+
if (typeof data8 !== "boolean") {
|
|
13745
|
+
let coerced6 = void 0;
|
|
13746
|
+
if (!(coerced6 !== void 0)) {
|
|
13747
|
+
if (data8 === "false" || data8 === 0 || data8 === null) {
|
|
13748
|
+
coerced6 = false;
|
|
13749
|
+
} else if (data8 === "true" || data8 === 1) {
|
|
13750
|
+
coerced6 = true;
|
|
13751
|
+
} else {
|
|
13752
|
+
const err8 = { instancePath: instancePath + "/options/async", schemaPath: "#/$defs/cppTargetOptions/properties/async/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
13753
|
+
if (vErrors === null) {
|
|
13754
|
+
vErrors = [err8];
|
|
13755
|
+
} else {
|
|
13756
|
+
vErrors.push(err8);
|
|
13757
|
+
}
|
|
13758
|
+
errors++;
|
|
13759
|
+
}
|
|
13760
|
+
}
|
|
13761
|
+
if (coerced6 !== void 0) {
|
|
13762
|
+
data8 = coerced6;
|
|
13763
|
+
if (data5 !== void 0) {
|
|
13764
|
+
data5["async"] = coerced6;
|
|
13765
|
+
}
|
|
13766
|
+
}
|
|
13767
|
+
}
|
|
13768
|
+
}
|
|
13769
|
+
if (data5.preserveUnknownFields !== void 0) {
|
|
13770
|
+
let data9 = data5.preserveUnknownFields;
|
|
13771
|
+
if (typeof data9 !== "boolean") {
|
|
13772
|
+
let coerced7 = void 0;
|
|
13773
|
+
if (!(coerced7 !== void 0)) {
|
|
13774
|
+
if (data9 === "false" || data9 === 0 || data9 === null) {
|
|
13775
|
+
coerced7 = false;
|
|
13776
|
+
} else if (data9 === "true" || data9 === 1) {
|
|
13777
|
+
coerced7 = true;
|
|
13778
|
+
} else {
|
|
13779
|
+
const err9 = { instancePath: instancePath + "/options/preserveUnknownFields", schemaPath: "#/$defs/cppTargetOptions/properties/preserveUnknownFields/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
13780
|
+
if (vErrors === null) {
|
|
13781
|
+
vErrors = [err9];
|
|
13782
|
+
} else {
|
|
13783
|
+
vErrors.push(err9);
|
|
13784
|
+
}
|
|
13785
|
+
errors++;
|
|
13786
|
+
}
|
|
13787
|
+
}
|
|
13788
|
+
if (coerced7 !== void 0) {
|
|
13789
|
+
data9 = coerced7;
|
|
13790
|
+
if (data5 !== void 0) {
|
|
13791
|
+
data5["preserveUnknownFields"] = coerced7;
|
|
13792
|
+
}
|
|
13793
|
+
}
|
|
13794
|
+
}
|
|
13795
|
+
}
|
|
13796
|
+
} else {
|
|
13797
|
+
const err10 = { instancePath: instancePath + "/options", schemaPath: "#/$defs/cppTargetOptions/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
13798
|
+
if (vErrors === null) {
|
|
13799
|
+
vErrors = [err10];
|
|
13800
|
+
} else {
|
|
13801
|
+
vErrors.push(err10);
|
|
13802
|
+
}
|
|
13803
|
+
errors++;
|
|
13804
|
+
}
|
|
13805
|
+
}
|
|
13428
13806
|
} else {
|
|
13429
|
-
const
|
|
13807
|
+
const err11 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
13430
13808
|
if (vErrors === null) {
|
|
13431
|
-
vErrors = [
|
|
13809
|
+
vErrors = [err11];
|
|
13432
13810
|
} else {
|
|
13433
|
-
vErrors.push(
|
|
13811
|
+
vErrors.push(err11);
|
|
13434
13812
|
}
|
|
13435
13813
|
errors++;
|
|
13436
13814
|
}
|
|
13437
|
-
|
|
13815
|
+
validate125.errors = vErrors;
|
|
13438
13816
|
return errors === 0;
|
|
13439
13817
|
}
|
|
13440
|
-
|
|
13441
|
-
function
|
|
13818
|
+
validate125.evaluated = { "props": { "generatorVersion": true, "skip": true, "readmeTitle": true, "destinations": true, "promotion": true, "options": true }, "dynamicProps": false, "dynamicItems": false };
|
|
13819
|
+
function validate130(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13442
13820
|
let vErrors = null;
|
|
13443
13821
|
let errors = 0;
|
|
13444
|
-
const evaluated0 =
|
|
13822
|
+
const evaluated0 = validate130.evaluated;
|
|
13445
13823
|
if (evaluated0.dynamicProps) {
|
|
13446
13824
|
evaluated0.props = void 0;
|
|
13447
13825
|
}
|
|
@@ -13464,14 +13842,14 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13464
13842
|
}
|
|
13465
13843
|
errors++;
|
|
13466
13844
|
}
|
|
13467
|
-
|
|
13845
|
+
validate130.errors = vErrors;
|
|
13468
13846
|
return errors === 0;
|
|
13469
13847
|
}
|
|
13470
|
-
|
|
13471
|
-
function
|
|
13848
|
+
validate130.evaluated = { "props": { "pub": true }, "dynamicProps": false, "dynamicItems": false };
|
|
13849
|
+
function validate128(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13472
13850
|
let vErrors = null;
|
|
13473
13851
|
let errors = 0;
|
|
13474
|
-
const evaluated0 =
|
|
13852
|
+
const evaluated0 = validate128.evaluated;
|
|
13475
13853
|
if (evaluated0.dynamicProps) {
|
|
13476
13854
|
evaluated0.props = void 0;
|
|
13477
13855
|
}
|
|
@@ -13634,8 +14012,8 @@ function validate126(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13634
14012
|
}
|
|
13635
14013
|
}
|
|
13636
14014
|
if (data.publish !== void 0) {
|
|
13637
|
-
if (!
|
|
13638
|
-
vErrors = vErrors === null ?
|
|
14015
|
+
if (!validate130(data.publish, { instancePath: instancePath + "/publish", parentData: data, parentDataProperty: "publish", rootData, dynamicAnchors })) {
|
|
14016
|
+
vErrors = vErrors === null ? validate130.errors : vErrors.concat(validate130.errors);
|
|
13639
14017
|
errors = vErrors.length;
|
|
13640
14018
|
}
|
|
13641
14019
|
}
|
|
@@ -13687,16 +14065,16 @@ function validate126(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13687
14065
|
}
|
|
13688
14066
|
errors++;
|
|
13689
14067
|
}
|
|
13690
|
-
|
|
14068
|
+
validate128.errors = vErrors;
|
|
13691
14069
|
return errors === 0;
|
|
13692
14070
|
}
|
|
13693
|
-
|
|
13694
|
-
var
|
|
13695
|
-
var
|
|
13696
|
-
function
|
|
14071
|
+
validate128.evaluated = { "props": { "destinations": true, "promotion": true, "generatorVersion": true, "skip": true, "readmeTitle": true, "packageName": true, "publish": true, "prereleaseType": true }, "dynamicProps": false, "dynamicItems": false };
|
|
14072
|
+
var schema131 = { "type": "object", "properties": { "destinations": { "$ref": "#/$defs/destinationsConfig" }, "promotion": { "$ref": "#/$defs/promotion" }, "generatorVersion": { "type": "string" }, "skip": { "type": "boolean" }, "readmeTitle": { "type": "string" }, "packageName": { "type": "string" }, "binaryName": { "type": "string", "pattern": "^[A-Za-z0-9]([A-Za-z0-9._-]*[A-Za-z0-9_])?$" }, "defaultFormat": { "type": "string" }, "defaultErrorFormat": { "type": "string" }, "shellCompletions": { "type": "boolean", "default": true }, "subresourceSeparator": { "enum": ["colon", "space"], "default": "colon" }, "publish": { "$ref": "#/$defs/cliPublishConfig" }, "credentialStore": { "$ref": "#/$defs/cliCredentialStoreConfig" }, "prereleaseType": { "$ref": "#/$defs/prereleaseType" } } };
|
|
14073
|
+
var pattern32 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$", "u");
|
|
14074
|
+
function validate139(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
13697
14075
|
let vErrors = null;
|
|
13698
14076
|
let errors = 0;
|
|
13699
|
-
const evaluated0 =
|
|
14077
|
+
const evaluated0 = validate139.evaluated;
|
|
13700
14078
|
if (evaluated0.dynamicProps) {
|
|
13701
14079
|
evaluated0.props = void 0;
|
|
13702
14080
|
}
|
|
@@ -13850,7 +14228,7 @@ function validate137(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
13850
14228
|
}
|
|
13851
14229
|
}
|
|
13852
14230
|
if (typeof data3 === "string") {
|
|
13853
|
-
if (!
|
|
14231
|
+
if (!pattern32.test(data3)) {
|
|
13854
14232
|
const err7 = { instancePath: instancePath + "/tapRepo", schemaPath: "#/anyOf/0/properties/tapRepo/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$" }, message: 'must match pattern "^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$"' };
|
|
13855
14233
|
if (vErrors === null) {
|
|
13856
14234
|
vErrors = [err7];
|
|
@@ -14155,16 +14533,16 @@ function validate137(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14155
14533
|
}
|
|
14156
14534
|
}
|
|
14157
14535
|
}
|
|
14158
|
-
|
|
14536
|
+
validate139.errors = vErrors;
|
|
14159
14537
|
evaluated0.props = props0;
|
|
14160
14538
|
return errors === 0;
|
|
14161
14539
|
}
|
|
14162
|
-
|
|
14163
|
-
var
|
|
14164
|
-
function
|
|
14540
|
+
validate139.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
14541
|
+
var schema137 = { "type": "string", "enum": ["sign", "sign-and-notarize"] };
|
|
14542
|
+
function validate141(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14165
14543
|
let vErrors = null;
|
|
14166
14544
|
let errors = 0;
|
|
14167
|
-
const evaluated0 =
|
|
14545
|
+
const evaluated0 = validate141.evaluated;
|
|
14168
14546
|
if (evaluated0.dynamicProps) {
|
|
14169
14547
|
evaluated0.props = void 0;
|
|
14170
14548
|
}
|
|
@@ -14211,7 +14589,7 @@ function validate139(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14211
14589
|
}
|
|
14212
14590
|
}
|
|
14213
14591
|
if (!(data0 === "sign" || data0 === "sign-and-notarize")) {
|
|
14214
|
-
const err2 = { instancePath: instancePath + "/macos", schemaPath: "#/$defs/macosSigningConfig/enum", keyword: "enum", params: { allowedValues:
|
|
14592
|
+
const err2 = { instancePath: instancePath + "/macos", schemaPath: "#/$defs/macosSigningConfig/enum", keyword: "enum", params: { allowedValues: schema137.enum }, message: "must be equal to one of the allowed values" };
|
|
14215
14593
|
if (vErrors === null) {
|
|
14216
14594
|
vErrors = [err2];
|
|
14217
14595
|
} else {
|
|
@@ -14229,14 +14607,14 @@ function validate139(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14229
14607
|
}
|
|
14230
14608
|
errors++;
|
|
14231
14609
|
}
|
|
14232
|
-
|
|
14610
|
+
validate141.errors = vErrors;
|
|
14233
14611
|
return errors === 0;
|
|
14234
14612
|
}
|
|
14235
|
-
|
|
14236
|
-
function
|
|
14613
|
+
validate141.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
14614
|
+
function validate136(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14237
14615
|
let vErrors = null;
|
|
14238
14616
|
let errors = 0;
|
|
14239
|
-
const evaluated0 =
|
|
14617
|
+
const evaluated0 = validate136.evaluated;
|
|
14240
14618
|
if (evaluated0.dynamicProps) {
|
|
14241
14619
|
evaluated0.props = void 0;
|
|
14242
14620
|
}
|
|
@@ -14390,14 +14768,14 @@ function validate134(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14390
14768
|
}
|
|
14391
14769
|
}
|
|
14392
14770
|
if (data.homebrew !== void 0) {
|
|
14393
|
-
if (!
|
|
14394
|
-
vErrors = vErrors === null ?
|
|
14771
|
+
if (!validate139(data.homebrew, { instancePath: instancePath + "/homebrew", parentData: data, parentDataProperty: "homebrew", rootData, dynamicAnchors })) {
|
|
14772
|
+
vErrors = vErrors === null ? validate139.errors : vErrors.concat(validate139.errors);
|
|
14395
14773
|
errors = vErrors.length;
|
|
14396
14774
|
}
|
|
14397
14775
|
}
|
|
14398
14776
|
if (data.signing !== void 0) {
|
|
14399
|
-
if (!
|
|
14400
|
-
vErrors = vErrors === null ?
|
|
14777
|
+
if (!validate141(data.signing, { instancePath: instancePath + "/signing", parentData: data, parentDataProperty: "signing", rootData, dynamicAnchors })) {
|
|
14778
|
+
vErrors = vErrors === null ? validate141.errors : vErrors.concat(validate141.errors);
|
|
14401
14779
|
errors = vErrors.length;
|
|
14402
14780
|
}
|
|
14403
14781
|
}
|
|
@@ -14410,12 +14788,12 @@ function validate134(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14410
14788
|
}
|
|
14411
14789
|
errors++;
|
|
14412
14790
|
}
|
|
14413
|
-
|
|
14791
|
+
validate136.errors = vErrors;
|
|
14414
14792
|
evaluated0.props = props0;
|
|
14415
14793
|
return errors === 0;
|
|
14416
14794
|
}
|
|
14417
|
-
|
|
14418
|
-
var
|
|
14795
|
+
validate136.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
14796
|
+
var schema138 = { "type": "object", "properties": { "enabled": { "type": "boolean", "default": true }, "backend": { "type": "string", "enum": ["auto", "keychain", "file"], "default": "auto" }, "oauth": { "$ref": "#/$defs/cliOauthClientConfig" } } };
|
|
14419
14797
|
var func4 = (function ucs2length(str) {
|
|
14420
14798
|
const len = str.length;
|
|
14421
14799
|
let length = 0;
|
|
@@ -14432,11 +14810,11 @@ var func4 = (function ucs2length(str) {
|
|
|
14432
14810
|
}
|
|
14433
14811
|
return length;
|
|
14434
14812
|
});
|
|
14435
|
-
var
|
|
14436
|
-
function
|
|
14813
|
+
var pattern33 = new RegExp("^(https://[^\\s/?#@]+|http://(localhost|127\\.0\\.0\\.1|\\[::1\\])(:[0-9]+)?)(/[^\\s?#]*)?$", "u");
|
|
14814
|
+
function validate144(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14437
14815
|
let vErrors = null;
|
|
14438
14816
|
let errors = 0;
|
|
14439
|
-
const evaluated0 =
|
|
14817
|
+
const evaluated0 = validate144.evaluated;
|
|
14440
14818
|
if (evaluated0.dynamicProps) {
|
|
14441
14819
|
evaluated0.props = void 0;
|
|
14442
14820
|
}
|
|
@@ -14499,7 +14877,7 @@ function validate142(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14499
14877
|
}
|
|
14500
14878
|
}
|
|
14501
14879
|
if (!(data1 === "auto" || data1 === "keychain" || data1 === "file")) {
|
|
14502
|
-
const err2 = { instancePath: instancePath + "/backend", schemaPath: "#/properties/backend/enum", keyword: "enum", params: { allowedValues:
|
|
14880
|
+
const err2 = { instancePath: instancePath + "/backend", schemaPath: "#/properties/backend/enum", keyword: "enum", params: { allowedValues: schema138.properties.backend.enum }, message: "must be equal to one of the allowed values" };
|
|
14503
14881
|
if (vErrors === null) {
|
|
14504
14882
|
vErrors = [err2];
|
|
14505
14883
|
} else {
|
|
@@ -14723,7 +15101,7 @@ function validate142(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14723
15101
|
}
|
|
14724
15102
|
}
|
|
14725
15103
|
if (typeof data8 === "string") {
|
|
14726
|
-
if (!
|
|
15104
|
+
if (!pattern33.test(data8)) {
|
|
14727
15105
|
const err15 = { instancePath: instancePath + "/oauth/issuer", schemaPath: "#/$defs/cliOauthClientConfig/properties/issuer/pattern", keyword: "pattern", params: { pattern: "^(https://[^\\s/?#@]+|http://(localhost|127\\.0\\.0\\.1|\\[::1\\])(:[0-9]+)?)(/[^\\s?#]*)?$" }, message: 'must match pattern "^(https://[^\\s/?#@]+|http://(localhost|127\\.0\\.0\\.1|\\[::1\\])(:[0-9]+)?)(/[^\\s?#]*)?$"' };
|
|
14728
15106
|
if (vErrors === null) {
|
|
14729
15107
|
vErrors = [err15];
|
|
@@ -14753,15 +15131,15 @@ function validate142(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14753
15131
|
}
|
|
14754
15132
|
errors++;
|
|
14755
15133
|
}
|
|
14756
|
-
|
|
15134
|
+
validate144.errors = vErrors;
|
|
14757
15135
|
return errors === 0;
|
|
14758
15136
|
}
|
|
14759
|
-
|
|
14760
|
-
var
|
|
14761
|
-
function
|
|
15137
|
+
validate144.evaluated = { "props": { "enabled": true, "backend": true, "oauth": true }, "dynamicProps": false, "dynamicItems": false };
|
|
15138
|
+
var pattern31 = new RegExp("^[A-Za-z0-9]([A-Za-z0-9._-]*[A-Za-z0-9_])?$", "u");
|
|
15139
|
+
function validate134(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14762
15140
|
let vErrors = null;
|
|
14763
15141
|
let errors = 0;
|
|
14764
|
-
const evaluated0 =
|
|
15142
|
+
const evaluated0 = validate134.evaluated;
|
|
14765
15143
|
if (evaluated0.dynamicProps) {
|
|
14766
15144
|
evaluated0.props = void 0;
|
|
14767
15145
|
}
|
|
@@ -14951,7 +15329,7 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
14951
15329
|
}
|
|
14952
15330
|
}
|
|
14953
15331
|
if (typeof data6 === "string") {
|
|
14954
|
-
if (!
|
|
15332
|
+
if (!pattern31.test(data6)) {
|
|
14955
15333
|
const err7 = { instancePath: instancePath + "/binaryName", schemaPath: "#/properties/binaryName/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9]([A-Za-z0-9._-]*[A-Za-z0-9_])?$" }, message: 'must match pattern "^[A-Za-z0-9]([A-Za-z0-9._-]*[A-Za-z0-9_])?$"' };
|
|
14956
15334
|
if (vErrors === null) {
|
|
14957
15335
|
vErrors = [err7];
|
|
@@ -15048,7 +15426,7 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15048
15426
|
if (data.subresourceSeparator !== void 0) {
|
|
15049
15427
|
let data10 = data.subresourceSeparator;
|
|
15050
15428
|
if (!(data10 === "colon" || data10 === "space")) {
|
|
15051
|
-
const err11 = { instancePath: instancePath + "/subresourceSeparator", schemaPath: "#/properties/subresourceSeparator/enum", keyword: "enum", params: { allowedValues:
|
|
15429
|
+
const err11 = { instancePath: instancePath + "/subresourceSeparator", schemaPath: "#/properties/subresourceSeparator/enum", keyword: "enum", params: { allowedValues: schema131.properties.subresourceSeparator.enum }, message: "must be equal to one of the allowed values" };
|
|
15052
15430
|
if (vErrors === null) {
|
|
15053
15431
|
vErrors = [err11];
|
|
15054
15432
|
} else {
|
|
@@ -15058,14 +15436,14 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15058
15436
|
}
|
|
15059
15437
|
}
|
|
15060
15438
|
if (data.publish !== void 0) {
|
|
15061
|
-
if (!
|
|
15062
|
-
vErrors = vErrors === null ?
|
|
15439
|
+
if (!validate136(data.publish, { instancePath: instancePath + "/publish", parentData: data, parentDataProperty: "publish", rootData, dynamicAnchors })) {
|
|
15440
|
+
vErrors = vErrors === null ? validate136.errors : vErrors.concat(validate136.errors);
|
|
15063
15441
|
errors = vErrors.length;
|
|
15064
15442
|
}
|
|
15065
15443
|
}
|
|
15066
15444
|
if (data.credentialStore !== void 0) {
|
|
15067
|
-
if (!
|
|
15068
|
-
vErrors = vErrors === null ?
|
|
15445
|
+
if (!validate144(data.credentialStore, { instancePath: instancePath + "/credentialStore", parentData: data, parentDataProperty: "credentialStore", rootData, dynamicAnchors })) {
|
|
15446
|
+
vErrors = vErrors === null ? validate144.errors : vErrors.concat(validate144.errors);
|
|
15069
15447
|
errors = vErrors.length;
|
|
15070
15448
|
}
|
|
15071
15449
|
}
|
|
@@ -15117,10 +15495,10 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15117
15495
|
}
|
|
15118
15496
|
errors++;
|
|
15119
15497
|
}
|
|
15120
|
-
|
|
15498
|
+
validate134.errors = vErrors;
|
|
15121
15499
|
return errors === 0;
|
|
15122
15500
|
}
|
|
15123
|
-
|
|
15501
|
+
validate134.evaluated = { "props": { "destinations": true, "promotion": true, "generatorVersion": true, "skip": true, "readmeTitle": true, "packageName": true, "binaryName": true, "defaultFormat": true, "defaultErrorFormat": true, "shellCompletions": true, "subresourceSeparator": true, "publish": true, "credentialStore": true, "prereleaseType": true }, "dynamicProps": false, "dynamicItems": false };
|
|
15124
15502
|
function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15125
15503
|
let vErrors = null;
|
|
15126
15504
|
let errors = 0;
|
|
@@ -15193,20 +15571,20 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15193
15571
|
}
|
|
15194
15572
|
}
|
|
15195
15573
|
if (data.cpp !== void 0) {
|
|
15196
|
-
if (!
|
|
15197
|
-
vErrors = vErrors === null ?
|
|
15574
|
+
if (!validate125(data.cpp, { instancePath: instancePath + "/cpp", parentData: data, parentDataProperty: "cpp", rootData, dynamicAnchors })) {
|
|
15575
|
+
vErrors = vErrors === null ? validate125.errors : vErrors.concat(validate125.errors);
|
|
15198
15576
|
errors = vErrors.length;
|
|
15199
15577
|
}
|
|
15200
15578
|
}
|
|
15201
15579
|
if (data.dart !== void 0) {
|
|
15202
|
-
if (!
|
|
15203
|
-
vErrors = vErrors === null ?
|
|
15580
|
+
if (!validate128(data.dart, { instancePath: instancePath + "/dart", parentData: data, parentDataProperty: "dart", rootData, dynamicAnchors })) {
|
|
15581
|
+
vErrors = vErrors === null ? validate128.errors : vErrors.concat(validate128.errors);
|
|
15204
15582
|
errors = vErrors.length;
|
|
15205
15583
|
}
|
|
15206
15584
|
}
|
|
15207
15585
|
if (data.cli !== void 0) {
|
|
15208
|
-
if (!
|
|
15209
|
-
vErrors = vErrors === null ?
|
|
15586
|
+
if (!validate134(data.cli, { instancePath: instancePath + "/cli", parentData: data, parentDataProperty: "cli", rootData, dynamicAnchors })) {
|
|
15587
|
+
vErrors = vErrors === null ? validate134.errors : vErrors.concat(validate134.errors);
|
|
15210
15588
|
errors = vErrors.length;
|
|
15211
15589
|
}
|
|
15212
15590
|
}
|
|
@@ -15223,12 +15601,12 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15223
15601
|
return errors === 0;
|
|
15224
15602
|
}
|
|
15225
15603
|
validate45.evaluated = { "props": { "typescript": true, "python": true, "go": true, "rust": true, "java": true, "kotlin": true, "swift": true, "ruby": true, "php": true, "csharp": true, "cpp": true, "dart": true, "cli": true }, "dynamicProps": false, "dynamicItems": false };
|
|
15226
|
-
var
|
|
15227
|
-
var
|
|
15228
|
-
function
|
|
15604
|
+
var schema141 = { "type": "object", "properties": { "opts": { "type": "object", "additionalProperties": { "$ref": "#/$defs/clientOpt" } }, "baseUrlAliases": { "type": "array", "items": { "type": "string" } }, "defaultHeaders": { "type": "object", "additionalProperties": { "type": "string" } }, "defaultClientName": { "type": "string" }, "defaultClientExampleName": { "type": "string" }, "defaultEnvPrefix": { "type": "string" }, "idempotencyHeader": { "type": "string" }, "emptyResponseAccept": { "enum": ["wildcard", "inherit"] }, "defaultTimeout": { "anyOf": [{ "type": "number" }, { "type": "string" }] }, "defaultRetries": { "$ref": "#/$defs/retrySettings" }, "responseHeaders": { "type": "object", "additionalProperties": { "type": "string" } } }, "required": ["opts"] };
|
|
15605
|
+
var schema143 = { "enum": ["value", "username", "password", "clientId", "clientSecret"] };
|
|
15606
|
+
function validate149(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15229
15607
|
let vErrors = null;
|
|
15230
15608
|
let errors = 0;
|
|
15231
|
-
const evaluated0 =
|
|
15609
|
+
const evaluated0 = validate149.evaluated;
|
|
15232
15610
|
if (evaluated0.dynamicProps) {
|
|
15233
15611
|
evaluated0.props = void 0;
|
|
15234
15612
|
}
|
|
@@ -15362,7 +15740,7 @@ function validate147(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15362
15740
|
if (data.role !== void 0) {
|
|
15363
15741
|
let data5 = data.role;
|
|
15364
15742
|
if (!(data5 === "value" || data5 === "username" || data5 === "password" || data5 === "clientId" || data5 === "clientSecret")) {
|
|
15365
|
-
const err5 = { instancePath: instancePath + "/role", schemaPath: "#/$defs/clientOptRole/enum", keyword: "enum", params: { allowedValues:
|
|
15743
|
+
const err5 = { instancePath: instancePath + "/role", schemaPath: "#/$defs/clientOptRole/enum", keyword: "enum", params: { allowedValues: schema143.enum }, message: "must be equal to one of the allowed values" };
|
|
15366
15744
|
if (vErrors === null) {
|
|
15367
15745
|
vErrors = [err5];
|
|
15368
15746
|
} else {
|
|
@@ -15542,14 +15920,14 @@ function validate147(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15542
15920
|
}
|
|
15543
15921
|
errors++;
|
|
15544
15922
|
}
|
|
15545
|
-
|
|
15923
|
+
validate149.errors = vErrors;
|
|
15546
15924
|
return errors === 0;
|
|
15547
15925
|
}
|
|
15548
|
-
|
|
15549
|
-
function
|
|
15926
|
+
validate149.evaluated = { "props": { "type": true, "description": true, "example": true, "defaultValue": true, "nullable": true, "readEnv": true, "securityScheme": true, "role": true, "serverVariable": true, "sendInHeader": true, "sendAsQueryParam": true, "sendAsBodyParam": true, "sendAsPathParam": true, "requiredInTests": true, "overridable": true }, "dynamicProps": false, "dynamicItems": false };
|
|
15927
|
+
function validate148(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
15550
15928
|
let vErrors = null;
|
|
15551
15929
|
let errors = 0;
|
|
15552
|
-
const evaluated0 =
|
|
15930
|
+
const evaluated0 = validate148.evaluated;
|
|
15553
15931
|
if (evaluated0.dynamicProps) {
|
|
15554
15932
|
evaluated0.props = void 0;
|
|
15555
15933
|
}
|
|
@@ -15570,8 +15948,8 @@ function validate146(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15570
15948
|
let data0 = data.opts;
|
|
15571
15949
|
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
15572
15950
|
for (const key0 in data0) {
|
|
15573
|
-
if (!
|
|
15574
|
-
vErrors = vErrors === null ?
|
|
15951
|
+
if (!validate149(data0[key0], { instancePath: instancePath + "/opts/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data0, parentDataProperty: key0, rootData, dynamicAnchors })) {
|
|
15952
|
+
vErrors = vErrors === null ? validate149.errors : vErrors.concat(validate149.errors);
|
|
15575
15953
|
errors = vErrors.length;
|
|
15576
15954
|
}
|
|
15577
15955
|
}
|
|
@@ -15783,7 +16161,7 @@ function validate146(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
15783
16161
|
if (data.emptyResponseAccept !== void 0) {
|
|
15784
16162
|
let data10 = data.emptyResponseAccept;
|
|
15785
16163
|
if (!(data10 === "wildcard" || data10 === "inherit")) {
|
|
15786
|
-
const err10 = { instancePath: instancePath + "/emptyResponseAccept", schemaPath: "#/properties/emptyResponseAccept/enum", keyword: "enum", params: { allowedValues:
|
|
16164
|
+
const err10 = { instancePath: instancePath + "/emptyResponseAccept", schemaPath: "#/properties/emptyResponseAccept/enum", keyword: "enum", params: { allowedValues: schema141.properties.emptyResponseAccept.enum }, message: "must be equal to one of the allowed values" };
|
|
15787
16165
|
if (vErrors === null) {
|
|
15788
16166
|
vErrors = [err10];
|
|
15789
16167
|
} else {
|
|
@@ -16010,19 +16388,19 @@ function validate146(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16010
16388
|
}
|
|
16011
16389
|
errors++;
|
|
16012
16390
|
}
|
|
16013
|
-
|
|
16391
|
+
validate148.errors = vErrors;
|
|
16014
16392
|
return errors === 0;
|
|
16015
16393
|
}
|
|
16016
|
-
|
|
16017
|
-
var
|
|
16018
|
-
var
|
|
16019
|
-
var
|
|
16020
|
-
var
|
|
16021
|
-
var
|
|
16022
|
-
function
|
|
16394
|
+
validate148.evaluated = { "props": { "opts": true, "baseUrlAliases": true, "defaultHeaders": true, "defaultClientName": true, "defaultClientExampleName": true, "defaultEnvPrefix": true, "idempotencyHeader": true, "emptyResponseAccept": true, "defaultTimeout": true, "defaultRetries": true, "responseHeaders": true }, "dynamicProps": false, "dynamicItems": false };
|
|
16395
|
+
var schema146 = { "enum": ["cursor", "cursorId", "cursorUrl", "fakePage", "offset", "pageNumber"] };
|
|
16396
|
+
var schema147 = { "enum": ["query", "body"] };
|
|
16397
|
+
var schema149 = { "enum": ["cursor", "cursorId", "cursorUrl", "offset", "pageNumber", "limit", "pageSize"] };
|
|
16398
|
+
var schema150 = { "enum": ["query", "body", "header"] };
|
|
16399
|
+
var schema151 = { "enum": ["next", "previous"] };
|
|
16400
|
+
function validate153(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16023
16401
|
let vErrors = null;
|
|
16024
16402
|
let errors = 0;
|
|
16025
|
-
const evaluated0 =
|
|
16403
|
+
const evaluated0 = validate153.evaluated;
|
|
16026
16404
|
if (evaluated0.dynamicProps) {
|
|
16027
16405
|
evaluated0.props = void 0;
|
|
16028
16406
|
}
|
|
@@ -16042,7 +16420,7 @@ function validate151(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16042
16420
|
if (data.type !== void 0) {
|
|
16043
16421
|
let data0 = data.type;
|
|
16044
16422
|
if (!(data0 === "cursor" || data0 === "cursorId" || data0 === "cursorUrl" || data0 === "offset" || data0 === "pageNumber" || data0 === "limit" || data0 === "pageSize")) {
|
|
16045
|
-
const err1 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/paginationRequestFieldRole/enum", keyword: "enum", params: { allowedValues:
|
|
16423
|
+
const err1 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/paginationRequestFieldRole/enum", keyword: "enum", params: { allowedValues: schema149.enum }, message: "must be equal to one of the allowed values" };
|
|
16046
16424
|
if (vErrors === null) {
|
|
16047
16425
|
vErrors = [err1];
|
|
16048
16426
|
} else {
|
|
@@ -16082,7 +16460,7 @@ function validate151(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16082
16460
|
if (data.location !== void 0) {
|
|
16083
16461
|
let data2 = data.location;
|
|
16084
16462
|
if (!(data2 === "query" || data2 === "body" || data2 === "header")) {
|
|
16085
|
-
const err3 = { instancePath: instancePath + "/location", schemaPath: "#/$defs/paginationRequestLocation/enum", keyword: "enum", params: { allowedValues:
|
|
16463
|
+
const err3 = { instancePath: instancePath + "/location", schemaPath: "#/$defs/paginationRequestLocation/enum", keyword: "enum", params: { allowedValues: schema150.enum }, message: "must be equal to one of the allowed values" };
|
|
16086
16464
|
if (vErrors === null) {
|
|
16087
16465
|
vErrors = [err3];
|
|
16088
16466
|
} else {
|
|
@@ -16094,7 +16472,7 @@ function validate151(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16094
16472
|
if (data.direction !== void 0) {
|
|
16095
16473
|
let data3 = data.direction;
|
|
16096
16474
|
if (!(data3 === "next" || data3 === "previous")) {
|
|
16097
|
-
const err4 = { instancePath: instancePath + "/direction", schemaPath: "#/$defs/paginationCursorDirection/enum", keyword: "enum", params: { allowedValues:
|
|
16475
|
+
const err4 = { instancePath: instancePath + "/direction", schemaPath: "#/$defs/paginationCursorDirection/enum", keyword: "enum", params: { allowedValues: schema151.enum }, message: "must be equal to one of the allowed values" };
|
|
16098
16476
|
if (vErrors === null) {
|
|
16099
16477
|
vErrors = [err4];
|
|
16100
16478
|
} else {
|
|
@@ -16209,16 +16587,16 @@ function validate151(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16209
16587
|
}
|
|
16210
16588
|
errors++;
|
|
16211
16589
|
}
|
|
16212
|
-
|
|
16590
|
+
validate153.errors = vErrors;
|
|
16213
16591
|
return errors === 0;
|
|
16214
16592
|
}
|
|
16215
|
-
|
|
16216
|
-
var
|
|
16217
|
-
var
|
|
16218
|
-
function
|
|
16593
|
+
validate153.evaluated = { "props": { "type": true, "param": true, "location": true, "direction": true, "path": true, "property": true, "value": true, "schema": true, "required": true }, "dynamicProps": false, "dynamicItems": false };
|
|
16594
|
+
var schema154 = { "enum": ["items", "cursor", "cursorId", "cursorUrl", "offset", "pageNumber", "hasMore", "total", "totalPages", "currentPage", "pageSize"] };
|
|
16595
|
+
var schema155 = { "enum": ["body", "header", "linkHeader", "bodyLink"] };
|
|
16596
|
+
function validate155(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16219
16597
|
let vErrors = null;
|
|
16220
16598
|
let errors = 0;
|
|
16221
|
-
const evaluated0 =
|
|
16599
|
+
const evaluated0 = validate155.evaluated;
|
|
16222
16600
|
if (evaluated0.dynamicProps) {
|
|
16223
16601
|
evaluated0.props = void 0;
|
|
16224
16602
|
}
|
|
@@ -16238,7 +16616,7 @@ function validate153(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16238
16616
|
if (data.type !== void 0) {
|
|
16239
16617
|
let data0 = data.type;
|
|
16240
16618
|
if (!(data0 === "items" || data0 === "cursor" || data0 === "cursorId" || data0 === "cursorUrl" || data0 === "offset" || data0 === "pageNumber" || data0 === "hasMore" || data0 === "total" || data0 === "totalPages" || data0 === "currentPage" || data0 === "pageSize")) {
|
|
16241
|
-
const err1 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/paginationResponseFieldRole/enum", keyword: "enum", params: { allowedValues:
|
|
16619
|
+
const err1 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/paginationResponseFieldRole/enum", keyword: "enum", params: { allowedValues: schema154.enum }, message: "must be equal to one of the allowed values" };
|
|
16242
16620
|
if (vErrors === null) {
|
|
16243
16621
|
vErrors = [err1];
|
|
16244
16622
|
} else {
|
|
@@ -16250,7 +16628,7 @@ function validate153(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16250
16628
|
if (data.location !== void 0) {
|
|
16251
16629
|
let data1 = data.location;
|
|
16252
16630
|
if (!(data1 === "body" || data1 === "header" || data1 === "linkHeader" || data1 === "bodyLink")) {
|
|
16253
|
-
const err2 = { instancePath: instancePath + "/location", schemaPath: "#/$defs/paginationResponseLocation/enum", keyword: "enum", params: { allowedValues:
|
|
16631
|
+
const err2 = { instancePath: instancePath + "/location", schemaPath: "#/$defs/paginationResponseLocation/enum", keyword: "enum", params: { allowedValues: schema155.enum }, message: "must be equal to one of the allowed values" };
|
|
16254
16632
|
if (vErrors === null) {
|
|
16255
16633
|
vErrors = [err2];
|
|
16256
16634
|
} else {
|
|
@@ -16262,7 +16640,7 @@ function validate153(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16262
16640
|
if (data.direction !== void 0) {
|
|
16263
16641
|
let data2 = data.direction;
|
|
16264
16642
|
if (!(data2 === "next" || data2 === "previous")) {
|
|
16265
|
-
const err3 = { instancePath: instancePath + "/direction", schemaPath: "#/$defs/paginationCursorDirection/enum", keyword: "enum", params: { allowedValues:
|
|
16643
|
+
const err3 = { instancePath: instancePath + "/direction", schemaPath: "#/$defs/paginationCursorDirection/enum", keyword: "enum", params: { allowedValues: schema151.enum }, message: "must be equal to one of the allowed values" };
|
|
16266
16644
|
if (vErrors === null) {
|
|
16267
16645
|
vErrors = [err3];
|
|
16268
16646
|
} else {
|
|
@@ -16517,14 +16895,14 @@ function validate153(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16517
16895
|
}
|
|
16518
16896
|
errors++;
|
|
16519
16897
|
}
|
|
16520
|
-
|
|
16898
|
+
validate155.errors = vErrors;
|
|
16521
16899
|
return errors === 0;
|
|
16522
16900
|
}
|
|
16523
|
-
|
|
16524
|
-
function
|
|
16901
|
+
validate155.evaluated = { "props": { "type": true, "location": true, "direction": true, "path": true, "headerName": true, "rel": true, "property": true, "itemCursor": true, "cursorPath": true, "schema": true, "required": true }, "dynamicProps": false, "dynamicItems": false };
|
|
16902
|
+
function validate152(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16525
16903
|
let vErrors = null;
|
|
16526
16904
|
let errors = 0;
|
|
16527
|
-
const evaluated0 =
|
|
16905
|
+
const evaluated0 = validate152.evaluated;
|
|
16528
16906
|
if (evaluated0.dynamicProps) {
|
|
16529
16907
|
evaluated0.props = void 0;
|
|
16530
16908
|
}
|
|
@@ -16627,7 +17005,7 @@ function validate150(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16627
17005
|
if (data.type !== void 0) {
|
|
16628
17006
|
let data2 = data.type;
|
|
16629
17007
|
if (!(data2 === "cursor" || data2 === "cursorId" || data2 === "cursorUrl" || data2 === "fakePage" || data2 === "offset" || data2 === "pageNumber")) {
|
|
16630
|
-
const err6 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/paginationType/enum", keyword: "enum", params: { allowedValues:
|
|
17008
|
+
const err6 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/paginationType/enum", keyword: "enum", params: { allowedValues: schema146.enum }, message: "must be equal to one of the allowed values" };
|
|
16631
17009
|
if (vErrors === null) {
|
|
16632
17010
|
vErrors = [err6];
|
|
16633
17011
|
} else {
|
|
@@ -16639,7 +17017,7 @@ function validate150(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16639
17017
|
if (data.paramLocation !== void 0) {
|
|
16640
17018
|
let data3 = data.paramLocation;
|
|
16641
17019
|
if (!(data3 === "query" || data3 === "body")) {
|
|
16642
|
-
const err7 = { instancePath: instancePath + "/paramLocation", schemaPath: "#/$defs/paginationParamLocation/enum", keyword: "enum", params: { allowedValues:
|
|
17020
|
+
const err7 = { instancePath: instancePath + "/paramLocation", schemaPath: "#/$defs/paginationParamLocation/enum", keyword: "enum", params: { allowedValues: schema147.enum }, message: "must be equal to one of the allowed values" };
|
|
16643
17021
|
if (vErrors === null) {
|
|
16644
17022
|
vErrors = [err7];
|
|
16645
17023
|
} else {
|
|
@@ -16679,8 +17057,8 @@ function validate150(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16679
17057
|
let data5 = data.request;
|
|
16680
17058
|
if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
|
|
16681
17059
|
for (const key0 in data5) {
|
|
16682
|
-
if (!
|
|
16683
|
-
vErrors = vErrors === null ?
|
|
17060
|
+
if (!validate153(data5[key0], { instancePath: instancePath + "/request/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data5, parentDataProperty: key0, rootData, dynamicAnchors })) {
|
|
17061
|
+
vErrors = vErrors === null ? validate153.errors : vErrors.concat(validate153.errors);
|
|
16684
17062
|
errors = vErrors.length;
|
|
16685
17063
|
}
|
|
16686
17064
|
}
|
|
@@ -16698,8 +17076,8 @@ function validate150(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16698
17076
|
let data7 = data.response;
|
|
16699
17077
|
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
16700
17078
|
for (const key1 in data7) {
|
|
16701
|
-
if (!
|
|
16702
|
-
vErrors = vErrors === null ?
|
|
17079
|
+
if (!validate155(data7[key1], { instancePath: instancePath + "/response/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data7, parentDataProperty: key1, rootData, dynamicAnchors })) {
|
|
17080
|
+
vErrors = vErrors === null ? validate155.errors : vErrors.concat(validate155.errors);
|
|
16703
17081
|
errors = vErrors.length;
|
|
16704
17082
|
}
|
|
16705
17083
|
}
|
|
@@ -16722,16 +17100,16 @@ function validate150(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16722
17100
|
}
|
|
16723
17101
|
errors++;
|
|
16724
17102
|
}
|
|
16725
|
-
|
|
17103
|
+
validate152.errors = vErrors;
|
|
16726
17104
|
return errors === 0;
|
|
16727
17105
|
}
|
|
16728
|
-
|
|
16729
|
-
var
|
|
16730
|
-
var
|
|
16731
|
-
function
|
|
17106
|
+
validate152.evaluated = { "props": { "name": true, "description": true, "type": true, "paramLocation": true, "continueOnEmptyItems": true, "request": true, "response": true }, "dynamicProps": false, "dynamicItems": false };
|
|
17107
|
+
var schema161 = { "enum": ["brackets", "dots"] };
|
|
17108
|
+
var schema162 = { "enum": ["comma", "repeat", "indices", "brackets"] };
|
|
17109
|
+
function validate158(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16732
17110
|
let vErrors = null;
|
|
16733
17111
|
let errors = 0;
|
|
16734
|
-
const evaluated0 =
|
|
17112
|
+
const evaluated0 = validate158.evaluated;
|
|
16735
17113
|
if (evaluated0.dynamicProps) {
|
|
16736
17114
|
evaluated0.props = void 0;
|
|
16737
17115
|
}
|
|
@@ -16742,7 +17120,7 @@ function validate156(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16742
17120
|
if (data.nestedFormat !== void 0) {
|
|
16743
17121
|
let data0 = data.nestedFormat;
|
|
16744
17122
|
if (!(data0 === "brackets" || data0 === "dots")) {
|
|
16745
|
-
const err0 = { instancePath: instancePath + "/nestedFormat", schemaPath: "#/$defs/queryNestedFormat/enum", keyword: "enum", params: { allowedValues:
|
|
17123
|
+
const err0 = { instancePath: instancePath + "/nestedFormat", schemaPath: "#/$defs/queryNestedFormat/enum", keyword: "enum", params: { allowedValues: schema161.enum }, message: "must be equal to one of the allowed values" };
|
|
16746
17124
|
if (vErrors === null) {
|
|
16747
17125
|
vErrors = [err0];
|
|
16748
17126
|
} else {
|
|
@@ -16754,7 +17132,7 @@ function validate156(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16754
17132
|
if (data.arrayFormat !== void 0) {
|
|
16755
17133
|
let data1 = data.arrayFormat;
|
|
16756
17134
|
if (!(data1 === "comma" || data1 === "repeat" || data1 === "indices" || data1 === "brackets")) {
|
|
16757
|
-
const err1 = { instancePath: instancePath + "/arrayFormat", schemaPath: "#/$defs/queryArrayFormat/enum", keyword: "enum", params: { allowedValues:
|
|
17135
|
+
const err1 = { instancePath: instancePath + "/arrayFormat", schemaPath: "#/$defs/queryArrayFormat/enum", keyword: "enum", params: { allowedValues: schema162.enum }, message: "must be equal to one of the allowed values" };
|
|
16758
17136
|
if (vErrors === null) {
|
|
16759
17137
|
vErrors = [err1];
|
|
16760
17138
|
} else {
|
|
@@ -16772,14 +17150,14 @@ function validate156(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16772
17150
|
}
|
|
16773
17151
|
errors++;
|
|
16774
17152
|
}
|
|
16775
|
-
|
|
17153
|
+
validate158.errors = vErrors;
|
|
16776
17154
|
return errors === 0;
|
|
16777
17155
|
}
|
|
16778
|
-
|
|
16779
|
-
function
|
|
17156
|
+
validate158.evaluated = { "props": { "nestedFormat": true, "arrayFormat": true }, "dynamicProps": false, "dynamicItems": false };
|
|
17157
|
+
function validate160(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16780
17158
|
let vErrors = null;
|
|
16781
17159
|
let errors = 0;
|
|
16782
|
-
const evaluated0 =
|
|
17160
|
+
const evaluated0 = validate160.evaluated;
|
|
16783
17161
|
if (evaluated0.dynamicProps) {
|
|
16784
17162
|
evaluated0.props = void 0;
|
|
16785
17163
|
}
|
|
@@ -16790,7 +17168,7 @@ function validate158(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16790
17168
|
if (data.arrayFormat !== void 0) {
|
|
16791
17169
|
let data0 = data.arrayFormat;
|
|
16792
17170
|
if (!(data0 === "comma" || data0 === "repeat" || data0 === "indices" || data0 === "brackets")) {
|
|
16793
|
-
const err0 = { instancePath: instancePath + "/arrayFormat", schemaPath: "#/$defs/queryArrayFormat/enum", keyword: "enum", params: { allowedValues:
|
|
17171
|
+
const err0 = { instancePath: instancePath + "/arrayFormat", schemaPath: "#/$defs/queryArrayFormat/enum", keyword: "enum", params: { allowedValues: schema162.enum }, message: "must be equal to one of the allowed values" };
|
|
16794
17172
|
if (vErrors === null) {
|
|
16795
17173
|
vErrors = [err0];
|
|
16796
17174
|
} else {
|
|
@@ -16808,18 +17186,18 @@ function validate158(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16808
17186
|
}
|
|
16809
17187
|
errors++;
|
|
16810
17188
|
}
|
|
16811
|
-
|
|
17189
|
+
validate160.errors = vErrors;
|
|
16812
17190
|
return errors === 0;
|
|
16813
17191
|
}
|
|
16814
|
-
|
|
16815
|
-
var
|
|
16816
|
-
var
|
|
16817
|
-
var
|
|
16818
|
-
var
|
|
16819
|
-
function
|
|
17192
|
+
validate160.evaluated = { "props": { "arrayFormat": true }, "dynamicProps": false, "dynamicItems": false };
|
|
17193
|
+
var schema166 = { "type": "object", "properties": { "codeSamples": { "enum": ["x-codeSamples", "x-code-samples", "x-scalar-examples", "x-custom-examples"], "default": "x-codeSamples" }, "codeSampleLanguages": { "type": "object", "additionalProperties": { "type": "boolean" } }, "tags": { "enum": ["document", "resources"], "default": "document" }, "security": { "type": "array", "items": { "$ref": "#/$defs/securityRequirementObject" } }, "securitySchemes": { "type": "object", "additionalProperties": { "$ref": "#/$defs/securitySchemeObject" } }, "securitySchemeSettings": { "type": "object", "additionalProperties": { "$ref": "#/$defs/securitySchemeSettings" } }, "operationSecurity": { "type": "boolean" }, "transformations": { "type": "array", "items": { "$ref": "#/$defs/openAPITransformation" } } } };
|
|
17194
|
+
var schema183 = { "type": "object", "properties": { "command": { "enum": ["copySchemaObject", "mergeObject", "removePaths", "removeProperties", "renameProperty", "renameSchema", "renameValue", "replaceValue", "updatePatternExamples"] }, "args": { "type": "object", "additionalProperties": true }, "reason": { "type": "string" } }, "required": ["command", "args"], "additionalProperties": false };
|
|
17195
|
+
var schema169 = { "enum": ["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"] };
|
|
17196
|
+
var schema170 = { "enum": ["query", "header", "cookie"] };
|
|
17197
|
+
function validate165(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16820
17198
|
let vErrors = null;
|
|
16821
17199
|
let errors = 0;
|
|
16822
|
-
const evaluated0 =
|
|
17200
|
+
const evaluated0 = validate165.evaluated;
|
|
16823
17201
|
if (evaluated0.dynamicProps) {
|
|
16824
17202
|
evaluated0.props = void 0;
|
|
16825
17203
|
}
|
|
@@ -16933,14 +17311,14 @@ function validate163(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
16933
17311
|
}
|
|
16934
17312
|
errors++;
|
|
16935
17313
|
}
|
|
16936
|
-
|
|
17314
|
+
validate165.errors = vErrors;
|
|
16937
17315
|
return errors === 0;
|
|
16938
17316
|
}
|
|
16939
|
-
|
|
16940
|
-
function
|
|
17317
|
+
validate165.evaluated = { "props": { "authorizationUrl": true, "refreshUrl": true, "scopes": true }, "dynamicProps": false, "dynamicItems": false };
|
|
17318
|
+
function validate167(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
16941
17319
|
let vErrors = null;
|
|
16942
17320
|
let errors = 0;
|
|
16943
|
-
const evaluated0 =
|
|
17321
|
+
const evaluated0 = validate167.evaluated;
|
|
16944
17322
|
if (evaluated0.dynamicProps) {
|
|
16945
17323
|
evaluated0.props = void 0;
|
|
16946
17324
|
}
|
|
@@ -17054,14 +17432,14 @@ function validate165(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17054
17432
|
}
|
|
17055
17433
|
errors++;
|
|
17056
17434
|
}
|
|
17057
|
-
|
|
17435
|
+
validate167.errors = vErrors;
|
|
17058
17436
|
return errors === 0;
|
|
17059
17437
|
}
|
|
17060
|
-
|
|
17061
|
-
function
|
|
17438
|
+
validate167.evaluated = { "props": { "tokenUrl": true, "refreshUrl": true, "scopes": true }, "dynamicProps": false, "dynamicItems": false };
|
|
17439
|
+
function validate169(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17062
17440
|
let vErrors = null;
|
|
17063
17441
|
let errors = 0;
|
|
17064
|
-
const evaluated0 =
|
|
17442
|
+
const evaluated0 = validate169.evaluated;
|
|
17065
17443
|
if (evaluated0.dynamicProps) {
|
|
17066
17444
|
evaluated0.props = void 0;
|
|
17067
17445
|
}
|
|
@@ -17175,14 +17553,14 @@ function validate167(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17175
17553
|
}
|
|
17176
17554
|
errors++;
|
|
17177
17555
|
}
|
|
17178
|
-
|
|
17556
|
+
validate169.errors = vErrors;
|
|
17179
17557
|
return errors === 0;
|
|
17180
17558
|
}
|
|
17181
|
-
|
|
17182
|
-
function
|
|
17559
|
+
validate169.evaluated = { "props": { "tokenUrl": true, "refreshUrl": true, "scopes": true }, "dynamicProps": false, "dynamicItems": false };
|
|
17560
|
+
function validate171(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17183
17561
|
let vErrors = null;
|
|
17184
17562
|
let errors = 0;
|
|
17185
|
-
const evaluated0 =
|
|
17563
|
+
const evaluated0 = validate171.evaluated;
|
|
17186
17564
|
if (evaluated0.dynamicProps) {
|
|
17187
17565
|
evaluated0.props = void 0;
|
|
17188
17566
|
}
|
|
@@ -17324,14 +17702,14 @@ function validate169(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17324
17702
|
}
|
|
17325
17703
|
errors++;
|
|
17326
17704
|
}
|
|
17327
|
-
|
|
17705
|
+
validate171.errors = vErrors;
|
|
17328
17706
|
return errors === 0;
|
|
17329
17707
|
}
|
|
17330
|
-
|
|
17331
|
-
function
|
|
17708
|
+
validate171.evaluated = { "props": { "deviceAuthorizationUrl": true, "tokenUrl": true, "refreshUrl": true, "scopes": true }, "dynamicProps": false, "dynamicItems": false };
|
|
17709
|
+
function validate173(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17332
17710
|
let vErrors = null;
|
|
17333
17711
|
let errors = 0;
|
|
17334
|
-
const evaluated0 =
|
|
17712
|
+
const evaluated0 = validate173.evaluated;
|
|
17335
17713
|
if (evaluated0.dynamicProps) {
|
|
17336
17714
|
evaluated0.props = void 0;
|
|
17337
17715
|
}
|
|
@@ -17473,14 +17851,14 @@ function validate171(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17473
17851
|
}
|
|
17474
17852
|
errors++;
|
|
17475
17853
|
}
|
|
17476
|
-
|
|
17854
|
+
validate173.errors = vErrors;
|
|
17477
17855
|
return errors === 0;
|
|
17478
17856
|
}
|
|
17479
|
-
|
|
17480
|
-
function
|
|
17857
|
+
validate173.evaluated = { "props": { "authorizationUrl": true, "tokenUrl": true, "refreshUrl": true, "scopes": true }, "dynamicProps": false, "dynamicItems": false };
|
|
17858
|
+
function validate164(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17481
17859
|
let vErrors = null;
|
|
17482
17860
|
let errors = 0;
|
|
17483
|
-
const evaluated0 =
|
|
17861
|
+
const evaluated0 = validate164.evaluated;
|
|
17484
17862
|
if (evaluated0.dynamicProps) {
|
|
17485
17863
|
evaluated0.props = void 0;
|
|
17486
17864
|
}
|
|
@@ -17489,32 +17867,32 @@ function validate162(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17489
17867
|
}
|
|
17490
17868
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
17491
17869
|
if (data.implicit !== void 0) {
|
|
17492
|
-
if (!
|
|
17493
|
-
vErrors = vErrors === null ?
|
|
17870
|
+
if (!validate165(data.implicit, { instancePath: instancePath + "/implicit", parentData: data, parentDataProperty: "implicit", rootData, dynamicAnchors })) {
|
|
17871
|
+
vErrors = vErrors === null ? validate165.errors : vErrors.concat(validate165.errors);
|
|
17494
17872
|
errors = vErrors.length;
|
|
17495
17873
|
}
|
|
17496
17874
|
}
|
|
17497
17875
|
if (data.password !== void 0) {
|
|
17498
|
-
if (!
|
|
17499
|
-
vErrors = vErrors === null ?
|
|
17876
|
+
if (!validate167(data.password, { instancePath: instancePath + "/password", parentData: data, parentDataProperty: "password", rootData, dynamicAnchors })) {
|
|
17877
|
+
vErrors = vErrors === null ? validate167.errors : vErrors.concat(validate167.errors);
|
|
17500
17878
|
errors = vErrors.length;
|
|
17501
17879
|
}
|
|
17502
17880
|
}
|
|
17503
17881
|
if (data.clientCredentials !== void 0) {
|
|
17504
|
-
if (!
|
|
17505
|
-
vErrors = vErrors === null ?
|
|
17882
|
+
if (!validate169(data.clientCredentials, { instancePath: instancePath + "/clientCredentials", parentData: data, parentDataProperty: "clientCredentials", rootData, dynamicAnchors })) {
|
|
17883
|
+
vErrors = vErrors === null ? validate169.errors : vErrors.concat(validate169.errors);
|
|
17506
17884
|
errors = vErrors.length;
|
|
17507
17885
|
}
|
|
17508
17886
|
}
|
|
17509
17887
|
if (data.deviceAuthorization !== void 0) {
|
|
17510
|
-
if (!
|
|
17511
|
-
vErrors = vErrors === null ?
|
|
17888
|
+
if (!validate171(data.deviceAuthorization, { instancePath: instancePath + "/deviceAuthorization", parentData: data, parentDataProperty: "deviceAuthorization", rootData, dynamicAnchors })) {
|
|
17889
|
+
vErrors = vErrors === null ? validate171.errors : vErrors.concat(validate171.errors);
|
|
17512
17890
|
errors = vErrors.length;
|
|
17513
17891
|
}
|
|
17514
17892
|
}
|
|
17515
17893
|
if (data.authorizationCode !== void 0) {
|
|
17516
|
-
if (!
|
|
17517
|
-
vErrors = vErrors === null ?
|
|
17894
|
+
if (!validate173(data.authorizationCode, { instancePath: instancePath + "/authorizationCode", parentData: data, parentDataProperty: "authorizationCode", rootData, dynamicAnchors })) {
|
|
17895
|
+
vErrors = vErrors === null ? validate173.errors : vErrors.concat(validate173.errors);
|
|
17518
17896
|
errors = vErrors.length;
|
|
17519
17897
|
}
|
|
17520
17898
|
}
|
|
@@ -17527,14 +17905,14 @@ function validate162(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17527
17905
|
}
|
|
17528
17906
|
errors++;
|
|
17529
17907
|
}
|
|
17530
|
-
|
|
17908
|
+
validate164.errors = vErrors;
|
|
17531
17909
|
return errors === 0;
|
|
17532
17910
|
}
|
|
17533
|
-
|
|
17534
|
-
function
|
|
17911
|
+
validate164.evaluated = { "props": { "implicit": true, "password": true, "clientCredentials": true, "deviceAuthorization": true, "authorizationCode": true }, "dynamicProps": false, "dynamicItems": false };
|
|
17912
|
+
function validate163(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17535
17913
|
let vErrors = null;
|
|
17536
17914
|
let errors = 0;
|
|
17537
|
-
const evaluated0 =
|
|
17915
|
+
const evaluated0 = validate163.evaluated;
|
|
17538
17916
|
if (evaluated0.dynamicProps) {
|
|
17539
17917
|
evaluated0.props = void 0;
|
|
17540
17918
|
}
|
|
@@ -17545,7 +17923,7 @@ function validate161(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17545
17923
|
if (data.type !== void 0) {
|
|
17546
17924
|
let data0 = data.type;
|
|
17547
17925
|
if (!(data0 === "apiKey" || data0 === "http" || data0 === "mutualTLS" || data0 === "oauth2" || data0 === "openIdConnect")) {
|
|
17548
|
-
const err0 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/securitySchemeType/enum", keyword: "enum", params: { allowedValues:
|
|
17926
|
+
const err0 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/securitySchemeType/enum", keyword: "enum", params: { allowedValues: schema169.enum }, message: "must be equal to one of the allowed values" };
|
|
17549
17927
|
if (vErrors === null) {
|
|
17550
17928
|
vErrors = [err0];
|
|
17551
17929
|
} else {
|
|
@@ -17613,7 +17991,7 @@ function validate161(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17613
17991
|
if (data.in !== void 0) {
|
|
17614
17992
|
let data3 = data.in;
|
|
17615
17993
|
if (!(data3 === "query" || data3 === "header" || data3 === "cookie")) {
|
|
17616
|
-
const err3 = { instancePath: instancePath + "/in", schemaPath: "#/$defs/apiKeyLocation/enum", keyword: "enum", params: { allowedValues:
|
|
17994
|
+
const err3 = { instancePath: instancePath + "/in", schemaPath: "#/$defs/apiKeyLocation/enum", keyword: "enum", params: { allowedValues: schema170.enum }, message: "must be equal to one of the allowed values" };
|
|
17617
17995
|
if (vErrors === null) {
|
|
17618
17996
|
vErrors = [err3];
|
|
17619
17997
|
} else {
|
|
@@ -17679,8 +18057,8 @@ function validate161(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17679
18057
|
}
|
|
17680
18058
|
}
|
|
17681
18059
|
if (data.flows !== void 0) {
|
|
17682
|
-
if (!
|
|
17683
|
-
vErrors = vErrors === null ?
|
|
18060
|
+
if (!validate164(data.flows, { instancePath: instancePath + "/flows", parentData: data, parentDataProperty: "flows", rootData, dynamicAnchors })) {
|
|
18061
|
+
vErrors = vErrors === null ? validate164.errors : vErrors.concat(validate164.errors);
|
|
17684
18062
|
errors = vErrors.length;
|
|
17685
18063
|
}
|
|
17686
18064
|
}
|
|
@@ -17749,15 +18127,15 @@ function validate161(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17749
18127
|
}
|
|
17750
18128
|
errors++;
|
|
17751
18129
|
}
|
|
17752
|
-
|
|
18130
|
+
validate163.errors = vErrors;
|
|
17753
18131
|
return errors === 0;
|
|
17754
18132
|
}
|
|
17755
|
-
|
|
17756
|
-
var
|
|
17757
|
-
function
|
|
18133
|
+
validate163.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18134
|
+
var pattern35 = new RegExp('^(?:[A-Za-z][A-Za-z0-9+.-]*://[!"$-.0-9;->A-~][!"$-~]*|[Uu][Rr][Nn]:[A-Za-z0-9][A-Za-z0-9-]{0,30}[A-Za-z0-9]:[!"$-~]+)$', "u");
|
|
18135
|
+
function validate162(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
17758
18136
|
let vErrors = null;
|
|
17759
18137
|
let errors = 0;
|
|
17760
|
-
const evaluated0 =
|
|
18138
|
+
const evaluated0 = validate162.evaluated;
|
|
17761
18139
|
if (evaluated0.dynamicProps) {
|
|
17762
18140
|
evaluated0.props = void 0;
|
|
17763
18141
|
}
|
|
@@ -17768,7 +18146,7 @@ function validate160(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17768
18146
|
if (data.codeSamples !== void 0) {
|
|
17769
18147
|
let data0 = data.codeSamples;
|
|
17770
18148
|
if (!(data0 === "x-codeSamples" || data0 === "x-code-samples" || data0 === "x-scalar-examples" || data0 === "x-custom-examples")) {
|
|
17771
|
-
const err0 = { instancePath: instancePath + "/codeSamples", schemaPath: "#/properties/codeSamples/enum", keyword: "enum", params: { allowedValues:
|
|
18149
|
+
const err0 = { instancePath: instancePath + "/codeSamples", schemaPath: "#/properties/codeSamples/enum", keyword: "enum", params: { allowedValues: schema166.properties.codeSamples.enum }, message: "must be equal to one of the allowed values" };
|
|
17772
18150
|
if (vErrors === null) {
|
|
17773
18151
|
vErrors = [err0];
|
|
17774
18152
|
} else {
|
|
@@ -17820,7 +18198,7 @@ function validate160(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17820
18198
|
if (data.tags !== void 0) {
|
|
17821
18199
|
let data3 = data.tags;
|
|
17822
18200
|
if (!(data3 === "document" || data3 === "resources")) {
|
|
17823
|
-
const err3 = { instancePath: instancePath + "/tags", schemaPath: "#/properties/tags/enum", keyword: "enum", params: { allowedValues:
|
|
18201
|
+
const err3 = { instancePath: instancePath + "/tags", schemaPath: "#/properties/tags/enum", keyword: "enum", params: { allowedValues: schema166.properties.tags.enum }, message: "must be equal to one of the allowed values" };
|
|
17824
18202
|
if (vErrors === null) {
|
|
17825
18203
|
vErrors = [err3];
|
|
17826
18204
|
} else {
|
|
@@ -17902,8 +18280,8 @@ function validate160(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17902
18280
|
let data8 = data.securitySchemes;
|
|
17903
18281
|
if (data8 && typeof data8 == "object" && !Array.isArray(data8)) {
|
|
17904
18282
|
for (const key2 in data8) {
|
|
17905
|
-
if (!
|
|
17906
|
-
vErrors = vErrors === null ?
|
|
18283
|
+
if (!validate163(data8[key2], { instancePath: instancePath + "/securitySchemes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data8, parentDataProperty: key2, rootData, dynamicAnchors })) {
|
|
18284
|
+
vErrors = vErrors === null ? validate163.errors : vErrors.concat(validate163.errors);
|
|
17907
18285
|
errors = vErrors.length;
|
|
17908
18286
|
}
|
|
17909
18287
|
}
|
|
@@ -17975,7 +18353,7 @@ function validate160(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
17975
18353
|
}
|
|
17976
18354
|
}
|
|
17977
18355
|
if (typeof data13 === "string") {
|
|
17978
|
-
if (!
|
|
18356
|
+
if (!pattern35.test(data13)) {
|
|
17979
18357
|
const err12 = { instancePath: instancePath + "/securitySchemeSettings/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/resource/" + i2, schemaPath: "#/$defs/securitySchemeSettings/properties/resource/items/pattern", keyword: "pattern", params: { pattern: '^(?:[A-Za-z][A-Za-z0-9+.-]*://[!"$-.0-9;->A-~][!"$-~]*|[Uu][Rr][Nn]:[A-Za-z0-9][A-Za-z0-9-]{0,30}[A-Za-z0-9]:[!"$-~]+)$' }, message: 'must match pattern "^(?:[A-Za-z][A-Za-z0-9+.-]*://[!"$-.0-9;->A-~][!"$-~]*|[Uu][Rr][Nn]:[A-Za-z0-9][A-Za-z0-9-]{0,30}[A-Za-z0-9]:[!"$-~]+)$"' };
|
|
17980
18358
|
if (vErrors === null) {
|
|
17981
18359
|
vErrors = [err12];
|
|
@@ -18121,7 +18499,7 @@ function validate160(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18121
18499
|
if (data17.command !== void 0) {
|
|
18122
18500
|
let data18 = data17.command;
|
|
18123
18501
|
if (!(data18 === "copySchemaObject" || data18 === "mergeObject" || data18 === "removePaths" || data18 === "removeProperties" || data18 === "renameProperty" || data18 === "renameSchema" || data18 === "renameValue" || data18 === "replaceValue" || data18 === "updatePatternExamples")) {
|
|
18124
|
-
const err22 = { instancePath: instancePath + "/transformations/" + i3 + "/command", schemaPath: "#/$defs/openAPITransformation/properties/command/enum", keyword: "enum", params: { allowedValues:
|
|
18502
|
+
const err22 = { instancePath: instancePath + "/transformations/" + i3 + "/command", schemaPath: "#/$defs/openAPITransformation/properties/command/enum", keyword: "enum", params: { allowedValues: schema183.properties.command.enum }, message: "must be equal to one of the allowed values" };
|
|
18125
18503
|
if (vErrors === null) {
|
|
18126
18504
|
vErrors = [err22];
|
|
18127
18505
|
} else {
|
|
@@ -18200,17 +18578,17 @@ function validate160(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18200
18578
|
}
|
|
18201
18579
|
errors++;
|
|
18202
18580
|
}
|
|
18203
|
-
|
|
18581
|
+
validate162.errors = vErrors;
|
|
18204
18582
|
return errors === 0;
|
|
18205
18583
|
}
|
|
18206
|
-
|
|
18207
|
-
var
|
|
18208
|
-
var
|
|
18209
|
-
var
|
|
18210
|
-
function
|
|
18584
|
+
validate162.evaluated = { "props": { "codeSamples": true, "codeSampleLanguages": true, "tags": true, "security": true, "securitySchemes": true, "securitySchemeSettings": true, "operationSecurity": true, "transformations": true }, "dynamicProps": false, "dynamicItems": false };
|
|
18585
|
+
var schema185 = { "enum": ["connect", "transcode"] };
|
|
18586
|
+
var pattern36 = new RegExp("^[^-\\s\\u0000-\\u001f\\u007f-\\u009f][^\\u0000-\\u001f\\u007f-\\u009f]*$", "u");
|
|
18587
|
+
var pattern38 = new RegExp("^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*/[A-Za-z_][A-Za-z0-9_]*$", "u");
|
|
18588
|
+
function validate179(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18211
18589
|
let vErrors = null;
|
|
18212
18590
|
let errors = 0;
|
|
18213
|
-
const evaluated0 =
|
|
18591
|
+
const evaluated0 = validate179.evaluated;
|
|
18214
18592
|
if (evaluated0.dynamicProps) {
|
|
18215
18593
|
evaluated0.props = void 0;
|
|
18216
18594
|
}
|
|
@@ -18328,14 +18706,14 @@ function validate177(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18328
18706
|
}
|
|
18329
18707
|
errors++;
|
|
18330
18708
|
}
|
|
18331
|
-
|
|
18709
|
+
validate179.errors = vErrors;
|
|
18332
18710
|
return errors === 0;
|
|
18333
18711
|
}
|
|
18334
|
-
|
|
18335
|
-
function
|
|
18712
|
+
validate179.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18713
|
+
function validate178(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18336
18714
|
let vErrors = null;
|
|
18337
18715
|
let errors = 0;
|
|
18338
|
-
const evaluated0 =
|
|
18716
|
+
const evaluated0 = validate178.evaluated;
|
|
18339
18717
|
if (evaluated0.dynamicProps) {
|
|
18340
18718
|
evaluated0.props = void 0;
|
|
18341
18719
|
}
|
|
@@ -18382,7 +18760,7 @@ function validate176(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18382
18760
|
}
|
|
18383
18761
|
}
|
|
18384
18762
|
if (typeof data0 === "string") {
|
|
18385
|
-
if (!
|
|
18763
|
+
if (!pattern36.test(data0)) {
|
|
18386
18764
|
const err2 = { instancePath: instancePath + "/target", schemaPath: "#/properties/target/pattern", keyword: "pattern", params: { pattern: "^[^-\\s\\u0000-\\u001f\\u007f-\\u009f][^\\u0000-\\u001f\\u007f-\\u009f]*$" }, message: 'must match pattern "^[^-\\s\\u0000-\\u001f\\u007f-\\u009f][^\\u0000-\\u001f\\u007f-\\u009f]*$"' };
|
|
18387
18765
|
if (vErrors === null) {
|
|
18388
18766
|
vErrors = [err2];
|
|
@@ -18396,7 +18774,7 @@ function validate176(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18396
18774
|
if (data.protocol !== void 0) {
|
|
18397
18775
|
let data1 = data.protocol;
|
|
18398
18776
|
if (!(data1 === "connect" || data1 === "transcode")) {
|
|
18399
|
-
const err3 = { instancePath: instancePath + "/protocol", schemaPath: "#/$defs/grpcProtocol/enum", keyword: "enum", params: { allowedValues:
|
|
18777
|
+
const err3 = { instancePath: instancePath + "/protocol", schemaPath: "#/$defs/grpcProtocol/enum", keyword: "enum", params: { allowedValues: schema185.enum }, message: "must be equal to one of the allowed values" };
|
|
18400
18778
|
if (vErrors === null) {
|
|
18401
18779
|
vErrors = [err3];
|
|
18402
18780
|
} else {
|
|
@@ -18433,8 +18811,8 @@ function validate176(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18433
18811
|
}
|
|
18434
18812
|
}
|
|
18435
18813
|
for (const key2 in data2) {
|
|
18436
|
-
if (!
|
|
18437
|
-
vErrors = vErrors === null ?
|
|
18814
|
+
if (!validate179(data2[key2], { instancePath: instancePath + "/services/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data2, parentDataProperty: key2, rootData, dynamicAnchors })) {
|
|
18815
|
+
vErrors = vErrors === null ? validate179.errors : vErrors.concat(validate179.errors);
|
|
18438
18816
|
errors = vErrors.length;
|
|
18439
18817
|
}
|
|
18440
18818
|
}
|
|
@@ -18480,7 +18858,7 @@ function validate176(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18480
18858
|
}
|
|
18481
18859
|
}
|
|
18482
18860
|
if (typeof data5 === "string") {
|
|
18483
|
-
if (!
|
|
18861
|
+
if (!pattern38.test(data5)) {
|
|
18484
18862
|
const err8 = { instancePath: instancePath + "/ignoredMethods/" + i0, schemaPath: "#/properties/ignoredMethods/items/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*/[A-Za-z_][A-Za-z0-9_]*$" }, message: 'must match pattern "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*/[A-Za-z_][A-Za-z0-9_]*$"' };
|
|
18485
18863
|
if (vErrors === null) {
|
|
18486
18864
|
vErrors = [err8];
|
|
@@ -18510,16 +18888,16 @@ function validate176(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18510
18888
|
}
|
|
18511
18889
|
errors++;
|
|
18512
18890
|
}
|
|
18513
|
-
|
|
18891
|
+
validate178.errors = vErrors;
|
|
18514
18892
|
return errors === 0;
|
|
18515
18893
|
}
|
|
18516
|
-
|
|
18517
|
-
var
|
|
18518
|
-
var
|
|
18519
|
-
function
|
|
18894
|
+
validate178.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
18895
|
+
var schema189 = { "type": "object", "properties": { "kind": { "$ref": "#/$defs/streamingEventHandlerKind" }, "handle": { "type": "string" }, "eventType": { "anyOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }, { "const": null }] }, "errorProperty": { "type": "string" }, "dataStartsWith": { "type": "string" } }, "required": ["kind", "handle"] };
|
|
18896
|
+
var schema190 = { "enum": ["event", "fallthrough", "data"] };
|
|
18897
|
+
function validate185(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18520
18898
|
let vErrors = null;
|
|
18521
18899
|
let errors = 0;
|
|
18522
|
-
const evaluated0 =
|
|
18900
|
+
const evaluated0 = validate185.evaluated;
|
|
18523
18901
|
if (evaluated0.dynamicProps) {
|
|
18524
18902
|
evaluated0.props = void 0;
|
|
18525
18903
|
}
|
|
@@ -18548,7 +18926,7 @@ function validate183(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18548
18926
|
if (data.kind !== void 0) {
|
|
18549
18927
|
let data0 = data.kind;
|
|
18550
18928
|
if (!(data0 === "event" || data0 === "fallthrough" || data0 === "data")) {
|
|
18551
|
-
const err2 = { instancePath: instancePath + "/kind", schemaPath: "#/$defs/streamingEventHandlerKind/enum", keyword: "enum", params: { allowedValues:
|
|
18929
|
+
const err2 = { instancePath: instancePath + "/kind", schemaPath: "#/$defs/streamingEventHandlerKind/enum", keyword: "enum", params: { allowedValues: schema190.enum }, message: "must be equal to one of the allowed values" };
|
|
18552
18930
|
if (vErrors === null) {
|
|
18553
18931
|
vErrors = [err2];
|
|
18554
18932
|
} else {
|
|
@@ -18661,7 +19039,7 @@ function validate183(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18661
19039
|
valid2 = valid2 || _valid0;
|
|
18662
19040
|
const _errs13 = errors;
|
|
18663
19041
|
if (null !== data2) {
|
|
18664
|
-
const err7 = { instancePath: instancePath + "/eventType", schemaPath: "#/properties/eventType/anyOf/2/const", keyword: "const", params: { allowedValue:
|
|
19042
|
+
const err7 = { instancePath: instancePath + "/eventType", schemaPath: "#/properties/eventType/anyOf/2/const", keyword: "const", params: { allowedValue: schema189.properties.eventType.anyOf[2].const }, message: "must be equal to constant" };
|
|
18665
19043
|
if (vErrors === null) {
|
|
18666
19044
|
vErrors = [err7];
|
|
18667
19045
|
} else {
|
|
@@ -18755,14 +19133,14 @@ function validate183(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18755
19133
|
}
|
|
18756
19134
|
errors++;
|
|
18757
19135
|
}
|
|
18758
|
-
|
|
19136
|
+
validate185.errors = vErrors;
|
|
18759
19137
|
return errors === 0;
|
|
18760
19138
|
}
|
|
18761
|
-
|
|
18762
|
-
function
|
|
19139
|
+
validate185.evaluated = { "props": { "kind": true, "handle": true, "eventType": true, "errorProperty": true, "dataStartsWith": true }, "dynamicProps": false, "dynamicItems": false };
|
|
19140
|
+
function validate184(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18763
19141
|
let vErrors = null;
|
|
18764
19142
|
let errors = 0;
|
|
18765
|
-
const evaluated0 =
|
|
19143
|
+
const evaluated0 = validate184.evaluated;
|
|
18766
19144
|
if (evaluated0.dynamicProps) {
|
|
18767
19145
|
evaluated0.props = void 0;
|
|
18768
19146
|
}
|
|
@@ -18784,8 +19162,8 @@ function validate182(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18784
19162
|
if (Array.isArray(data0)) {
|
|
18785
19163
|
const len0 = data0.length;
|
|
18786
19164
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
18787
|
-
if (!
|
|
18788
|
-
vErrors = vErrors === null ?
|
|
19165
|
+
if (!validate185(data0[i0], { instancePath: instancePath + "/onEvent/" + i0, parentData: data0, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
19166
|
+
vErrors = vErrors === null ? validate185.errors : vErrors.concat(validate185.errors);
|
|
18789
19167
|
errors = vErrors.length;
|
|
18790
19168
|
}
|
|
18791
19169
|
}
|
|
@@ -18808,14 +19186,14 @@ function validate182(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18808
19186
|
}
|
|
18809
19187
|
errors++;
|
|
18810
19188
|
}
|
|
18811
|
-
|
|
19189
|
+
validate184.errors = vErrors;
|
|
18812
19190
|
return errors === 0;
|
|
18813
19191
|
}
|
|
18814
|
-
|
|
18815
|
-
function
|
|
19192
|
+
validate184.evaluated = { "props": { "onEvent": true }, "dynamicProps": false, "dynamicItems": false };
|
|
19193
|
+
function validate188(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18816
19194
|
let vErrors = null;
|
|
18817
19195
|
let errors = 0;
|
|
18818
|
-
const evaluated0 =
|
|
19196
|
+
const evaluated0 = validate188.evaluated;
|
|
18819
19197
|
if (evaluated0.dynamicProps) {
|
|
18820
19198
|
evaluated0.props = void 0;
|
|
18821
19199
|
}
|
|
@@ -18979,15 +19357,15 @@ function validate186(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
18979
19357
|
}
|
|
18980
19358
|
errors++;
|
|
18981
19359
|
}
|
|
18982
|
-
|
|
19360
|
+
validate188.errors = vErrors;
|
|
18983
19361
|
return errors === 0;
|
|
18984
19362
|
}
|
|
18985
|
-
|
|
18986
|
-
var
|
|
18987
|
-
function
|
|
19363
|
+
validate188.evaluated = { "props": { "type": true, "openapiUri": true, "deduplicate": true, "skipProperties": true, "skip": true }, "dynamicProps": false, "dynamicItems": false };
|
|
19364
|
+
var schema192 = { "type": "object", "properties": { "failOn": { "enum": ["off", "info", "warn", "error"], "default": "error" }, "maxWarnings": { "type": "number", "minimum": 0 }, "maxErrors": { "type": "number", "minimum": 0 }, "rules": { "type": "object", "additionalProperties": { "enum": ["error", "warn", "info", "off"] } }, "ignored": { "type": "object", "additionalProperties": { "$ref": "#/$defs/diagnosticIgnoreConfig" } } }, "additionalProperties": false };
|
|
19365
|
+
function validate193(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
18988
19366
|
let vErrors = null;
|
|
18989
19367
|
let errors = 0;
|
|
18990
|
-
const evaluated0 =
|
|
19368
|
+
const evaluated0 = validate193.evaluated;
|
|
18991
19369
|
if (evaluated0.dynamicProps) {
|
|
18992
19370
|
evaluated0.props = void 0;
|
|
18993
19371
|
}
|
|
@@ -19212,15 +19590,15 @@ function validate191(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19212
19590
|
}
|
|
19213
19591
|
}
|
|
19214
19592
|
}
|
|
19215
|
-
|
|
19593
|
+
validate193.errors = vErrors;
|
|
19216
19594
|
evaluated0.props = props0;
|
|
19217
19595
|
return errors === 0;
|
|
19218
19596
|
}
|
|
19219
|
-
|
|
19220
|
-
function
|
|
19597
|
+
validate193.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
19598
|
+
function validate192(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19221
19599
|
let vErrors = null;
|
|
19222
19600
|
let errors = 0;
|
|
19223
|
-
const evaluated0 =
|
|
19601
|
+
const evaluated0 = validate192.evaluated;
|
|
19224
19602
|
if (evaluated0.dynamicProps) {
|
|
19225
19603
|
evaluated0.props = void 0;
|
|
19226
19604
|
}
|
|
@@ -19288,8 +19666,8 @@ function validate190(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19288
19666
|
if (Array.isArray(data)) {
|
|
19289
19667
|
const len0 = data.length;
|
|
19290
19668
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
19291
|
-
if (!
|
|
19292
|
-
vErrors = vErrors === null ?
|
|
19669
|
+
if (!validate193(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData, dynamicAnchors })) {
|
|
19670
|
+
vErrors = vErrors === null ? validate193.errors : vErrors.concat(validate193.errors);
|
|
19293
19671
|
errors = vErrors.length;
|
|
19294
19672
|
}
|
|
19295
19673
|
}
|
|
@@ -19325,15 +19703,15 @@ function validate190(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19325
19703
|
}
|
|
19326
19704
|
}
|
|
19327
19705
|
}
|
|
19328
|
-
|
|
19706
|
+
validate192.errors = vErrors;
|
|
19329
19707
|
evaluated0.items = items0;
|
|
19330
19708
|
return errors === 0;
|
|
19331
19709
|
}
|
|
19332
|
-
|
|
19333
|
-
function
|
|
19710
|
+
validate192.evaluated = { "dynamicProps": false, "dynamicItems": true };
|
|
19711
|
+
function validate191(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19334
19712
|
let vErrors = null;
|
|
19335
19713
|
let errors = 0;
|
|
19336
|
-
const evaluated0 =
|
|
19714
|
+
const evaluated0 = validate191.evaluated;
|
|
19337
19715
|
if (evaluated0.dynamicProps) {
|
|
19338
19716
|
evaluated0.props = void 0;
|
|
19339
19717
|
}
|
|
@@ -19355,7 +19733,7 @@ function validate189(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19355
19733
|
if (data.failOn !== void 0) {
|
|
19356
19734
|
let data0 = data.failOn;
|
|
19357
19735
|
if (!(data0 === "off" || data0 === "info" || data0 === "warn" || data0 === "error")) {
|
|
19358
|
-
const err1 = { instancePath: instancePath + "/failOn", schemaPath: "#/properties/failOn/enum", keyword: "enum", params: { allowedValues:
|
|
19736
|
+
const err1 = { instancePath: instancePath + "/failOn", schemaPath: "#/properties/failOn/enum", keyword: "enum", params: { allowedValues: schema192.properties.failOn.enum }, message: "must be equal to one of the allowed values" };
|
|
19359
19737
|
if (vErrors === null) {
|
|
19360
19738
|
vErrors = [err1];
|
|
19361
19739
|
} else {
|
|
@@ -19444,7 +19822,7 @@ function validate189(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19444
19822
|
for (const key1 in data3) {
|
|
19445
19823
|
let data4 = data3[key1];
|
|
19446
19824
|
if (!(data4 === "error" || data4 === "warn" || data4 === "info" || data4 === "off")) {
|
|
19447
|
-
const err6 = { instancePath: instancePath + "/rules/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/rules/additionalProperties/enum", keyword: "enum", params: { allowedValues:
|
|
19825
|
+
const err6 = { instancePath: instancePath + "/rules/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/rules/additionalProperties/enum", keyword: "enum", params: { allowedValues: schema192.properties.rules.additionalProperties.enum }, message: "must be equal to one of the allowed values" };
|
|
19448
19826
|
if (vErrors === null) {
|
|
19449
19827
|
vErrors = [err6];
|
|
19450
19828
|
} else {
|
|
@@ -19467,8 +19845,8 @@ function validate189(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19467
19845
|
let data5 = data.ignored;
|
|
19468
19846
|
if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
|
|
19469
19847
|
for (const key2 in data5) {
|
|
19470
|
-
if (!
|
|
19471
|
-
vErrors = vErrors === null ?
|
|
19848
|
+
if (!validate192(data5[key2], { instancePath: instancePath + "/ignored/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data5, parentDataProperty: key2, rootData, dynamicAnchors })) {
|
|
19849
|
+
vErrors = vErrors === null ? validate192.errors : vErrors.concat(validate192.errors);
|
|
19472
19850
|
errors = vErrors.length;
|
|
19473
19851
|
}
|
|
19474
19852
|
}
|
|
@@ -19491,10 +19869,10 @@ function validate189(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
19491
19869
|
}
|
|
19492
19870
|
errors++;
|
|
19493
19871
|
}
|
|
19494
|
-
|
|
19872
|
+
validate191.errors = vErrors;
|
|
19495
19873
|
return errors === 0;
|
|
19496
19874
|
}
|
|
19497
|
-
|
|
19875
|
+
validate191.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
19498
19876
|
function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
19499
19877
|
;
|
|
19500
19878
|
let vErrors = null;
|
|
@@ -19887,8 +20265,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19887
20265
|
}
|
|
19888
20266
|
}
|
|
19889
20267
|
if (data.clientSettings !== void 0) {
|
|
19890
|
-
if (!
|
|
19891
|
-
vErrors = vErrors === null ?
|
|
20268
|
+
if (!validate148(data.clientSettings, { instancePath: instancePath + "/clientSettings", parentData: data, parentDataProperty: "clientSettings", rootData, dynamicAnchors })) {
|
|
20269
|
+
vErrors = vErrors === null ? validate148.errors : vErrors.concat(validate148.errors);
|
|
19892
20270
|
errors = vErrors.length;
|
|
19893
20271
|
}
|
|
19894
20272
|
}
|
|
@@ -19897,8 +20275,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19897
20275
|
if (Array.isArray(data18)) {
|
|
19898
20276
|
const len1 = data18.length;
|
|
19899
20277
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
19900
|
-
if (!
|
|
19901
|
-
vErrors = vErrors === null ?
|
|
20278
|
+
if (!validate152(data18[i1], { instancePath: instancePath + "/pagination/" + i1, parentData: data18, parentDataProperty: i1, rootData, dynamicAnchors })) {
|
|
20279
|
+
vErrors = vErrors === null ? validate152.errors : vErrors.concat(validate152.errors);
|
|
19902
20280
|
errors = vErrors.length;
|
|
19903
20281
|
}
|
|
19904
20282
|
}
|
|
@@ -19913,14 +20291,14 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19913
20291
|
}
|
|
19914
20292
|
}
|
|
19915
20293
|
if (data.querySettings !== void 0) {
|
|
19916
|
-
if (!
|
|
19917
|
-
vErrors = vErrors === null ?
|
|
20294
|
+
if (!validate158(data.querySettings, { instancePath: instancePath + "/querySettings", parentData: data, parentDataProperty: "querySettings", rootData, dynamicAnchors })) {
|
|
20295
|
+
vErrors = vErrors === null ? validate158.errors : vErrors.concat(validate158.errors);
|
|
19918
20296
|
errors = vErrors.length;
|
|
19919
20297
|
}
|
|
19920
20298
|
}
|
|
19921
20299
|
if (data.multipartSettings !== void 0) {
|
|
19922
|
-
if (!
|
|
19923
|
-
vErrors = vErrors === null ?
|
|
20300
|
+
if (!validate160(data.multipartSettings, { instancePath: instancePath + "/multipartSettings", parentData: data, parentDataProperty: "multipartSettings", rootData, dynamicAnchors })) {
|
|
20301
|
+
vErrors = vErrors === null ? validate160.errors : vErrors.concat(validate160.errors);
|
|
19924
20302
|
errors = vErrors.length;
|
|
19925
20303
|
}
|
|
19926
20304
|
}
|
|
@@ -20080,7 +20458,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20080
20458
|
}
|
|
20081
20459
|
}
|
|
20082
20460
|
if (!(data28 === "all" || data28 === "none" || data28 === "last")) {
|
|
20083
|
-
const err27 = { instancePath: instancePath + "/settings/positionalParams", schemaPath: "#/$defs/globalSettings/properties/positionalParams/enum", keyword: "enum", params: { allowedValues:
|
|
20461
|
+
const err27 = { instancePath: instancePath + "/settings/positionalParams", schemaPath: "#/$defs/globalSettings/properties/positionalParams/enum", keyword: "enum", params: { allowedValues: schema165.properties.positionalParams.enum }, message: "must be equal to one of the allowed values" };
|
|
20084
20462
|
if (vErrors === null) {
|
|
20085
20463
|
vErrors = [err27];
|
|
20086
20464
|
} else {
|
|
@@ -20117,7 +20495,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20117
20495
|
}
|
|
20118
20496
|
}
|
|
20119
20497
|
if (!(data29 === "config" || data29 === "openapi" || data29 === "crud")) {
|
|
20120
|
-
const err29 = { instancePath: instancePath + "/settings/ordering", schemaPath: "#/$defs/globalSettings/properties/ordering/enum", keyword: "enum", params: { allowedValues:
|
|
20498
|
+
const err29 = { instancePath: instancePath + "/settings/ordering", schemaPath: "#/$defs/globalSettings/properties/ordering/enum", keyword: "enum", params: { allowedValues: schema165.properties.ordering.enum }, message: "must be equal to one of the allowed values" };
|
|
20121
20499
|
if (vErrors === null) {
|
|
20122
20500
|
vErrors = [err29];
|
|
20123
20501
|
} else {
|
|
@@ -20191,14 +20569,14 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20191
20569
|
}
|
|
20192
20570
|
}
|
|
20193
20571
|
if (data.openapi !== void 0) {
|
|
20194
|
-
if (!
|
|
20195
|
-
vErrors = vErrors === null ?
|
|
20572
|
+
if (!validate162(data.openapi, { instancePath: instancePath + "/openapi", parentData: data, parentDataProperty: "openapi", rootData, dynamicAnchors })) {
|
|
20573
|
+
vErrors = vErrors === null ? validate162.errors : vErrors.concat(validate162.errors);
|
|
20196
20574
|
errors = vErrors.length;
|
|
20197
20575
|
}
|
|
20198
20576
|
}
|
|
20199
20577
|
if (data.grpc !== void 0) {
|
|
20200
|
-
if (!
|
|
20201
|
-
vErrors = vErrors === null ?
|
|
20578
|
+
if (!validate178(data.grpc, { instancePath: instancePath + "/grpc", parentData: data, parentDataProperty: "grpc", rootData, dynamicAnchors })) {
|
|
20579
|
+
vErrors = vErrors === null ? validate178.errors : vErrors.concat(validate178.errors);
|
|
20202
20580
|
errors = vErrors.length;
|
|
20203
20581
|
}
|
|
20204
20582
|
}
|
|
@@ -20297,8 +20675,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20297
20675
|
}
|
|
20298
20676
|
}
|
|
20299
20677
|
if (data.streaming !== void 0) {
|
|
20300
|
-
if (!
|
|
20301
|
-
vErrors = vErrors === null ?
|
|
20678
|
+
if (!validate184(data.streaming, { instancePath: instancePath + "/streaming", parentData: data, parentDataProperty: "streaming", rootData, dynamicAnchors })) {
|
|
20679
|
+
vErrors = vErrors === null ? validate184.errors : vErrors.concat(validate184.errors);
|
|
20302
20680
|
errors = vErrors.length;
|
|
20303
20681
|
}
|
|
20304
20682
|
}
|
|
@@ -20306,8 +20684,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20306
20684
|
let data39 = data.models;
|
|
20307
20685
|
if (data39 && typeof data39 == "object" && !Array.isArray(data39)) {
|
|
20308
20686
|
for (const key4 in data39) {
|
|
20309
|
-
if (!
|
|
20310
|
-
vErrors = vErrors === null ?
|
|
20687
|
+
if (!validate188(data39[key4], { instancePath: instancePath + "/models/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data39, parentDataProperty: key4, rootData, dynamicAnchors })) {
|
|
20688
|
+
vErrors = vErrors === null ? validate188.errors : vErrors.concat(validate188.errors);
|
|
20311
20689
|
errors = vErrors.length;
|
|
20312
20690
|
}
|
|
20313
20691
|
}
|
|
@@ -20322,8 +20700,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20322
20700
|
}
|
|
20323
20701
|
}
|
|
20324
20702
|
if (data.diagnostics !== void 0) {
|
|
20325
|
-
if (!
|
|
20326
|
-
vErrors = vErrors === null ?
|
|
20703
|
+
if (!validate191(data.diagnostics, { instancePath: instancePath + "/diagnostics", parentData: data, parentDataProperty: "diagnostics", rootData, dynamicAnchors })) {
|
|
20704
|
+
vErrors = vErrors === null ? validate191.errors : vErrors.concat(validate191.errors);
|
|
20327
20705
|
errors = vErrors.length;
|
|
20328
20706
|
}
|
|
20329
20707
|
}
|
|
@@ -20340,10 +20718,10 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20340
20718
|
return errors === 0;
|
|
20341
20719
|
}
|
|
20342
20720
|
validate20.evaluated = { "props": { "organization": true, "generatorVersion": true, "resources": true, "readme": true, "customCasings": true, "targets": true, "environments": true, "environmentOrder": true, "clientSettings": true, "pagination": true, "querySettings": true, "multipartSettings": true, "settings": true, "openapi": true, "grpc": true, "errors": true, "ignoredEndpoints": true, "streaming": true, "models": true, "diagnostics": true }, "dynamicProps": false, "dynamicItems": false };
|
|
20343
|
-
function
|
|
20721
|
+
function validate198(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
20344
20722
|
let vErrors = null;
|
|
20345
20723
|
let errors = 0;
|
|
20346
|
-
const evaluated0 =
|
|
20724
|
+
const evaluated0 = validate198.evaluated;
|
|
20347
20725
|
if (evaluated0.dynamicProps) {
|
|
20348
20726
|
evaluated0.props = void 0;
|
|
20349
20727
|
}
|
|
@@ -20364,8 +20742,8 @@ function validate196(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
20364
20742
|
let data0 = data.opts;
|
|
20365
20743
|
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
20366
20744
|
for (const key0 in data0) {
|
|
20367
|
-
if (!
|
|
20368
|
-
vErrors = vErrors === null ?
|
|
20745
|
+
if (!validate149(data0[key0], { instancePath: instancePath + "/opts/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data0, parentDataProperty: key0, rootData, dynamicAnchors })) {
|
|
20746
|
+
vErrors = vErrors === null ? validate149.errors : vErrors.concat(validate149.errors);
|
|
20369
20747
|
errors = vErrors.length;
|
|
20370
20748
|
}
|
|
20371
20749
|
}
|
|
@@ -20577,7 +20955,7 @@ function validate196(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
20577
20955
|
if (data.emptyResponseAccept !== void 0) {
|
|
20578
20956
|
let data10 = data.emptyResponseAccept;
|
|
20579
20957
|
if (!(data10 === "wildcard" || data10 === "inherit")) {
|
|
20580
|
-
const err10 = { instancePath: instancePath + "/emptyResponseAccept", schemaPath: "#/properties/emptyResponseAccept/enum", keyword: "enum", params: { allowedValues:
|
|
20958
|
+
const err10 = { instancePath: instancePath + "/emptyResponseAccept", schemaPath: "#/properties/emptyResponseAccept/enum", keyword: "enum", params: { allowedValues: schema141.properties.emptyResponseAccept.enum }, message: "must be equal to one of the allowed values" };
|
|
20581
20959
|
if (vErrors === null) {
|
|
20582
20960
|
vErrors = [err10];
|
|
20583
20961
|
} else {
|
|
@@ -20804,34 +21182,34 @@ function validate196(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
20804
21182
|
}
|
|
20805
21183
|
errors++;
|
|
20806
21184
|
}
|
|
20807
|
-
|
|
21185
|
+
validate198.errors = vErrors;
|
|
20808
21186
|
return errors === 0;
|
|
20809
21187
|
}
|
|
20810
|
-
|
|
20811
|
-
function
|
|
21188
|
+
validate198.evaluated = { "props": { "opts": true, "baseUrlAliases": true, "defaultHeaders": true, "defaultClientName": true, "defaultClientExampleName": true, "defaultEnvPrefix": true, "idempotencyHeader": true, "emptyResponseAccept": true, "defaultTimeout": true, "defaultRetries": true, "responseHeaders": true }, "dynamicProps": false, "dynamicItems": false };
|
|
21189
|
+
function validate197(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
20812
21190
|
;
|
|
20813
21191
|
let vErrors = null;
|
|
20814
21192
|
let errors = 0;
|
|
20815
|
-
const evaluated0 =
|
|
21193
|
+
const evaluated0 = validate197.evaluated;
|
|
20816
21194
|
if (evaluated0.dynamicProps) {
|
|
20817
21195
|
evaluated0.props = void 0;
|
|
20818
21196
|
}
|
|
20819
21197
|
if (evaluated0.dynamicItems) {
|
|
20820
21198
|
evaluated0.items = void 0;
|
|
20821
21199
|
}
|
|
20822
|
-
if (!
|
|
20823
|
-
vErrors = vErrors === null ?
|
|
21200
|
+
if (!validate198(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
21201
|
+
vErrors = vErrors === null ? validate198.errors : vErrors.concat(validate198.errors);
|
|
20824
21202
|
errors = vErrors.length;
|
|
20825
21203
|
}
|
|
20826
|
-
|
|
21204
|
+
validate197.errors = vErrors;
|
|
20827
21205
|
return errors === 0;
|
|
20828
21206
|
}
|
|
20829
|
-
|
|
20830
|
-
function
|
|
21207
|
+
validate197.evaluated = { "props": { "opts": true, "baseUrlAliases": true, "defaultHeaders": true, "defaultClientName": true, "defaultClientExampleName": true, "defaultEnvPrefix": true, "idempotencyHeader": true, "emptyResponseAccept": true, "defaultTimeout": true, "defaultRetries": true, "responseHeaders": true }, "dynamicProps": false, "dynamicItems": false };
|
|
21208
|
+
function validate201(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
20831
21209
|
;
|
|
20832
21210
|
let vErrors = null;
|
|
20833
21211
|
let errors = 0;
|
|
20834
|
-
const evaluated0 =
|
|
21212
|
+
const evaluated0 = validate201.evaluated;
|
|
20835
21213
|
if (evaluated0.dynamicProps) {
|
|
20836
21214
|
evaluated0.props = void 0;
|
|
20837
21215
|
}
|
|
@@ -20992,7 +21370,7 @@ function validate199(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
20992
21370
|
}
|
|
20993
21371
|
}
|
|
20994
21372
|
if (!(data5 === "all" || data5 === "none" || data5 === "last")) {
|
|
20995
|
-
const err6 = { instancePath: instancePath + "/positionalParams", schemaPath: "https://registry.scalar.com/@scalar/schemas/sdk-config#/$defs/globalSettings/properties/positionalParams/enum", keyword: "enum", params: { allowedValues:
|
|
21373
|
+
const err6 = { instancePath: instancePath + "/positionalParams", schemaPath: "https://registry.scalar.com/@scalar/schemas/sdk-config#/$defs/globalSettings/properties/positionalParams/enum", keyword: "enum", params: { allowedValues: schema165.properties.positionalParams.enum }, message: "must be equal to one of the allowed values" };
|
|
20996
21374
|
if (vErrors === null) {
|
|
20997
21375
|
vErrors = [err6];
|
|
20998
21376
|
} else {
|
|
@@ -21029,7 +21407,7 @@ function validate199(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
21029
21407
|
}
|
|
21030
21408
|
}
|
|
21031
21409
|
if (!(data6 === "config" || data6 === "openapi" || data6 === "crud")) {
|
|
21032
|
-
const err8 = { instancePath: instancePath + "/ordering", schemaPath: "https://registry.scalar.com/@scalar/schemas/sdk-config#/$defs/globalSettings/properties/ordering/enum", keyword: "enum", params: { allowedValues:
|
|
21410
|
+
const err8 = { instancePath: instancePath + "/ordering", schemaPath: "https://registry.scalar.com/@scalar/schemas/sdk-config#/$defs/globalSettings/properties/ordering/enum", keyword: "enum", params: { allowedValues: schema165.properties.ordering.enum }, message: "must be equal to one of the allowed values" };
|
|
21033
21411
|
if (vErrors === null) {
|
|
21034
21412
|
vErrors = [err8];
|
|
21035
21413
|
} else {
|
|
@@ -21101,14 +21479,14 @@ function validate199(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
21101
21479
|
}
|
|
21102
21480
|
errors++;
|
|
21103
21481
|
}
|
|
21104
|
-
|
|
21482
|
+
validate201.errors = vErrors;
|
|
21105
21483
|
return errors === 0;
|
|
21106
21484
|
}
|
|
21107
|
-
|
|
21108
|
-
function
|
|
21485
|
+
validate201.evaluated = { "props": { "agentSkill": true, "fileHeader": true, "license": true, "unwrapResponseFields": true, "positionalParams": true, "ordering": true, "requireWebsocketDependencies": true, "unwrapMultipropertyResponseFields": true }, "dynamicProps": false, "dynamicItems": false };
|
|
21486
|
+
function validate203(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
21109
21487
|
let vErrors = null;
|
|
21110
21488
|
let errors = 0;
|
|
21111
|
-
const evaluated0 =
|
|
21489
|
+
const evaluated0 = validate203.evaluated;
|
|
21112
21490
|
if (evaluated0.dynamicProps) {
|
|
21113
21491
|
evaluated0.props = void 0;
|
|
21114
21492
|
}
|
|
@@ -21211,7 +21589,7 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
21211
21589
|
if (data.type !== void 0) {
|
|
21212
21590
|
let data2 = data.type;
|
|
21213
21591
|
if (!(data2 === "cursor" || data2 === "cursorId" || data2 === "cursorUrl" || data2 === "fakePage" || data2 === "offset" || data2 === "pageNumber")) {
|
|
21214
|
-
const err6 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/paginationType/enum", keyword: "enum", params: { allowedValues:
|
|
21592
|
+
const err6 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/paginationType/enum", keyword: "enum", params: { allowedValues: schema146.enum }, message: "must be equal to one of the allowed values" };
|
|
21215
21593
|
if (vErrors === null) {
|
|
21216
21594
|
vErrors = [err6];
|
|
21217
21595
|
} else {
|
|
@@ -21223,7 +21601,7 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
21223
21601
|
if (data.paramLocation !== void 0) {
|
|
21224
21602
|
let data3 = data.paramLocation;
|
|
21225
21603
|
if (!(data3 === "query" || data3 === "body")) {
|
|
21226
|
-
const err7 = { instancePath: instancePath + "/paramLocation", schemaPath: "#/$defs/paginationParamLocation/enum", keyword: "enum", params: { allowedValues:
|
|
21604
|
+
const err7 = { instancePath: instancePath + "/paramLocation", schemaPath: "#/$defs/paginationParamLocation/enum", keyword: "enum", params: { allowedValues: schema147.enum }, message: "must be equal to one of the allowed values" };
|
|
21227
21605
|
if (vErrors === null) {
|
|
21228
21606
|
vErrors = [err7];
|
|
21229
21607
|
} else {
|
|
@@ -21263,8 +21641,8 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
21263
21641
|
let data5 = data.request;
|
|
21264
21642
|
if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
|
|
21265
21643
|
for (const key0 in data5) {
|
|
21266
|
-
if (!
|
|
21267
|
-
vErrors = vErrors === null ?
|
|
21644
|
+
if (!validate153(data5[key0], { instancePath: instancePath + "/request/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data5, parentDataProperty: key0, rootData, dynamicAnchors })) {
|
|
21645
|
+
vErrors = vErrors === null ? validate153.errors : vErrors.concat(validate153.errors);
|
|
21268
21646
|
errors = vErrors.length;
|
|
21269
21647
|
}
|
|
21270
21648
|
}
|
|
@@ -21282,8 +21660,8 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
21282
21660
|
let data7 = data.response;
|
|
21283
21661
|
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
21284
21662
|
for (const key1 in data7) {
|
|
21285
|
-
if (!
|
|
21286
|
-
vErrors = vErrors === null ?
|
|
21663
|
+
if (!validate155(data7[key1], { instancePath: instancePath + "/response/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data7, parentDataProperty: key1, rootData, dynamicAnchors })) {
|
|
21664
|
+
vErrors = vErrors === null ? validate155.errors : vErrors.concat(validate155.errors);
|
|
21287
21665
|
errors = vErrors.length;
|
|
21288
21666
|
}
|
|
21289
21667
|
}
|
|
@@ -21306,31 +21684,31 @@ function validate201(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
21306
21684
|
}
|
|
21307
21685
|
errors++;
|
|
21308
21686
|
}
|
|
21309
|
-
|
|
21687
|
+
validate203.errors = vErrors;
|
|
21310
21688
|
return errors === 0;
|
|
21311
21689
|
}
|
|
21312
|
-
|
|
21313
|
-
function
|
|
21690
|
+
validate203.evaluated = { "props": { "name": true, "description": true, "type": true, "paramLocation": true, "continueOnEmptyItems": true, "request": true, "response": true }, "dynamicProps": false, "dynamicItems": false };
|
|
21691
|
+
function validate202(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
21314
21692
|
;
|
|
21315
21693
|
let vErrors = null;
|
|
21316
21694
|
let errors = 0;
|
|
21317
|
-
const evaluated0 =
|
|
21695
|
+
const evaluated0 = validate202.evaluated;
|
|
21318
21696
|
if (evaluated0.dynamicProps) {
|
|
21319
21697
|
evaluated0.props = void 0;
|
|
21320
21698
|
}
|
|
21321
21699
|
if (evaluated0.dynamicItems) {
|
|
21322
21700
|
evaluated0.items = void 0;
|
|
21323
21701
|
}
|
|
21324
|
-
if (!
|
|
21325
|
-
vErrors = vErrors === null ?
|
|
21702
|
+
if (!validate203(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors })) {
|
|
21703
|
+
vErrors = vErrors === null ? validate203.errors : vErrors.concat(validate203.errors);
|
|
21326
21704
|
errors = vErrors.length;
|
|
21327
21705
|
}
|
|
21328
|
-
|
|
21706
|
+
validate202.errors = vErrors;
|
|
21329
21707
|
return errors === 0;
|
|
21330
21708
|
}
|
|
21331
|
-
|
|
21709
|
+
validate202.evaluated = { "props": { "name": true, "description": true, "type": true, "paramLocation": true, "continueOnEmptyItems": true, "request": true, "response": true }, "dynamicProps": false, "dynamicItems": false };
|
|
21332
21710
|
|
|
21333
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
21711
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/extension-values.js
|
|
21334
21712
|
var extensionReader = (validate) => (candidate) => {
|
|
21335
21713
|
const copy = plainCopy(candidate, 0, { budget: MAX_EXTENSION_NODES });
|
|
21336
21714
|
return copy !== void 0 && validate(copy) ? copy : void 0;
|
|
@@ -21369,13 +21747,13 @@ var plainCopy = (value, depth, state) => {
|
|
|
21369
21747
|
return out;
|
|
21370
21748
|
};
|
|
21371
21749
|
|
|
21372
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
21750
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/client-settings.js
|
|
21373
21751
|
var readClientSettings = extensionReader(validateClientSettings);
|
|
21374
21752
|
|
|
21375
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
21753
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/pagination.js
|
|
21376
21754
|
var readValidScheme = extensionReader(validatePaginationConfig);
|
|
21377
21755
|
|
|
21378
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
21756
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/operation-names.js
|
|
21379
21757
|
var HTTP_VERB_TO_METHOD_WORD = {
|
|
21380
21758
|
post: "create",
|
|
21381
21759
|
put: "update",
|
|
@@ -21412,13 +21790,13 @@ var METHOD_VERB_WORDS = /* @__PURE__ */ new Set([
|
|
|
21412
21790
|
"read"
|
|
21413
21791
|
]);
|
|
21414
21792
|
|
|
21415
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
21793
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/generate-default-config/settings.js
|
|
21416
21794
|
var readGlobalSettings = extensionReader(validateGlobalSettings);
|
|
21417
21795
|
|
|
21418
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
21796
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/publish-auth-methods.js
|
|
21419
21797
|
var PUBLISH_AUTH_METHODS = new Set(scalar_sdk_config_schema_default.$defs.publishAuthMethod.enum);
|
|
21420
21798
|
|
|
21421
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
21799
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/dart-package-identifier.js
|
|
21422
21800
|
var dartPackageIdentifier = (name, fallback = "sdk") => {
|
|
21423
21801
|
const clean = (input) => input.replace(/([a-z0-9])([A-Z])/gu, "$1_$2").toLowerCase().replace(/[^a-z0-9_]+/gu, "_").replace(/^_+|_+$/gu, "");
|
|
21424
21802
|
const reducedFallback = clean(fallback);
|
|
@@ -21427,14 +21805,14 @@ var dartPackageIdentifier = (name, fallback = "sdk") => {
|
|
|
21427
21805
|
return /^[a-z_]/u.test(pkg) ? pkg : `${safeFallback}_${pkg}`;
|
|
21428
21806
|
};
|
|
21429
21807
|
|
|
21430
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
21808
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/dotnet-package-identifier.js
|
|
21431
21809
|
var dotnetPackageIdentifier = (name, fallback = "Sdk") => {
|
|
21432
21810
|
const parts = name.replace(/([a-z0-9])([A-Z])/gu, "$1 $2").split(/[^a-zA-Z0-9]+/u).filter(Boolean);
|
|
21433
21811
|
const pascal = parts.map((part) => `${part.charAt(0).toUpperCase()}${part.slice(1)}`).join("");
|
|
21434
21812
|
return pascal.length === 0 || /^\d/u.test(pascal) ? fallback : pascal;
|
|
21435
21813
|
};
|
|
21436
21814
|
|
|
21437
|
-
// ../../node_modules/.pnpm/@scalar+sdk-config@0.
|
|
21815
|
+
// ../../node_modules/.pnpm/@scalar+sdk-config@0.57.0_typescript@7.0.2/node_modules/@scalar/sdk-config/dist/swift-package-identifier.js
|
|
21438
21816
|
var swiftPackageIdentifier = (name, fallback = "Sdk") => {
|
|
21439
21817
|
const pascal = pascalCase(name);
|
|
21440
21818
|
return /^[A-Za-z]/u.test(pascal) ? pascal : pascalCase(fallback);
|