@scalar/workspace-store 0.72.0 → 0.74.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 +38 -0
- package/README.md +10 -0
- package/dist/client.d.ts +6 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +96 -34
- package/dist/entities/auth/schema.d.ts +235 -40
- package/dist/entities/auth/schema.d.ts.map +1 -1
- package/dist/helpers/async-api-schema-resources/load-inline.d.ts +5 -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 +71 -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/resources.d.ts +10 -0
- package/dist/helpers/async-api-schema-resources/resources.d.ts.map +1 -0
- package/dist/helpers/async-api-schema-resources/resources.js +124 -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/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 +23 -1
- package/dist/mutators/auth.d.ts.map +1 -1
- 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/traverse-plugin-document.d.ts +11 -0
- package/dist/navigation/helpers/traverse-plugin-document.d.ts.map +1 -0
- package/dist/navigation/helpers/traverse-plugin-document.js +24 -0
- package/dist/navigation/helpers/update-order-ids.d.ts.map +1 -1
- package/dist/navigation/helpers/update-order-ids.js +2 -1
- package/dist/navigation/index.d.ts +1 -0
- package/dist/navigation/index.d.ts.map +1 -1
- package/dist/navigation/index.js +1 -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 +9 -7
- 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/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 +6 -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 +30 -2
- package/dist/request-example/builder/request-factory.d.ts +3 -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/schemas/navigation.d.ts +32 -1
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +7 -0
- package/dist/schemas/plugin-document.d.ts +67 -0
- package/dist/schemas/plugin-document.d.ts.map +1 -0
- package/dist/schemas/plugin-document.js +20 -0
- package/dist/schemas/reference-config/index.d.ts +47 -8
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +47 -8
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/type-guards.d.ts +4 -2
- package/dist/schemas/type-guards.d.ts.map +1 -1
- package/dist/schemas/type-guards.js +7 -4
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +1645 -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.2/openapi/index.d.ts.map +1 -1
- package/dist/schemas/v3.2/openapi/index.js +5 -2
- package/dist/schemas/v3.2/strict/openapi-document.d.ts +1645 -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/workspace.d.ts +2 -1
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas.d.ts +1 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +33 -3
- package/package.json +17 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/entities/auth/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AA+BnD,QAAA,MAAM,mBAAmB;;IAGrB,sEAAsE;;;;;;IAKzE,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE9D,QAAA,MAAM,iBAAiB;;;;;;;;;IAOtB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAc1D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB3B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEtE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKhB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,WAAW,CAAC,CAAA;AAErD,8FAA8F;AAC9F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC9B,CAAA;AAEF,MAAM,MAAM,oBA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoMF,CAAA;AACxE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { LoaderPlugin } from '@scalar/json-magic/bundle';
|
|
2
|
+
import type { AsyncApiDocument } from '@scalar/types/asyncapi/3.1';
|
|
3
|
+
/** Prepare inline native schemas before server chunking; external AsyncAPI references stay deferred. */
|
|
4
|
+
export declare const loadInlineAsyncApiSchemaResources: (document: AsyncApiDocument, origin: string, loaders: LoaderPlugin[]) => Promise<void>;
|
|
5
|
+
//# sourceMappingURL=load-inline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-inline.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/load-inline.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAMlE,wGAAwG;AACxG,eAAO,MAAM,iCAAiC,aAClC,gBAAgB,UAClB,MAAM,WACL,YAAY,EAAE,KACtB,OAAO,CAAC,IAAI,CA0Cd,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { isObject } from '@scalar/helpers/object/is-object';
|
|
2
|
+
import { getResolvedAsyncApiRef } from '../get-resolved-async-api-ref.js';
|
|
3
|
+
import { resolveTraits } from '../resolve-traits.js';
|
|
4
|
+
import { createSchemaResourceLoader } from './resources.js';
|
|
5
|
+
/** Prepare inline native schemas before server chunking; external AsyncAPI references stay deferred. */
|
|
6
|
+
export const loadInlineAsyncApiSchemaResources = async (document, origin, loaders) => {
|
|
7
|
+
const load = createSchemaResourceLoader();
|
|
8
|
+
const legacy = /^2\./.test(document.asyncapi);
|
|
9
|
+
const schema = async (value) => {
|
|
10
|
+
const node = getResolvedAsyncApiRef(value);
|
|
11
|
+
if (!isObject(node) || typeof node.schemaFormat !== 'string')
|
|
12
|
+
return;
|
|
13
|
+
const resources = await load(node.schemaFormat, node.schema, origin, loaders);
|
|
14
|
+
if (resources)
|
|
15
|
+
node['x-scalar-schema-resources'] = resources;
|
|
16
|
+
};
|
|
17
|
+
const trait = async (value) => {
|
|
18
|
+
const node = getResolvedAsyncApiRef(value);
|
|
19
|
+
if (!isObject(node))
|
|
20
|
+
return;
|
|
21
|
+
await schema(node.headers);
|
|
22
|
+
};
|
|
23
|
+
const messages = new WeakSet();
|
|
24
|
+
const message = async (value) => {
|
|
25
|
+
const node = getResolvedAsyncApiRef(value);
|
|
26
|
+
if (!isObject(node) || messages.has(node))
|
|
27
|
+
return;
|
|
28
|
+
messages.add(node);
|
|
29
|
+
if (legacy && 'payload' in node) {
|
|
30
|
+
const format = resolveTraits(node, Array.isArray(node.traits) ? node.traits.filter(isObject) : []).schemaFormat;
|
|
31
|
+
if (typeof format === 'string')
|
|
32
|
+
node.payload = { schemaFormat: format, schema: node.payload };
|
|
33
|
+
}
|
|
34
|
+
await schema(node.payload);
|
|
35
|
+
await trait(node);
|
|
36
|
+
if (Array.isArray(node.traits))
|
|
37
|
+
for (const child of node.traits)
|
|
38
|
+
await trait(child);
|
|
39
|
+
if (Array.isArray(node.oneOf))
|
|
40
|
+
for (const child of node.oneOf)
|
|
41
|
+
await message(child);
|
|
42
|
+
};
|
|
43
|
+
const channel = async (value) => {
|
|
44
|
+
const node = getResolvedAsyncApiRef(value);
|
|
45
|
+
if (!isObject(node))
|
|
46
|
+
return;
|
|
47
|
+
if (isObject(node.messages))
|
|
48
|
+
for (const child of Object.values(node.messages))
|
|
49
|
+
await message(child);
|
|
50
|
+
for (const operation of [node.publish, node.subscribe]) {
|
|
51
|
+
if (isObject(operation) && !('$ref' in operation))
|
|
52
|
+
await message(operation.message);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const components = getResolvedAsyncApiRef(document.components) ?? {};
|
|
56
|
+
if (isObject(components.schemas))
|
|
57
|
+
for (const node of Object.values(components.schemas))
|
|
58
|
+
await schema(node);
|
|
59
|
+
if (isObject(components.messages))
|
|
60
|
+
for (const node of Object.values(components.messages))
|
|
61
|
+
await message(node);
|
|
62
|
+
if (isObject(components.messageTraits))
|
|
63
|
+
for (const node of Object.values(components.messageTraits))
|
|
64
|
+
await trait(node);
|
|
65
|
+
if (isObject(components.channels))
|
|
66
|
+
for (const node of Object.values(components.channels))
|
|
67
|
+
await channel(node);
|
|
68
|
+
if (isObject(document.channels))
|
|
69
|
+
for (const node of Object.values(document.channels))
|
|
70
|
+
await channel(node);
|
|
71
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Import visibility is distinct from loading: only public imports are re-exported. */
|
|
2
|
+
export type ProtobufImport = {
|
|
3
|
+
path: string;
|
|
4
|
+
visibility: 'private' | 'public' | 'weak';
|
|
5
|
+
};
|
|
6
|
+
/** Read import declarations without mistaking comments or option strings for dependencies. */
|
|
7
|
+
export declare const protobufImports: (source: string) => ProtobufImport[];
|
|
8
|
+
//# sourceMappingURL=protobuf-imports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protobuf-imports.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/protobuf-imports.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAA;CAAE,CAAA;AAExF,8FAA8F;AAC9F,eAAO,MAAM,eAAe,WAAY,MAAM,KAAG,cAAc,EAqB9D,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Read import declarations without mistaking comments or option strings for dependencies. */
|
|
2
|
+
export const protobufImports = (source) => {
|
|
3
|
+
const tokens = source.match(/\/\*[\s\S]*?\*\/|\/\/[^\r\n]*|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|[A-Za-z_][A-Za-z_0-9]*|[^\s]/g) ??
|
|
4
|
+
[];
|
|
5
|
+
const meaningful = tokens.filter((token) => !token.startsWith('//') && !token.startsWith('/*'));
|
|
6
|
+
const imports = [];
|
|
7
|
+
const state = { depth: 0 };
|
|
8
|
+
for (const [index, token] of meaningful.entries()) {
|
|
9
|
+
if (token === '{')
|
|
10
|
+
state.depth++;
|
|
11
|
+
if (token === '}')
|
|
12
|
+
state.depth--;
|
|
13
|
+
if (token !== 'import' || state.depth !== 0)
|
|
14
|
+
continue;
|
|
15
|
+
const modifier = meaningful[index + 1];
|
|
16
|
+
const visibility = modifier === 'public' || modifier === 'weak' ? modifier : 'private';
|
|
17
|
+
const offset = visibility === 'private' ? 1 : 2;
|
|
18
|
+
const literal = meaningful[index + offset];
|
|
19
|
+
if (!literal || !/^(?:"[^"\\]*"|'[^'\\]*')$/.test(literal) || meaningful[index + offset + 1] !== ';') {
|
|
20
|
+
throw new Error('Unsupported Protobuf import');
|
|
21
|
+
}
|
|
22
|
+
imports.push({ path: literal.slice(1, -1), visibility });
|
|
23
|
+
}
|
|
24
|
+
return imports;
|
|
25
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** A tagged include stays distinct from authored objects and ordinary scalar strings. */
|
|
2
|
+
export declare class RamlInclude {
|
|
3
|
+
readonly path: string;
|
|
4
|
+
constructor(path: string);
|
|
5
|
+
}
|
|
6
|
+
/** Parse RAML while retaining include tags for location-aware resolution. */
|
|
7
|
+
export declare const parseRamlSource: (source: string) => unknown;
|
|
8
|
+
/** The RAML grammar position controls whether an include contains schemas, text, or literal data. */
|
|
9
|
+
export type RamlPosition = 'schema' | 'properties' | 'text' | 'data' | 'library';
|
|
10
|
+
/** Keep dependency discovery and include expansion on the same child-position rules. */
|
|
11
|
+
export declare const ramlChildPosition: (position: RamlPosition, key: string) => RamlPosition;
|
|
12
|
+
//# sourceMappingURL=raml-source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raml-source.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/raml-source.ts"],"names":[],"mappings":"AAGA,yFAAyF;AACzF,qBAAa,WAAW;IACV,QAAQ,CAAC,IAAI,EAAE,MAAM;IAAjC,YAAqB,IAAI,EAAE,MAAM,EAAI;CACtC;AAED,6EAA6E;AAC7E,eAAO,MAAM,eAAe,WAAY,MAAM,KAAG,OAMhD,CAAA;AAED,qGAAqG;AACrG,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;AAEhF,wFAAwF;AACxF,eAAO,MAAM,iBAAiB,aAAc,YAAY,OAAO,MAAM,KAAG,YAOvE,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { YAML_MAX_ALIAS_COUNT } from '@scalar/helpers/general/yaml-max-alias-count';
|
|
2
|
+
import { parseDocument } from 'yaml';
|
|
3
|
+
/** A tagged include stays distinct from authored objects and ordinary scalar strings. */
|
|
4
|
+
export class RamlInclude {
|
|
5
|
+
path;
|
|
6
|
+
constructor(path) {
|
|
7
|
+
this.path = path;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/** Parse RAML while retaining include tags for location-aware resolution. */
|
|
11
|
+
export const parseRamlSource = (source) => {
|
|
12
|
+
const document = parseDocument(source, {
|
|
13
|
+
customTags: [{ tag: '!include', resolve: (path) => new RamlInclude(path) }],
|
|
14
|
+
});
|
|
15
|
+
if (document.errors.length || document.warnings.length)
|
|
16
|
+
throw new Error('Invalid RAML YAML');
|
|
17
|
+
return document.toJS({ maxAliasCount: YAML_MAX_ALIAS_COUNT });
|
|
18
|
+
};
|
|
19
|
+
/** Keep dependency discovery and include expansion on the same child-position rules. */
|
|
20
|
+
export const ramlChildPosition = (position, key) => {
|
|
21
|
+
if (position === 'properties')
|
|
22
|
+
return 'schema';
|
|
23
|
+
if (position === 'data' || position === 'text')
|
|
24
|
+
return 'data';
|
|
25
|
+
if (key === 'properties' || (position === 'library' && key === 'types'))
|
|
26
|
+
return 'properties';
|
|
27
|
+
if (['description', 'displayName', 'usage'].includes(key))
|
|
28
|
+
return 'text';
|
|
29
|
+
if (['example', 'examples', 'default', 'enum'].includes(key))
|
|
30
|
+
return 'data';
|
|
31
|
+
return 'schema';
|
|
32
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { LoaderPlugin } from '@scalar/json-magic/bundle';
|
|
2
|
+
/** Raw dependencies travel with a schema across server chunks, without changing its authored source. */
|
|
3
|
+
export type AsyncApiSchemaResources = {
|
|
4
|
+
origin: string;
|
|
5
|
+
files: Record<string, string>;
|
|
6
|
+
failed?: true;
|
|
7
|
+
};
|
|
8
|
+
/** Bound both individual graphs and their shared downloads within one ingestion. */
|
|
9
|
+
export declare const createSchemaResourceLoader: () => ((format: string, source: unknown, origin: string, loaders: LoaderPlugin[]) => Promise<AsyncApiSchemaResources | undefined>);
|
|
10
|
+
//# sourceMappingURL=resources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/resources.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAM7D,wGAAwG;AACxG,MAAM,MAAM,uBAAuB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,MAAM,CAAC,EAAE,IAAI,CAAA;CAAE,CAAA;AAEtG,oFAAoF;AACpF,eAAO,MAAM,0BAA0B,QAAO,CAAC,CAC7C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,YAAY,EAAE,KACpB,OAAO,CAAC,uBAAuB,GAAG,SAAS,CAAC,CAoHhD,CAAA"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { isObject } from '@scalar/helpers/object/is-object';
|
|
2
|
+
import { protobufImports } from './protobuf-imports.js';
|
|
3
|
+
import { RamlInclude, parseRamlSource, ramlChildPosition } from './raml-source.js';
|
|
4
|
+
import { schemaResourcePath } from './schema-resource-path.js';
|
|
5
|
+
/** Bound both individual graphs and their shared downloads within one ingestion. */
|
|
6
|
+
export const createSchemaResourceLoader = () => {
|
|
7
|
+
const cache = new Map();
|
|
8
|
+
const parsedRamlFiles = new Map();
|
|
9
|
+
const ingestion = { size: 0 };
|
|
10
|
+
return async (format, source, origin, loaders) => {
|
|
11
|
+
const normalized = format
|
|
12
|
+
.toLowerCase()
|
|
13
|
+
.split(';')
|
|
14
|
+
.map((part) => part.trim())
|
|
15
|
+
.join(';');
|
|
16
|
+
const raml = /^application\/raml\+yaml;version\s*=\s*(?:"1\.0"|1\.0)$/.test(normalized);
|
|
17
|
+
const proto = /^application\/vnd\.google\.protobuf;version\s*=\s*(?:"[23]"|[23])$/.test(normalized);
|
|
18
|
+
if (!raml && !proto)
|
|
19
|
+
return undefined;
|
|
20
|
+
const files = {};
|
|
21
|
+
const state = { size: typeof source === 'string' ? source.length : 0, nodes: 0 };
|
|
22
|
+
const done = new Set();
|
|
23
|
+
const active = new Set();
|
|
24
|
+
const load = async (reference, base, depth, position = 'schema') => {
|
|
25
|
+
if (depth >= 20)
|
|
26
|
+
throw new Error('Dependency graph is too deep');
|
|
27
|
+
const url = schemaResourcePath(base, reference);
|
|
28
|
+
const identity = `${position}:${url}`;
|
|
29
|
+
if (active.has(identity))
|
|
30
|
+
throw new Error('Cyclic schema dependencies');
|
|
31
|
+
if (done.has(identity))
|
|
32
|
+
return;
|
|
33
|
+
if (!Object.hasOwn(files, url) && Object.keys(files).length >= 64)
|
|
34
|
+
throw new Error('Too many schema dependencies');
|
|
35
|
+
active.add(identity);
|
|
36
|
+
if (!cache.has(url)) {
|
|
37
|
+
if (cache.size >= 64 || ingestion.size >= 1_000_000)
|
|
38
|
+
throw new Error('Too many document dependencies');
|
|
39
|
+
const loader = loaders.find((candidate) => candidate.validate(url));
|
|
40
|
+
if (!loader)
|
|
41
|
+
throw new Error('No resource loader');
|
|
42
|
+
cache.set(url, (async () => {
|
|
43
|
+
const result = await loader.exec(url, { parseAs: 'text' });
|
|
44
|
+
if (!result.ok || typeof result.raw !== 'string' || result.raw.length > 200_000)
|
|
45
|
+
throw new Error('Unavailable schema dependency');
|
|
46
|
+
ingestion.size += result.raw.length;
|
|
47
|
+
if (ingestion.size > 1_000_000)
|
|
48
|
+
throw new Error('Document dependencies are too large');
|
|
49
|
+
return result.raw;
|
|
50
|
+
})());
|
|
51
|
+
}
|
|
52
|
+
const text = await cache.get(url);
|
|
53
|
+
if (!Object.hasOwn(files, url))
|
|
54
|
+
state.size += text.length;
|
|
55
|
+
if (state.size > 1_000_000)
|
|
56
|
+
throw new Error('Schema dependencies are too large');
|
|
57
|
+
Object.defineProperty(files, url, { value: text, enumerable: true });
|
|
58
|
+
await scan(text, url, depth + 1, position);
|
|
59
|
+
active.delete(identity);
|
|
60
|
+
done.add(identity);
|
|
61
|
+
};
|
|
62
|
+
const scan = async (value, base, depth, position = 'schema') => {
|
|
63
|
+
if (position === 'text')
|
|
64
|
+
return;
|
|
65
|
+
if (depth > 40 || ++state.nodes > 10_000)
|
|
66
|
+
throw new Error('Schema is too large');
|
|
67
|
+
if (proto) {
|
|
68
|
+
if (typeof value !== 'string')
|
|
69
|
+
throw new Error('Expected Protobuf source');
|
|
70
|
+
for (const dependency of protobufImports(value))
|
|
71
|
+
await load(dependency.path, base, depth);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
// Inline schemas can share an origin but have different source; only external files have stable URI identity.
|
|
75
|
+
if (typeof value === 'string' && depth > 0 && !parsedRamlFiles.has(base))
|
|
76
|
+
parsedRamlFiles.set(base, parseRamlSource(value));
|
|
77
|
+
const parsed = typeof value === 'string' ? (depth > 0 ? parsedRamlFiles.get(base) : parseRamlSource(value)) : value;
|
|
78
|
+
if (depth > 0 &&
|
|
79
|
+
position === 'schema' &&
|
|
80
|
+
isObject(parsed) &&
|
|
81
|
+
'uses' in parsed &&
|
|
82
|
+
!(typeof value === 'string' && /^#%RAML 1\.0 (?:DataType|Library)[ \t]*(?:\r?\n|$)/.test(value)))
|
|
83
|
+
throw new Error('Only typed RAML fragments can declare libraries');
|
|
84
|
+
const seen = new Set();
|
|
85
|
+
const library = typeof value === 'string' && /^#%RAML 1\.0 Library/.test(value);
|
|
86
|
+
const walk = async (node, level, position) => {
|
|
87
|
+
if (level > 40 || ++state.nodes > 10_000)
|
|
88
|
+
throw new Error('RAML is too large');
|
|
89
|
+
if (node instanceof RamlInclude) {
|
|
90
|
+
await load(node.path, base, depth, position);
|
|
91
|
+
}
|
|
92
|
+
else if (isObject(node) || Array.isArray(node)) {
|
|
93
|
+
if (seen.has(node))
|
|
94
|
+
throw new Error('Cyclic RAML YAML aliases');
|
|
95
|
+
seen.add(node);
|
|
96
|
+
for (const [key, child] of Object.entries(node)) {
|
|
97
|
+
if (node === parsed && position === 'schema' && key === 'uses' && isObject(child)) {
|
|
98
|
+
for (const path of Object.values(child)) {
|
|
99
|
+
if (typeof path !== 'string')
|
|
100
|
+
throw new Error('Invalid RAML library path');
|
|
101
|
+
await load(path, base, depth);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
const next = ramlChildPosition(library && node === parsed && position === 'schema' ? 'library' : position, key);
|
|
106
|
+
await walk(child, level + 1, next);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
seen.delete(node);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
await walk(parsed, 0, position);
|
|
113
|
+
};
|
|
114
|
+
try {
|
|
115
|
+
if (state.size > 200_000)
|
|
116
|
+
throw new Error('Schema is too large');
|
|
117
|
+
await scan(source, origin, 0);
|
|
118
|
+
return { origin, files };
|
|
119
|
+
}
|
|
120
|
+
catch {
|
|
121
|
+
return { origin, files: {}, failed: true };
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-resource-path.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/schema-resource-path.ts"],"names":[],"mappings":"AAEA,wGAAwG;AACxG,eAAO,MAAM,kBAAkB,WAAY,MAAM,aAAa,MAAM,KAAG,MAKtE,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { resolveReferencePath } from '@scalar/json-magic/bundle';
|
|
2
|
+
/** Resolve only whole native files. Unknown inline locations never borrow a browser or process base. */
|
|
3
|
+
export const schemaResourcePath = (origin, reference) => {
|
|
4
|
+
if (!reference || reference.includes('#') || /[\u0000-\u0020]/.test(reference))
|
|
5
|
+
throw new Error('Invalid dependency path');
|
|
6
|
+
if ((!origin || origin === '/') && !/^(?:https?:\/\/|\/)/i.test(reference))
|
|
7
|
+
throw new Error('Unknown schema location');
|
|
8
|
+
return resolveReferencePath(origin || '/', reference);
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-upgrade-metadata.d.ts","sourceRoot":"","sources":["../../src/helpers/compact-upgrade-metadata.ts"],"names":[],"mappings":"AAEA,+FAA+F;AAC/F,eAAO,MAAM,sBAAsB,aAAc,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,IAqE1E,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { isObject } from '@scalar/helpers/object/is-object';
|
|
2
|
+
/** Retain only upgrade bookkeeping needed by references that still load external resources. */
|
|
3
|
+
export const compactUpgradeMetadata = (document) => {
|
|
4
|
+
const metadata = document['x-scalar-upgrade'];
|
|
5
|
+
if (!isObject(metadata)) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
const references = [];
|
|
9
|
+
const visited = new WeakSet();
|
|
10
|
+
const visit = (value, path) => {
|
|
11
|
+
if (value === null || typeof value !== 'object' || visited.has(value)) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
visited.add(value);
|
|
15
|
+
if (isObject(value) && typeof value.$ref === 'string' && !value.$ref.startsWith('#')) {
|
|
16
|
+
references.push(path);
|
|
17
|
+
}
|
|
18
|
+
for (const [key, child] of Object.entries(value)) {
|
|
19
|
+
if (key !== 'x-scalar-upgrade' && key !== 'x-ext' && key !== 'x-ext-urls') {
|
|
20
|
+
visit(child, [...path, key]);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
visit(document, []);
|
|
25
|
+
if (references.length === 0) {
|
|
26
|
+
delete document['x-scalar-upgrade'];
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
// External resources can refer back to relocated entry targets. Keep those mappings,
|
|
30
|
+
// but descendants that follow the same prefix substitution need no separate entry.
|
|
31
|
+
const mappings = new Map();
|
|
32
|
+
if (Array.isArray(metadata.locations)) {
|
|
33
|
+
// upgradeFragment records parents before visiting their children. Preserve that order:
|
|
34
|
+
// descendant mappings can only be omitted after their inherited prefix is known.
|
|
35
|
+
metadata.locations = metadata.locations.filter((location) => {
|
|
36
|
+
if (!isObject(location) || !Array.isArray(location.source) || !Array.isArray(location.output)) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
const source = location.source;
|
|
40
|
+
const output = location.output;
|
|
41
|
+
const key = JSON.stringify(source);
|
|
42
|
+
// Multiple media types can copy one source; the resolver uses its first destination.
|
|
43
|
+
if (mappings.has(key)) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
mappings.set(key, output);
|
|
47
|
+
for (let length = source.length - 1; length >= 0; length--) {
|
|
48
|
+
const parent = mappings.get(JSON.stringify(source.slice(0, length)));
|
|
49
|
+
if (parent) {
|
|
50
|
+
if (JSON.stringify([...parent, ...source.slice(length)]) === JSON.stringify(output)) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return true;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
if (Array.isArray(metadata.contexts)) {
|
|
60
|
+
const contexts = metadata.contexts.filter((context) => {
|
|
61
|
+
const prefix = isObject(context) ? context.path : undefined;
|
|
62
|
+
return Array.isArray(prefix) && references.some((path) => prefix.every((part, index) => path[index] === part));
|
|
63
|
+
});
|
|
64
|
+
if (contexts.length === 0) {
|
|
65
|
+
delete metadata.contexts;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
metadata.contexts = contexts;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
@@ -7,7 +7,7 @@ import { isArraySchema, isStringSchema } from '../schemas/v3.2/strict/type-guard
|
|
|
7
7
|
export const isFileSchema = (schema, allowUntyped = true, contentType) => {
|
|
8
8
|
const seen = new Set();
|
|
9
9
|
const visit = (input, allowAlternatives = true, allowRawBinary = false) => {
|
|
10
|
-
if (!input || seen.has(input)) {
|
|
10
|
+
if (!input || typeof input === 'boolean' || seen.has(input)) {
|
|
11
11
|
return false;
|
|
12
12
|
}
|
|
13
13
|
seen.add(input);
|
|
@@ -11,7 +11,9 @@ export type QuerystringParameter = {
|
|
|
11
11
|
* Resolve the selected whole-query example, including content-schema defaults.
|
|
12
12
|
* This module serializes outgoing queries; mock-server/src/utils/querystring-parameter.ts decodes incoming ones.
|
|
13
13
|
*/
|
|
14
|
-
export declare const getQuerystringParameter: (parameter: ParameterObject, exampleName?: string, { defaultDisabled, includeDisabled, }?: {
|
|
14
|
+
export declare const getQuerystringParameter: (parameter: ParameterObject, exampleName?: string, { defaultDisabled, includeDisabled, openapiVersion, jsonSchemaDialect, }?: {
|
|
15
|
+
openapiVersion?: string;
|
|
16
|
+
jsonSchemaDialect?: string;
|
|
15
17
|
defaultDisabled?: boolean;
|
|
16
18
|
/** Editors must retain the value when its checkbox is off. */
|
|
17
19
|
includeDisabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"querystring-parameter.d.ts","sourceRoot":"","sources":["../../src/helpers/querystring-parameter.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAiB,eAAe,EAAE,MAAM,wCAAwC,CAAA;AAE5G,yFAAyF;AACzF,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,OAAO,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IACzC,sGAAsG;IACtG,IAAI,EAAE,WAAW,GAAG,YAAY,GAAG,MAAM,CAAA;CAC1C,CAAA;AAmBD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,cACvB,eAAe,gBACZ,MAAM,
|
|
1
|
+
{"version":3,"file":"querystring-parameter.d.ts","sourceRoot":"","sources":["../../src/helpers/querystring-parameter.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAiB,eAAe,EAAE,MAAM,wCAAwC,CAAA;AAE5G,yFAAyF;AACzF,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,OAAO,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IACzC,sGAAsG;IACtG,IAAI,EAAE,WAAW,GAAG,YAAY,GAAG,MAAM,CAAA;CAC1C,CAAA;AAmBD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,cACvB,eAAe,gBACZ,MAAM,6EAMjB;IACD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,8DAA8D;IAC9D,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,KACA,oBAAoB,GAAG,SA4BzB,CAAA;AAED,wFAAwF;AACxF,eAAO,MAAM,6BAA6B,cAC7B,oBAAoB,cACpB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC,KACrE,MAyDF,CAAA"}
|
|
@@ -26,7 +26,7 @@ const getQuerystringValueKind = (example, source) => {
|
|
|
26
26
|
* Resolve the selected whole-query example, including content-schema defaults.
|
|
27
27
|
* This module serializes outgoing queries; mock-server/src/utils/querystring-parameter.ts decodes incoming ones.
|
|
28
28
|
*/
|
|
29
|
-
export const getQuerystringParameter = (parameter, exampleName, { defaultDisabled = true, includeDisabled = false, } = {}) => {
|
|
29
|
+
export const getQuerystringParameter = (parameter, exampleName, { defaultDisabled = true, includeDisabled = false, openapiVersion, jsonSchemaDialect, } = {}) => {
|
|
30
30
|
if (parameter.in !== 'querystring' || !('content' in parameter) || !parameter.content) {
|
|
31
31
|
return undefined;
|
|
32
32
|
}
|
|
@@ -46,7 +46,7 @@ export const getQuerystringParameter = (parameter, exampleName, { defaultDisable
|
|
|
46
46
|
const schema = getResolvedRef(mediaType?.schema);
|
|
47
47
|
let resolvedValue = value;
|
|
48
48
|
if (resolvedValue === undefined) {
|
|
49
|
-
resolvedValue = schema ? getExampleFromSchema(schema) : '';
|
|
49
|
+
resolvedValue = schema ? getExampleFromSchema(schema, { openapiVersion, jsonSchemaDialect }) : '';
|
|
50
50
|
}
|
|
51
51
|
return {
|
|
52
52
|
value: resolvedValue,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SchemaObject } from '../schemas/v3.2/strict/openapi-document.js';
|
|
2
|
+
import type { AsyncApiSchemaResources } from './async-api-schema-resources/resources.js';
|
|
2
3
|
/** Keep non-JSON schema languages out of JSON Schema rendering and traversal. */
|
|
3
4
|
export declare const isAsyncApiJsonSchemaFormat: (format: unknown) => boolean;
|
|
4
5
|
/** A schema that can use the shared renderer, or source in another schema language. */
|
|
@@ -9,6 +10,7 @@ type AsyncApiSchema = {
|
|
|
9
10
|
kind: 'source';
|
|
10
11
|
format: string;
|
|
11
12
|
value: unknown;
|
|
13
|
+
resources?: AsyncApiSchemaResources;
|
|
12
14
|
};
|
|
13
15
|
/** Resolve the wrapper and its schema without discarding the declared schema language. */
|
|
14
16
|
export declare const resolveAsyncApiSchema: (value: unknown) => AsyncApiSchema | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-async-api-schema.d.ts","sourceRoot":"","sources":["../../src/helpers/resolve-async-api-schema.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAA;
|
|
1
|
+
{"version":3,"file":"resolve-async-api-schema.d.ts","sourceRoot":"","sources":["../../src/helpers/resolve-async-api-schema.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAA;AAC3E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAA;AAKrF,iFAAiF;AACjF,eAAO,MAAM,0BAA0B,WAAY,OAAO,KAAG,OAkB5D,CAAA;AAED,uFAAuF;AACvF,KAAK,cAAc,GACf;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,YAAY,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,uBAAuB,CAAA;CAAE,CAAA;AAoB3F,0FAA0F;AAC1F,eAAO,MAAM,qBAAqB,UAAW,OAAO,KAAG,cAAc,GAAG,SAsBvE,CAAA"}
|
|
@@ -22,6 +22,22 @@ export const isAsyncApiJsonSchemaFormat = (format) => {
|
|
|
22
22
|
'application/vnd.oai.openapi+yaml',
|
|
23
23
|
].includes(mediaType ?? '');
|
|
24
24
|
};
|
|
25
|
+
/** Restore only validated dependency metadata, rather than trusting arbitrary extension fields. */
|
|
26
|
+
const readResources = (value) => {
|
|
27
|
+
if (!isObject(value) ||
|
|
28
|
+
typeof value.origin !== 'string' ||
|
|
29
|
+
!isObject(value.files) ||
|
|
30
|
+
(value.failed !== undefined && value.failed !== true))
|
|
31
|
+
return undefined;
|
|
32
|
+
const entries = Object.entries(value.files);
|
|
33
|
+
if (!entries.every((entry) => typeof entry[1] === 'string'))
|
|
34
|
+
return undefined;
|
|
35
|
+
return {
|
|
36
|
+
origin: value.origin,
|
|
37
|
+
files: Object.fromEntries(entries),
|
|
38
|
+
...(value.failed === true ? { failed: true } : {}),
|
|
39
|
+
};
|
|
40
|
+
};
|
|
25
41
|
/** Resolve the wrapper and its schema without discarding the declared schema language. */
|
|
26
42
|
export const resolveAsyncApiSchema = (value) => {
|
|
27
43
|
const resolved = getResolvedAsyncApiRef(value);
|
|
@@ -31,7 +47,13 @@ export const resolveAsyncApiSchema = (value) => {
|
|
|
31
47
|
return undefined;
|
|
32
48
|
}
|
|
33
49
|
if (wrapped && !isAsyncApiJsonSchemaFormat(resolved.schemaFormat)) {
|
|
34
|
-
|
|
50
|
+
const resources = readResources(resolved['x-scalar-schema-resources']);
|
|
51
|
+
return {
|
|
52
|
+
kind: 'source',
|
|
53
|
+
format: String(resolved.schemaFormat),
|
|
54
|
+
value: schema,
|
|
55
|
+
...(resources ? { resources } : {}),
|
|
56
|
+
};
|
|
35
57
|
}
|
|
36
58
|
if (typeof schema === 'boolean') {
|
|
37
59
|
return { kind: 'schema', schema: getBooleanSchema(schema) };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/mutators/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/mutators/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AAG9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAY3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAIlD,OAAO,KAAK,EAAgB,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAuC/F;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,6BAA6B,UACjC,cAAc,GAAG,IAAI,YAClB,iBAAiB,GAAG,IAAI,8CACU,UAAU,CAAC,uCAAuC,CAAC,kBAgFhG,CAAA;AAwBD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,oBAAoB,aACrB,iBAAiB,GAAG,IAAI,qBACf,UAAU,CAAC,6BAA6B,CAAC,qCAwB7D,CAAA;AAqED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,qBAAqB,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EvE,oBAAoB,YAAY,UAAU,CAAC,6BAA6B,CAAC;IAEzE,WAAW,YAAY,UAAU,CAAC,oBAAoB,CAAC;IACvD,WAAW,YAAY,UAAU,CAAC,oBAAoB,CAAC;IACvD,oBAAoB,YAAY,UAAU,CAAC,6BAA6B,CAAC;CAG5E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/mutators/operation/parameters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAOrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAmClD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,wBAAwB,aACzB,iBAAiB,GAAG,IAAI,8CACU,eAAe,CAAC,4BAA4B,CAAC,
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/mutators/operation/parameters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAOrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAmClD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,wBAAwB,aACzB,iBAAiB,GAAG,IAAI,8CACU,eAAe,CAAC,4BAA4B,CAAC,SAoI1F,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,8BAA8B,aAC/B,iBAAiB,GAAG,IAAI,yCACK,eAAe,CAAC,mCAAmC,CAAC,SA8C5F,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,aACzB,iBAAiB,GAAG,IAAI,+BACL,eAAe,CAAC,4BAA4B,CAAC,SAkC3E,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,4BAA4B,aAC7B,iBAAiB,GAAG,IAAI,kBAClB,eAAe,CAAC,iCAAiC,CAAC,SAgBnE,CAAA"}
|
|
@@ -44,7 +44,15 @@ const getPathItemsForParameterMutation = (pathItemRef) => {
|
|
|
44
44
|
export const upsertOperationParameter = (document, { meta, type, payload, originalParameter }) => {
|
|
45
45
|
// We are editing an existing parameter
|
|
46
46
|
if (originalParameter) {
|
|
47
|
-
const querystring = getQuerystringParameter(originalParameter, meta.exampleKey, {
|
|
47
|
+
const querystring = getQuerystringParameter(originalParameter, meta.exampleKey, {
|
|
48
|
+
includeDisabled: true,
|
|
49
|
+
...(isOpenApiDocument(document)
|
|
50
|
+
? {
|
|
51
|
+
openapiVersion: document['x-original-oas-version'] || document.openapi,
|
|
52
|
+
jsonSchemaDialect: document.jsonSchemaDialect,
|
|
53
|
+
}
|
|
54
|
+
: {}),
|
|
55
|
+
});
|
|
48
56
|
const preserveQuerystringValue = querystring && payload.value === serializeQuerystringParameter(querystring);
|
|
49
57
|
const param = originalParameter;
|
|
50
58
|
const selected = getParameterExample(param, meta.exampleKey);
|