@scalar/workspace-store 0.73.0 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/README.md +10 -0
- package/dist/client.d.ts +3 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +77 -10
- package/dist/entities/auth/schema.d.ts +405 -40
- package/dist/entities/auth/schema.d.ts.map +1 -1
- package/dist/helpers/async-api-schema-resources/load-inline.d.ts +7 -0
- package/dist/helpers/async-api-schema-resources/load-inline.d.ts.map +1 -0
- package/dist/helpers/async-api-schema-resources/load-inline.js +31 -0
- package/dist/helpers/async-api-schema-resources/protobuf-imports.d.ts +8 -0
- package/dist/helpers/async-api-schema-resources/protobuf-imports.d.ts.map +1 -0
- package/dist/helpers/async-api-schema-resources/protobuf-imports.js +25 -0
- package/dist/helpers/async-api-schema-resources/raml-source.d.ts +12 -0
- package/dist/helpers/async-api-schema-resources/raml-source.d.ts.map +1 -0
- package/dist/helpers/async-api-schema-resources/raml-source.js +32 -0
- package/dist/helpers/async-api-schema-resources/resolver.d.ts +12 -0
- package/dist/helpers/async-api-schema-resources/resolver.d.ts.map +1 -0
- package/dist/helpers/async-api-schema-resources/resolver.js +31 -0
- package/dist/helpers/async-api-schema-resources/resources.d.ts +13 -0
- package/dist/helpers/async-api-schema-resources/resources.d.ts.map +1 -0
- package/dist/helpers/async-api-schema-resources/resources.js +133 -0
- package/dist/helpers/async-api-schema-resources/schema-resource-path.d.ts +3 -0
- package/dist/helpers/async-api-schema-resources/schema-resource-path.d.ts.map +1 -0
- package/dist/helpers/async-api-schema-resources/schema-resource-path.js +9 -0
- package/dist/helpers/async-api-schema-resources/schema-wrappers.d.ts +9 -0
- package/dist/helpers/async-api-schema-resources/schema-wrappers.d.ts.map +1 -0
- package/dist/helpers/async-api-schema-resources/schema-wrappers.js +69 -0
- package/dist/helpers/async-api-schema-resources/track-edits.d.ts +3 -0
- package/dist/helpers/async-api-schema-resources/track-edits.d.ts.map +1 -0
- package/dist/helpers/async-api-schema-resources/track-edits.js +46 -0
- package/dist/helpers/compact-upgrade-metadata.d.ts +3 -0
- package/dist/helpers/compact-upgrade-metadata.d.ts.map +1 -0
- package/dist/helpers/compact-upgrade-metadata.js +71 -0
- package/dist/helpers/is-file-schema.js +1 -1
- package/dist/helpers/querystring-parameter.d.ts +3 -1
- package/dist/helpers/querystring-parameter.d.ts.map +1 -1
- package/dist/helpers/querystring-parameter.js +2 -2
- package/dist/helpers/resolve-async-api-schema.d.ts +2 -0
- package/dist/helpers/resolve-async-api-schema.d.ts.map +1 -1
- package/dist/helpers/resolve-async-api-schema.js +25 -1
- package/dist/helpers/use-async-api-schema-resources.d.ts +12 -0
- package/dist/helpers/use-async-api-schema-resources.d.ts.map +1 -0
- package/dist/helpers/use-async-api-schema-resources.js +24 -0
- package/dist/mutators/operation/parameters.d.ts.map +1 -1
- package/dist/mutators/operation/parameters.js +9 -1
- package/dist/mutators/operation/reset-request-body.d.ts.map +1 -1
- package/dist/mutators/operation/reset-request-body.js +3 -1
- package/dist/navigation/helpers/get-x-badges.d.ts +10 -0
- package/dist/navigation/helpers/get-x-badges.d.ts.map +1 -0
- package/dist/navigation/helpers/get-x-badges.js +26 -0
- package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.js +3 -0
- package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-schemas.js +3 -0
- package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-tags.js +3 -0
- package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-webhooks.js +3 -0
- package/dist/plugins/bundler/async-api-schema-resources.d.ts +4 -0
- package/dist/plugins/bundler/async-api-schema-resources.d.ts.map +1 -0
- package/dist/plugins/bundler/async-api-schema-resources.js +20 -0
- package/dist/plugins/bundler/index.d.ts +1 -1
- package/dist/plugins/bundler/index.d.ts.map +1 -1
- package/dist/plugins/bundler/index.js +7 -4
- package/dist/plugins/bundler/openapi-document.d.ts +5 -1
- package/dist/plugins/bundler/openapi-document.d.ts.map +1 -1
- package/dist/plugins/bundler/openapi-document.js +7 -3
- package/dist/plugins/bundler/upgrade-documents.d.ts +4 -0
- package/dist/plugins/bundler/upgrade-documents.d.ts.map +1 -0
- package/dist/plugins/bundler/upgrade-documents.js +357 -0
- package/dist/request-example/builder/body/build-request-body.d.ts +1 -1
- package/dist/request-example/builder/body/build-request-body.d.ts.map +1 -1
- package/dist/request-example/builder/body/build-request-body.js +2 -2
- package/dist/request-example/builder/body/get-request-body-example.d.ts +2 -2
- package/dist/request-example/builder/body/get-request-body-example.d.ts.map +1 -1
- package/dist/request-example/builder/body/get-request-body-example.js +7 -3
- package/dist/request-example/builder/build-request.d.ts.map +1 -1
- package/dist/request-example/builder/build-request.js +3 -2
- package/dist/request-example/builder/helpers/array-contains.d.ts +15 -0
- package/dist/request-example/builder/helpers/array-contains.d.ts.map +1 -0
- package/dist/request-example/builder/helpers/array-contains.js +199 -0
- package/dist/request-example/builder/helpers/get-example-from-schema.d.ts +9 -0
- package/dist/request-example/builder/helpers/get-example-from-schema.d.ts.map +1 -1
- package/dist/request-example/builder/helpers/get-example-from-schema.js +162 -31
- package/dist/request-example/builder/request-factory.d.ts +5 -1
- package/dist/request-example/builder/request-factory.d.ts.map +1 -1
- package/dist/request-example/builder/request-factory.js +5 -3
- package/dist/request-example/builder/security/build-request-security.d.ts +6 -4
- package/dist/request-example/builder/security/build-request-security.d.ts.map +1 -1
- package/dist/request-example/builder/security/build-request-security.js +1 -0
- package/dist/schemas/extensions/security/x-scalar-token-prefix.d.ts +11 -0
- package/dist/schemas/extensions/security/x-scalar-token-prefix.d.ts.map +1 -0
- package/dist/schemas/extensions/security/x-scalar-token-prefix.js +8 -0
- package/dist/schemas/navigation.d.ts +49 -0
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +5 -0
- package/dist/schemas/reference-config/index.d.ts +81 -8
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +81 -8
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +2835 -280
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.d.ts +62 -10
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +10 -2
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +4 -1
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js +2 -1
- package/dist/schemas/v3.2/openapi/index.d.ts.map +1 -1
- package/dist/schemas/v3.2/openapi/index.js +7 -2
- package/dist/schemas/v3.2/strict/openapi-document.d.ts +2835 -280
- package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/schema.d.ts +62 -10
- package/dist/schemas/v3.2/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/schema.js +10 -2
- package/dist/schemas/v3.2/strict/security-scheme.d.ts +4 -1
- package/dist/schemas/v3.2/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/security-scheme.js +2 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +33 -3
- package/package.json +16 -15
|
@@ -49,6 +49,8 @@ const OtherTypes = Type.Object({
|
|
|
49
49
|
});
|
|
50
50
|
const Extensions = compose(XScalarIgnoreSchema, XInternalSchema, XVariableSchema, XExamplesSchema, XEnumDescriptionsSchema, XEnumVarNamesSchema, XAdditionalPropertiesNameSchema, XOrderSchema, XTagsSchema);
|
|
51
51
|
const CorePropertiesWithSchema = Type.Object({
|
|
52
|
+
/** JSON Schema dialect for this schema resource. */
|
|
53
|
+
$schema: Type.Optional(Type.String()),
|
|
52
54
|
/**
|
|
53
55
|
* JSON Schema 2020-12 core reference keywords.
|
|
54
56
|
*
|
|
@@ -151,6 +153,12 @@ const StringValidationProperties = compose(Type.Object({
|
|
|
151
153
|
format: Type.Optional(Type.String()),
|
|
152
154
|
}), StringValidationKeywords);
|
|
153
155
|
const ArrayValidationKeywordsWithSchema = Type.Object({
|
|
156
|
+
/** Schema matched by a bounded number of array items. */
|
|
157
|
+
contains: Type.Optional(Type.Union([schemaOrReference, Type.Boolean()])),
|
|
158
|
+
/** Minimum matches; defaults to one when contains is present. */
|
|
159
|
+
minContains: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
160
|
+
/** Maximum matches; ignored without contains. */
|
|
161
|
+
maxContains: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
154
162
|
/** Maximum number of items in array. */
|
|
155
163
|
maxItems: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
156
164
|
/** Minimum number of items in array. */
|
|
@@ -158,9 +166,9 @@ const ArrayValidationKeywordsWithSchema = Type.Object({
|
|
|
158
166
|
/** Whether array items must be unique. */
|
|
159
167
|
uniqueItems: Type.Optional(Type.Boolean()),
|
|
160
168
|
/** Schema for array items. */
|
|
161
|
-
items: Type.Optional(schemaOrReference),
|
|
169
|
+
items: Type.Optional(Type.Union([schemaOrReference, Type.Boolean()])),
|
|
162
170
|
/** Schema for tuple validation. */
|
|
163
|
-
prefixItems: Type.Optional(Type.Array(schemaOrReference)),
|
|
171
|
+
prefixItems: Type.Optional(Type.Array(Type.Union([schemaOrReference, Type.Boolean()]))),
|
|
164
172
|
});
|
|
165
173
|
const ArrayValidationPropertiesWithSchema = compose(Type.Object({
|
|
166
174
|
type: Type.Literal('array'),
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { type XScalarIgnore } from '../../extensions/document/x-scalar-ignore.js';
|
|
2
2
|
import { type XDefaultScopes } from '../../extensions/security/x-default-scopes.js';
|
|
3
3
|
import { type XScalarCredentialPlaceholders } from '../../extensions/security/x-scalar-credential-placeholders.js';
|
|
4
|
+
import { type XScalarTokenPrefix } from '../../extensions/security/x-scalar-token-prefix.js';
|
|
4
5
|
import type { OAuthFlowsObject } from './oauthflows.js';
|
|
5
6
|
type Description = {
|
|
6
7
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
7
8
|
description?: string;
|
|
8
9
|
} & XScalarIgnore & XScalarCredentialPlaceholders;
|
|
9
|
-
export type ApiKeyObject = Description & {
|
|
10
|
+
export type ApiKeyObject = Description & XScalarTokenPrefix & {
|
|
10
11
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
11
12
|
type: 'apiKey';
|
|
12
13
|
/** REQUIRED. The name of the header, query or cookie parameter to be used. */
|
|
@@ -54,6 +55,8 @@ export declare const SecuritySchemeObjectSchemaDefinition: import("@scalar/typeb
|
|
|
54
55
|
mask: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
55
56
|
}>>>;
|
|
56
57
|
}>]>, import("@scalar/typebox").TObject<{
|
|
58
|
+
'x-scalar-token-prefix': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
59
|
+
}>, import("@scalar/typebox").TObject<{
|
|
57
60
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
58
61
|
type: import("@scalar/typebox").TLiteral<"apiKey">;
|
|
59
62
|
/** REQUIRED. The name of the header, query or cookie parameter to be used. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/security-scheme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,+CAA+C,CAAA;AACvG,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,gDAAgD,CAAA;AAC1G,OAAO,EACL,KAAK,6BAA6B,EAEnC,MAAM,gEAAgE,CAAA;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAcxE,KAAK,WAAW,GAAG;IACjB,qGAAqG;IACrG,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,GAAG,aAAa,GACf,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/security-scheme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,+CAA+C,CAAA;AACvG,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,gDAAgD,CAAA;AAC1G,OAAO,EACL,KAAK,6BAA6B,EAEnC,MAAM,gEAAgE,CAAA;AACvE,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,qDAAqD,CAAA;AACvH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAcxE,KAAK,WAAW,GAAG;IACjB,qGAAqG;IACrG,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,GAAG,aAAa,GACf,6BAA6B,CAAA;AAe/B,MAAM,MAAM,YAAY,GAAG,WAAW,GACpC,kBAAkB,GAAG;IACnB,4HAA4H;IAC5H,IAAI,EAAE,QAAQ,CAAA;IACd,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAA;IACZ,8FAA8F;IAC9F,EAAE,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAA;CAClC,CAAA;AAcH,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG;IACrC,4HAA4H;IAC5H,IAAI,EAAE,MAAM,CAAA;IACZ,gQAAgQ;IAChQ,MAAM,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC1B,uMAAuM;IACvM,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAUD,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IAC1C,4HAA4H;IAC5H,IAAI,EAAE,WAAW,CAAA;CAClB,CAAA;AAaD,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IACvC,4HAA4H;IAC5H,IAAI,EAAE,QAAQ,CAAA;IACd,6FAA6F;IAC7F,KAAK,EAAE,gBAAgB,CAAA;CACxB,GAAG,cAAc,CAAA;AAYlB,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAC9C,4HAA4H;IAC5H,IAAI,EAAE,eAAe,CAAA;IACrB,+FAA+F;IAC/F,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oCAAoC;IA9G7C,qGAAqG;;;;;;;;;;;;IAiBrG,4HAA4H;;IAE5H,8EAA8E;;IAE9E,8FAA8F;;;IArB9F,qGAAqG;;;;;;;;;;IAuCrG,4HAA4H;;IAE5H,gQAAgQ;;IAEhQ,uMAAuM;;;IA3CvM,qGAAqG;;;;;;;;;;IA4DrG,4HAA4H;;;IA5D5H,qGAAqG;;;;;;;;;;IAyErG,4HAA4H;;IAE5H,6FAA6F;;;;;IA3E7F,qGAAqG;;;;;;;;;;IA2FrG,4HAA4H;;IAE5H,+FAA+F;;MAuBjG,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG,UAAU,GAAG,eAAe,GAAG,YAAY,GAAG,mBAAmB,CAAA"}
|
|
@@ -3,6 +3,7 @@ import { compose } from '../../compose.js';
|
|
|
3
3
|
import { XScalarIgnoreSchema } from '../../extensions/document/x-scalar-ignore.js';
|
|
4
4
|
import { XDefaultScopesSchema } from '../../extensions/security/x-default-scopes.js';
|
|
5
5
|
import { XScalarCredentialPlaceholdersSchema, } from '../../extensions/security/x-scalar-credential-placeholders.js';
|
|
6
|
+
import { XScalarTokenPrefixSchema } from '../../extensions/security/x-scalar-token-prefix.js';
|
|
6
7
|
import { OAuthFlowsObjectRef } from './ref-definitions.js';
|
|
7
8
|
// Shared base for every security scheme: a description plus the ignore extension, so any
|
|
8
9
|
// scheme can be hidden from the auth UI with `x-scalar-ignore`. See documentation/openapi.md.
|
|
@@ -10,7 +11,7 @@ const DescriptionSchema = compose(Type.Object({
|
|
|
10
11
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
11
12
|
description: Type.Optional(Type.String()),
|
|
12
13
|
}), XScalarIgnoreSchema, XScalarCredentialPlaceholdersSchema);
|
|
13
|
-
const ApiKeySchema = compose(DescriptionSchema, Type.Object({
|
|
14
|
+
const ApiKeySchema = compose(DescriptionSchema, XScalarTokenPrefixSchema, Type.Object({
|
|
14
15
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
15
16
|
type: Type.Literal('apiKey'),
|
|
16
17
|
/** REQUIRED. The name of the header, query or cookie parameter to be used. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/openapi/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,MAAM,EAcZ,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/openapi/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,MAAM,EAcZ,MAAM,oBAAoB,CAAA;AAiD3B,0CAA0C;AAC1C,KAAK,qBAAqB,GAAG;IAC3B;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAC/B,CAAA;AAoED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,aAAc,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,KAAG,MA8M1E,CAAA;AAED,eAAO,MAAM,cAAc,aAAc,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,YAAW,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA63BjG,CAAA"}
|
|
@@ -40,6 +40,7 @@ import { XScalarCredentialsLocation } from '../../extensions/security/x-scalar-c
|
|
|
40
40
|
import { XScalarSecurityBody } from '../../extensions/security/x-scalar-security-body.js';
|
|
41
41
|
import { XScalarSecurityQuery } from '../../extensions/security/x-scalar-security-query.js';
|
|
42
42
|
import { XScalarAuthUrl, XScalarTokenUrl } from '../../extensions/security/x-scalar-security-secrets.js';
|
|
43
|
+
import { XScalarTokenPrefix } from '../../extensions/security/x-scalar-token-prefix.js';
|
|
43
44
|
import { XTokenName } from '../../extensions/security/x-tokenName.js';
|
|
44
45
|
import { XusePkce } from '../../extensions/security/x-use-pkce.js';
|
|
45
46
|
import { XScalarSelectedServer } from '../../extensions/server/x-scalar-selected-server.js';
|
|
@@ -178,11 +179,14 @@ export const generateSchemaObject = (maybeRef) => {
|
|
|
178
179
|
objectValidationKeywords,
|
|
179
180
|
], { typeName: 'ObjectSchemaObject' });
|
|
180
181
|
const arrayValidationKeywords = object({
|
|
182
|
+
contains: optional(union([boolean(), maybeRef(lazy(() => schema))])),
|
|
183
|
+
minContains: optional(number({ typeComment: 'Minimum number of items matching contains.' })),
|
|
184
|
+
maxContains: optional(number({ typeComment: 'Maximum number of items matching contains.' })),
|
|
181
185
|
maxItems: optional(number({ typeComment: 'Maximum number of items in array.' })),
|
|
182
186
|
minItems: optional(number({ typeComment: 'Minimum number of items in array.' })),
|
|
183
187
|
uniqueItems: optional(boolean({ typeComment: 'Whether array items must be unique.' })),
|
|
184
|
-
items: optional(maybeRef(lazy(() => schema))),
|
|
185
|
-
prefixItems: optional(array(maybeRef(lazy(() => schema)), { typeComment: 'Schema for tuple validation.' })),
|
|
188
|
+
items: optional(union([boolean(), maybeRef(lazy(() => schema))])),
|
|
189
|
+
prefixItems: optional(array(union([boolean(), maybeRef(lazy(() => schema))]), { typeComment: 'Schema for tuple validation.' })),
|
|
186
190
|
});
|
|
187
191
|
const arraySchema = intersection([
|
|
188
192
|
object({
|
|
@@ -322,6 +326,7 @@ export const generateSchema = (maybeRef, options = {}) => {
|
|
|
322
326
|
});
|
|
323
327
|
const apiKeySecurityScheme = object({
|
|
324
328
|
...securitySchemeBase.properties,
|
|
329
|
+
...XScalarTokenPrefix.properties,
|
|
325
330
|
type: literal('apiKey'),
|
|
326
331
|
name: string({ typeComment: 'REQUIRED. The name of the header, query or cookie parameter to be used.' }),
|
|
327
332
|
in: union([literal('query'), literal('header'), literal('cookie')], {
|