@scalar/workspace-store 0.74.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 +17 -0
- package/dist/client.d.ts +3 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +55 -5
- package/dist/entities/auth/schema.d.ts +210 -0
- package/dist/entities/auth/schema.d.ts.map +1 -1
- package/dist/helpers/async-api-schema-resources/load-inline.d.ts +3 -1
- package/dist/helpers/async-api-schema-resources/load-inline.d.ts.map +1 -1
- package/dist/helpers/async-api-schema-resources/load-inline.js +20 -60
- 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 +3 -0
- package/dist/helpers/async-api-schema-resources/resources.d.ts.map +1 -1
- package/dist/helpers/async-api-schema-resources/resources.js +17 -8
- 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/resolve-async-api-schema.d.ts.map +1 -1
- package/dist/helpers/resolve-async-api-schema.js +3 -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/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 +1 -1
- package/dist/plugins/bundler/async-api-schema-resources.d.ts.map +1 -1
- package/dist/plugins/bundler/async-api-schema-resources.js +9 -9
- 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/get-example-from-schema.d.ts +3 -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 +132 -29
- package/dist/request-example/builder/request-factory.d.ts +2 -0
- package/dist/request-example/builder/request-factory.d.ts.map +1 -1
- 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 +42 -0
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +42 -0
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +1470 -0
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- 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 +2 -0
- package/dist/schemas/v3.2/strict/openapi-document.d.ts +1470 -0
- package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
- 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/package.json +8 -8
|
@@ -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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoMF,CAAA;AACxE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { LoaderPlugin } from '@scalar/json-magic/bundle';
|
|
2
2
|
import type { AsyncApiDocument } from '@scalar/types/asyncapi/3.1';
|
|
3
3
|
/** Prepare inline native schemas before server chunking; external AsyncAPI references stay deferred. */
|
|
4
|
-
export declare const loadInlineAsyncApiSchemaResources: (document: AsyncApiDocument, origin: string, loaders: LoaderPlugin[]
|
|
4
|
+
export declare const loadInlineAsyncApiSchemaResources: (document: AsyncApiDocument, origin: string, loaders: LoaderPlugin[], options?: {
|
|
5
|
+
lazy?: boolean;
|
|
6
|
+
}) => Promise<void>;
|
|
5
7
|
//# sourceMappingURL=load-inline.d.ts.map
|
|
@@ -1 +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;
|
|
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;AAOlE,wGAAwG;AACxG,eAAO,MAAM,iCAAiC,aAClC,gBAAgB,UAClB,MAAM,WACL,YAAY,EAAE,YACd;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,KAC1B,OAAO,CAAC,IAAI,CAoBd,CAAA"}
|
|
@@ -1,71 +1,31 @@
|
|
|
1
1
|
import { isObject } from '@scalar/helpers/object/is-object';
|
|
2
|
-
import { getResolvedAsyncApiRef } from '../get-resolved-async-api-ref.js';
|
|
3
2
|
import { resolveTraits } from '../resolve-traits.js';
|
|
4
|
-
import {
|
|
3
|
+
import { unpackProxyShallow } from '../unpack-proxy.js';
|
|
4
|
+
import { createSchemaResourceLoader, deferSchemaResources } from './resources.js';
|
|
5
|
+
import { getInlineAsyncApiSchemaWrappers } from './schema-wrappers.js';
|
|
5
6
|
/** Prepare inline native schemas before server chunking; external AsyncAPI references stay deferred. */
|
|
6
|
-
export const loadInlineAsyncApiSchemaResources = async (document, origin, loaders) => {
|
|
7
|
+
export const loadInlineAsyncApiSchemaResources = async (document, origin, loaders, options = {}) => {
|
|
7
8
|
const load = createSchemaResourceLoader();
|
|
8
9
|
const legacy = /^2\./.test(document.asyncapi);
|
|
9
|
-
const
|
|
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);
|
|
10
|
+
const wrappers = getInlineAsyncApiSchemaWrappers(document, (node) => {
|
|
29
11
|
if (legacy && 'payload' in node) {
|
|
30
12
|
const format = resolveTraits(node, Array.isArray(node.traits) ? node.traits.filter(isObject) : []).schemaFormat;
|
|
31
13
|
if (typeof format === 'string')
|
|
32
14
|
node.payload = { schemaFormat: format, schema: node.payload };
|
|
33
15
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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);
|
|
16
|
+
});
|
|
17
|
+
const loaded = new WeakSet();
|
|
18
|
+
for (const { node } of wrappers) {
|
|
19
|
+
const identity = unpackProxyShallow(node);
|
|
20
|
+
if (loaded.has(identity))
|
|
21
|
+
continue;
|
|
22
|
+
loaded.add(identity);
|
|
23
|
+
if (typeof node.schemaFormat !== 'string')
|
|
24
|
+
continue;
|
|
25
|
+
const resources = options.lazy
|
|
26
|
+
? deferSchemaResources(node.schemaFormat, origin)
|
|
27
|
+
: await load(node.schemaFormat, node.schema, origin, loaders);
|
|
28
|
+
if (resources)
|
|
29
|
+
node['x-scalar-schema-resources'] = resources;
|
|
30
|
+
}
|
|
71
31
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { LoaderPlugin } from '@scalar/json-magic/bundle';
|
|
2
|
+
import { fetchUrls } from '@scalar/json-magic/bundle/plugins/browser';
|
|
3
|
+
import { type AsyncApiSchemaResources } from './resources.js';
|
|
4
|
+
/** The renderer supplies authored source and the origin captured before bundling relocates it. */
|
|
5
|
+
export type AsyncApiSchemaResourceResolver = (format: string, source: unknown, resources?: AsyncApiSchemaResources) => Promise<AsyncApiSchemaResources | undefined>;
|
|
6
|
+
/** Keep downloads and complete graphs outside authored state, scoped to one document revision. */
|
|
7
|
+
export declare const createAsyncApiSchemaResourceResolver: (options?: Parameters<typeof fetchUrls>[0] & {
|
|
8
|
+
origin?: string;
|
|
9
|
+
fileLoader?: LoaderPlugin;
|
|
10
|
+
usePreparedResources?: boolean;
|
|
11
|
+
}) => AsyncApiSchemaResourceResolver;
|
|
12
|
+
//# sourceMappingURL=resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAA;AAErE,OAAO,EAAE,KAAK,uBAAuB,EAA8B,MAAM,aAAa,CAAA;AAEtF,kGAAkG;AAClG,MAAM,MAAM,8BAA8B,GAAG,CAC3C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,OAAO,EACf,SAAS,CAAC,EAAE,uBAAuB,KAChC,OAAO,CAAC,uBAAuB,GAAG,SAAS,CAAC,CAAA;AAEjD,kGAAkG;AAClG,eAAO,MAAM,oCAAoC,aACtC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG;IACzC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,YAAY,CAAA;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B,KACA,8BAwBF,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { fetchUrls } from '@scalar/json-magic/bundle/plugins/browser';
|
|
2
|
+
import { createSchemaResourceLoader } from './resources.js';
|
|
3
|
+
/** Keep downloads and complete graphs outside authored state, scoped to one document revision. */
|
|
4
|
+
export const createAsyncApiSchemaResourceResolver = (options = {}) => {
|
|
5
|
+
const load = createSchemaResourceLoader();
|
|
6
|
+
const urlLoader = fetchUrls({ ...options, limit: 10 });
|
|
7
|
+
const loaders = [urlLoader, ...(options.fileLoader ? [options.fileLoader] : [])];
|
|
8
|
+
const graphs = new Map();
|
|
9
|
+
return (format, source, resources) => {
|
|
10
|
+
// Prebuilt server graphs remain portable, including filesystem resources inaccessible to a browser.
|
|
11
|
+
if (resources && !resources.deferred && options.usePreparedResources !== false)
|
|
12
|
+
return Promise.resolve(resources);
|
|
13
|
+
const resourceOrigin = resources?.origin ?? options.origin ?? '/';
|
|
14
|
+
// Authored metadata cannot grant local file access to a remotely loaded document.
|
|
15
|
+
const remoteOrigin = options.origin !== undefined && urlLoader.validate(options.origin) ? options.origin : undefined;
|
|
16
|
+
const origin = remoteOrigin !== undefined && !urlLoader.validate(resourceOrigin) ? remoteOrigin : resourceOrigin;
|
|
17
|
+
const graphLoaders = remoteOrigin !== undefined || urlLoader.validate(origin) ? [urlLoader] : loaders;
|
|
18
|
+
try {
|
|
19
|
+
const key = JSON.stringify([format, source, origin]);
|
|
20
|
+
const cached = graphs.get(key);
|
|
21
|
+
if (cached)
|
|
22
|
+
return cached;
|
|
23
|
+
const pending = load(format, source, origin, graphLoaders);
|
|
24
|
+
graphs.set(key, pending);
|
|
25
|
+
return pending;
|
|
26
|
+
}
|
|
27
|
+
catch {
|
|
28
|
+
return Promise.resolve({ origin, files: {}, failed: true });
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -4,7 +4,10 @@ export type AsyncApiSchemaResources = {
|
|
|
4
4
|
origin: string;
|
|
5
5
|
files: Record<string, string>;
|
|
6
6
|
failed?: true;
|
|
7
|
+
deferred?: true;
|
|
7
8
|
};
|
|
9
|
+
/** Record the containing file without downloading native dependencies during browser ingestion. */
|
|
10
|
+
export declare const deferSchemaResources: (format: string, origin: string) => AsyncApiSchemaResources | undefined;
|
|
8
11
|
/** Bound both individual graphs and their shared downloads within one ingestion. */
|
|
9
12
|
export declare const createSchemaResourceLoader: () => ((format: string, source: unknown, origin: string, loaders: LoaderPlugin[]) => Promise<AsyncApiSchemaResources | undefined>);
|
|
10
13
|
//# sourceMappingURL=resources.d.ts.map
|
|
@@ -1 +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;
|
|
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,CAAC;IAAC,QAAQ,CAAC,EAAE,IAAI,CAAA;CAAE,CAAA;AAEvH,mGAAmG;AACnG,eAAO,MAAM,oBAAoB,WAAY,MAAM,UAAU,MAAM,KAAG,uBAAuB,GAAG,SACd,CAAA;AAalF,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,CA+GhD,CAAA"}
|
|
@@ -2,21 +2,30 @@ import { isObject } from '@scalar/helpers/object/is-object';
|
|
|
2
2
|
import { protobufImports } from './protobuf-imports.js';
|
|
3
3
|
import { RamlInclude, parseRamlSource, ramlChildPosition } from './raml-source.js';
|
|
4
4
|
import { schemaResourcePath } from './schema-resource-path.js';
|
|
5
|
+
/** Record the containing file without downloading native dependencies during browser ingestion. */
|
|
6
|
+
export const deferSchemaResources = (format, origin) => nativeSchemaLanguage(format) ? { origin, files: {}, deferred: true } : undefined;
|
|
7
|
+
const nativeSchemaLanguage = (format) => {
|
|
8
|
+
const normalized = format
|
|
9
|
+
.toLowerCase()
|
|
10
|
+
.split(';')
|
|
11
|
+
.map((part) => part.trim())
|
|
12
|
+
.join(';');
|
|
13
|
+
if (/^application\/raml\+yaml;version\s*=\s*(?:"1\.0"|1\.0)$/.test(normalized))
|
|
14
|
+
return 'raml';
|
|
15
|
+
if (/^application\/vnd\.google\.protobuf;version\s*=\s*(?:"[23]"|[23])$/.test(normalized))
|
|
16
|
+
return 'proto';
|
|
17
|
+
return undefined;
|
|
18
|
+
};
|
|
5
19
|
/** Bound both individual graphs and their shared downloads within one ingestion. */
|
|
6
20
|
export const createSchemaResourceLoader = () => {
|
|
7
21
|
const cache = new Map();
|
|
8
22
|
const parsedRamlFiles = new Map();
|
|
9
23
|
const ingestion = { size: 0 };
|
|
10
24
|
return async (format, source, origin, loaders) => {
|
|
11
|
-
const
|
|
12
|
-
|
|
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)
|
|
25
|
+
const language = nativeSchemaLanguage(format);
|
|
26
|
+
if (!language)
|
|
19
27
|
return undefined;
|
|
28
|
+
const proto = language === 'proto';
|
|
20
29
|
const files = {};
|
|
21
30
|
const state = { size: typeof source === 'string' ? source.length : 0, nodes: 0 };
|
|
22
31
|
const done = new Set();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AsyncApiDocument } from '@scalar/types/asyncapi/3.1';
|
|
2
|
+
/** Stable schema positions survive object replacement and retain per-location overrides. */
|
|
3
|
+
export type InlineAsyncApiSchemaWrapper = {
|
|
4
|
+
node: Record<string, unknown>;
|
|
5
|
+
path: string[];
|
|
6
|
+
};
|
|
7
|
+
/** Visit schema positions, including resolved aliases, without treating examples or extensions as schemas. */
|
|
8
|
+
export declare const getInlineAsyncApiSchemaWrappers: (document: AsyncApiDocument, beforeMessage?: (message: Record<string, unknown>) => void) => InlineAsyncApiSchemaWrapper[];
|
|
9
|
+
//# sourceMappingURL=schema-wrappers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-wrappers.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/schema-wrappers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAKlE,4FAA4F;AAC5F,MAAM,MAAM,2BAA2B,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAAA;AAE3F,8GAA8G;AAC9G,eAAO,MAAM,+BAA+B,aAChC,gBAAgB,kBACV,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,KACzD,2BAA2B,EAqD7B,CAAA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { isObject } from '@scalar/helpers/object/is-object';
|
|
2
|
+
import { getResolvedAsyncApiRef } from '../get-resolved-async-api-ref.js';
|
|
3
|
+
import { unpackProxyShallow } from '../unpack-proxy.js';
|
|
4
|
+
/** Visit schema positions, including resolved aliases, without treating examples or extensions as schemas. */
|
|
5
|
+
export const getInlineAsyncApiSchemaWrappers = (document, beforeMessage) => {
|
|
6
|
+
const schemas = [];
|
|
7
|
+
const schema = (value, path) => {
|
|
8
|
+
const node = getResolvedAsyncApiRef(value);
|
|
9
|
+
if (isObject(node) && typeof node.schemaFormat === 'string')
|
|
10
|
+
schemas.push({ node, path });
|
|
11
|
+
};
|
|
12
|
+
const trait = (value, path) => {
|
|
13
|
+
const node = getResolvedAsyncApiRef(value);
|
|
14
|
+
if (isObject(node))
|
|
15
|
+
schema(node.headers, [...path, 'headers']);
|
|
16
|
+
};
|
|
17
|
+
const normalizedMessages = new WeakSet();
|
|
18
|
+
const activeMessages = new WeakSet();
|
|
19
|
+
const message = (value, path) => {
|
|
20
|
+
const node = getResolvedAsyncApiRef(value);
|
|
21
|
+
if (!isObject(node))
|
|
22
|
+
return;
|
|
23
|
+
const identity = unpackProxyShallow(node);
|
|
24
|
+
if (activeMessages.has(identity))
|
|
25
|
+
return;
|
|
26
|
+
activeMessages.add(identity);
|
|
27
|
+
if (!normalizedMessages.has(identity)) {
|
|
28
|
+
normalizedMessages.add(identity);
|
|
29
|
+
beforeMessage?.(node);
|
|
30
|
+
}
|
|
31
|
+
schema(node.payload, [...path, 'payload']);
|
|
32
|
+
trait(node, path);
|
|
33
|
+
if (Array.isArray(node.traits))
|
|
34
|
+
node.traits.forEach((child, index) => trait(child, [...path, 'traits', String(index)]));
|
|
35
|
+
if (Array.isArray(node.oneOf))
|
|
36
|
+
node.oneOf.forEach((child, index) => message(child, [...path, 'oneOf', String(index)]));
|
|
37
|
+
activeMessages.delete(identity);
|
|
38
|
+
};
|
|
39
|
+
const channel = (value, path) => {
|
|
40
|
+
const node = getResolvedAsyncApiRef(value);
|
|
41
|
+
if (!isObject(node))
|
|
42
|
+
return;
|
|
43
|
+
if (isObject(node.messages))
|
|
44
|
+
for (const [name, child] of Object.entries(node.messages))
|
|
45
|
+
message(child, [...path, 'messages', name]);
|
|
46
|
+
for (const name of ['publish', 'subscribe']) {
|
|
47
|
+
const operation = node[name];
|
|
48
|
+
if (isObject(operation) && !('$ref' in operation))
|
|
49
|
+
message(operation.message, [...path, name, 'message']);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const components = getResolvedAsyncApiRef(document.components) ?? {};
|
|
53
|
+
if (isObject(components.schemas))
|
|
54
|
+
for (const [name, node] of Object.entries(components.schemas))
|
|
55
|
+
schema(node, ['components', 'schemas', name]);
|
|
56
|
+
if (isObject(components.messages))
|
|
57
|
+
for (const [name, node] of Object.entries(components.messages))
|
|
58
|
+
message(node, ['components', 'messages', name]);
|
|
59
|
+
if (isObject(components.messageTraits))
|
|
60
|
+
for (const [name, node] of Object.entries(components.messageTraits))
|
|
61
|
+
trait(node, ['components', 'messageTraits', name]);
|
|
62
|
+
if (isObject(components.channels))
|
|
63
|
+
for (const [name, node] of Object.entries(components.channels))
|
|
64
|
+
channel(node, ['components', 'channels', name]);
|
|
65
|
+
if (isObject(document.channels))
|
|
66
|
+
for (const [name, node] of Object.entries(document.channels))
|
|
67
|
+
channel(node, ['channels', name]);
|
|
68
|
+
return schemas;
|
|
69
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track-edits.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/track-edits.ts"],"names":[],"mappings":"AAoBA,+FAA+F;AAC/F,eAAO,MAAM,6BAA6B,QAAO,CAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CA6B9E,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { isObject } from '@scalar/helpers/object/is-object';
|
|
2
|
+
import { isAsyncApiDocument } from '../../schemas/type-guards.js';
|
|
3
|
+
import { isOverridesProxyObject, unpackOverridesProxy } from '../overrides-proxy.js';
|
|
4
|
+
import { unpackProxyShallow } from '../unpack-proxy.js';
|
|
5
|
+
import { deferSchemaResources } from './resources.js';
|
|
6
|
+
import { getInlineAsyncApiSchemaWrappers } from './schema-wrappers.js';
|
|
7
|
+
/** Cyclic source remains on the source-only path until the cycle is removed. */
|
|
8
|
+
const sourceSnapshot = (wrapper) => {
|
|
9
|
+
const resources = wrapper['x-scalar-schema-resources'];
|
|
10
|
+
const origin = isObject(resources) && typeof resources.origin === 'string' ? resources.origin : undefined;
|
|
11
|
+
try {
|
|
12
|
+
return JSON.stringify([wrapper.schemaFormat, wrapper.schema, origin]);
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
/** Compare effective native sources at stable locations while allowing newly loaded chunks. */
|
|
19
|
+
export const createNativeSchemaEditTracker = () => {
|
|
20
|
+
const snapshots = new WeakMap();
|
|
21
|
+
return (document) => {
|
|
22
|
+
if (!isAsyncApiDocument(document))
|
|
23
|
+
return false;
|
|
24
|
+
const identity = unpackProxyShallow(document);
|
|
25
|
+
const previous = snapshots.get(identity);
|
|
26
|
+
const sources = new Map();
|
|
27
|
+
let overriddenNewSource = false;
|
|
28
|
+
for (const { node: wrapper, path } of getInlineAsyncApiSchemaWrappers(document)) {
|
|
29
|
+
if (typeof wrapper.schemaFormat !== 'string' || !deferSchemaResources(wrapper.schemaFormat, '/'))
|
|
30
|
+
continue;
|
|
31
|
+
const position = JSON.stringify(path);
|
|
32
|
+
const source = sourceSnapshot(wrapper);
|
|
33
|
+
sources.set(position, source);
|
|
34
|
+
// A new chunk may already have overrides; its prepared files describe the original source.
|
|
35
|
+
if (!previous?.has(position) &&
|
|
36
|
+
isOverridesProxyObject(wrapper) &&
|
|
37
|
+
source !== sourceSnapshot(unpackOverridesProxy(wrapper)))
|
|
38
|
+
overriddenNewSource = true;
|
|
39
|
+
}
|
|
40
|
+
snapshots.set(identity, sources);
|
|
41
|
+
// New chunks can introduce unchanged schemas without invalidating shared downloads or budgets.
|
|
42
|
+
return (overriddenNewSource ||
|
|
43
|
+
(previous !== undefined &&
|
|
44
|
+
[...previous].some(([position, source]) => !sources.has(position) || sources.get(position) !== source)));
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -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;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;
|
|
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;AAsB3F,0FAA0F;AAC1F,eAAO,MAAM,qBAAqB,UAAW,OAAO,KAAG,cAAc,GAAG,SAsBvE,CAAA"}
|
|
@@ -27,7 +27,8 @@ const readResources = (value) => {
|
|
|
27
27
|
if (!isObject(value) ||
|
|
28
28
|
typeof value.origin !== 'string' ||
|
|
29
29
|
!isObject(value.files) ||
|
|
30
|
-
(value.failed !== undefined && value.failed !== true)
|
|
30
|
+
(value.failed !== undefined && value.failed !== true) ||
|
|
31
|
+
(value.deferred !== undefined && value.deferred !== true))
|
|
31
32
|
return undefined;
|
|
32
33
|
const entries = Object.entries(value.files);
|
|
33
34
|
if (!entries.every((entry) => typeof entry[1] === 'string'))
|
|
@@ -36,6 +37,7 @@ const readResources = (value) => {
|
|
|
36
37
|
origin: value.origin,
|
|
37
38
|
files: Object.fromEntries(entries),
|
|
38
39
|
...(value.failed === true ? { failed: true } : {}),
|
|
40
|
+
...(value.deferred === true ? { deferred: true } : {}),
|
|
39
41
|
};
|
|
40
42
|
};
|
|
41
43
|
/** Resolve the wrapper and its schema without discarding the declared schema language. */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type InjectionKey, type ShallowRef } from 'vue';
|
|
2
|
+
import { type AsyncApiSchemaResourceResolver } from './async-api-schema-resources/resolver.js';
|
|
3
|
+
import type { AsyncApiSchemaResources } from './async-api-schema-resources/resources.js';
|
|
4
|
+
/** Share the current document's authenticated loader and cache across expanded native schemas. */
|
|
5
|
+
export declare const ASYNC_API_SCHEMA_RESOURCES: InjectionKey<() => AsyncApiSchemaResourceResolver>;
|
|
6
|
+
/** This scope is mounted by expanded message/model slots, so collapsed schemas never fetch. */
|
|
7
|
+
export declare const useAsyncApiSchemaResources: (input: () => {
|
|
8
|
+
format: string;
|
|
9
|
+
value: unknown;
|
|
10
|
+
resources?: AsyncApiSchemaResources;
|
|
11
|
+
}) => ShallowRef<AsyncApiSchemaResources | undefined>;
|
|
12
|
+
//# sourceMappingURL=use-async-api-schema-resources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-async-api-schema-resources.d.ts","sourceRoot":"","sources":["../../src/helpers/use-async-api-schema-resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAA+C,MAAM,KAAK,CAAA;AAErG,OAAO,EACL,KAAK,8BAA8B,EAEpC,MAAM,uCAAuC,CAAA;AAC9C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAA;AAErF,kGAAkG;AAClG,eAAO,MAAM,0BAA0B,EAAE,YAAY,CAAC,MAAM,8BAA8B,CACpD,CAAA;AAEtC,+FAA+F;AAC/F,eAAO,MAAM,0BAA0B,UAC9B,MAAM;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,uBAAuB,CAAA;CAAE,KACnF,UAAU,CAAC,uBAAuB,GAAG,SAAS,CAqBhD,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { inject, onServerPrefetch, shallowRef, watch } from 'vue';
|
|
2
|
+
import { createAsyncApiSchemaResourceResolver, } from './async-api-schema-resources/resolver.js';
|
|
3
|
+
/** Share the current document's authenticated loader and cache across expanded native schemas. */
|
|
4
|
+
export const ASYNC_API_SCHEMA_RESOURCES = Symbol('async-api-schema-resources');
|
|
5
|
+
/** This scope is mounted by expanded message/model slots, so collapsed schemas never fetch. */
|
|
6
|
+
export const useAsyncApiSchemaResources = (input) => {
|
|
7
|
+
const fallback = createAsyncApiSchemaResourceResolver();
|
|
8
|
+
const resolver = inject(ASYNC_API_SCHEMA_RESOURCES, () => fallback);
|
|
9
|
+
const resolved = shallowRef();
|
|
10
|
+
let pending;
|
|
11
|
+
watch(input, ({ format, value, resources }, _old, onCleanup) => {
|
|
12
|
+
let current = true;
|
|
13
|
+
onCleanup(() => {
|
|
14
|
+
current = false;
|
|
15
|
+
});
|
|
16
|
+
resolved.value = resources?.deferred ? undefined : resources;
|
|
17
|
+
pending = resolver()(format, value, resources).then((result) => {
|
|
18
|
+
if (current)
|
|
19
|
+
resolved.value = result;
|
|
20
|
+
});
|
|
21
|
+
}, { immediate: true, deep: true, flush: 'sync' });
|
|
22
|
+
onServerPrefetch(() => pending);
|
|
23
|
+
return resolved;
|
|
24
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { XBadge } from '../../schemas/extensions/operation/x-badge.js';
|
|
2
|
+
/**
|
|
3
|
+
* Reads the `x-badges` extension of an OpenAPI object (operation, tag, tag group or schema)
|
|
4
|
+
* for the navigation entry of that object.
|
|
5
|
+
*
|
|
6
|
+
* Badges without a name are dropped, and so are fields with an invalid value.
|
|
7
|
+
* Returns `undefined` when no badge is left, so the entry can omit the key.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getXBadges: (object: unknown) => XBadge[] | undefined;
|
|
10
|
+
//# sourceMappingURL=get-x-badges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-x-badges.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/get-x-badges.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAA;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,WAAY,OAAO,KAAG,MAAM,EAAE,GAAG,SAoBvD,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { isObject } from '@scalar/helpers/object/is-object';
|
|
2
|
+
/**
|
|
3
|
+
* Reads the `x-badges` extension of an OpenAPI object (operation, tag, tag group or schema)
|
|
4
|
+
* for the navigation entry of that object.
|
|
5
|
+
*
|
|
6
|
+
* Badges without a name are dropped, and so are fields with an invalid value.
|
|
7
|
+
* Returns `undefined` when no badge is left, so the entry can omit the key.
|
|
8
|
+
*/
|
|
9
|
+
export const getXBadges = (object) => {
|
|
10
|
+
if (!isObject(object) || !Array.isArray(object['x-badges'])) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
const badges = object['x-badges'].flatMap((badge) => {
|
|
14
|
+
if (!isObject(badge) || typeof badge.name !== 'string' || badge.name === '') {
|
|
15
|
+
return [];
|
|
16
|
+
}
|
|
17
|
+
return [
|
|
18
|
+
{
|
|
19
|
+
name: badge.name,
|
|
20
|
+
...(badge.position === 'before' || badge.position === 'after' ? { position: badge.position } : {}),
|
|
21
|
+
...(typeof badge.color === 'string' ? { color: badge.color } : {}),
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
});
|
|
25
|
+
return badges.length ? badges : undefined;
|
|
26
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-paths.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/traverse-paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"traverse-paths.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/traverse-paths.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAE5F,OAAO,KAAK,EAA+B,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAA;AAK9F,eAAO,MAAM,qBAAqB,cAAe,eAAe,YAE/D,CAAA;AAwED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,aAAa,yEAMvB;IACD,QAAQ,EAAE,eAAe,CAAA;IACzB,oCAAoC;IACpC,OAAO,EAAE,OAAO,CAAA;IAChB,0DAA0D;IAC1D,UAAU,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAA;IAC7C,kBAAkB;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,oFAAoF;IACpF,oBAAoB,CAAC,EAAE,oBAAoB,CAAA;CAC5C,KAAG;IAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAA;CA2D7C,CAAA"}
|
|
@@ -3,6 +3,7 @@ import { forEachPathItemOperation, getPathItemOperationKey } from '../../helpers
|
|
|
3
3
|
import { getPathEntries } from '../../helpers/get-path-entries.js';
|
|
4
4
|
import { getResolvedRef, mergeSiblingReferences } from '../../helpers/get-resolved-ref.js';
|
|
5
5
|
import { isHidden } from '../../helpers/is-hidden.js';
|
|
6
|
+
import { getXBadges } from './get-x-badges.js';
|
|
6
7
|
import { traverseOperationExamples } from './traverse-examples.js';
|
|
7
8
|
import { XScalarStabilityValues } from '../../schemas/extensions/operation/index.js';
|
|
8
9
|
import { getNavigationTagNames } from './get-navigation-tag-names.js';
|
|
@@ -33,6 +34,7 @@ const createOperationEntry = ({ ref, operation, method, path, generateId, parent
|
|
|
33
34
|
});
|
|
34
35
|
const title = operationTitleSource !== 'path' && operation.summary?.trim() ? operation.summary : path;
|
|
35
36
|
const isDeprecated = isDeprecatedOperation(operation);
|
|
37
|
+
const badges = getXBadges(operation);
|
|
36
38
|
const examples = traverseOperationExamples(operation).map((example) => ({
|
|
37
39
|
type: 'example',
|
|
38
40
|
id: generateId({
|
|
@@ -51,6 +53,7 @@ const createOperationEntry = ({ ref, operation, method, path, generateId, parent
|
|
|
51
53
|
ref,
|
|
52
54
|
type: 'operation',
|
|
53
55
|
isDeprecated,
|
|
56
|
+
...(badges ? { badges } : {}),
|
|
54
57
|
children: examples.length ? examples : undefined,
|
|
55
58
|
};
|
|
56
59
|
return entry;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-schemas.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/traverse-schemas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"traverse-schemas.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/traverse-schemas.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACtE,OAAO,KAAK,EAAa,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,EAAE,eAAe,EAAgB,MAAM,wCAAwC,CAAA;AA6C3F;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,mDAKzB;IACD,QAAQ,EAAE,eAAe,CAAA;IACzB,wCAAwC;IACxC,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAA;IAC7C,UAAU,EAAE,MAAM,CAAA;CACnB,KAAG,eAAe,EAmDlB,CAAA"}
|
|
@@ -3,6 +3,7 @@ import { getResolvedRef, mergeSiblingReferences } from '../../helpers/get-resolv
|
|
|
3
3
|
import { isHidden } from '../../helpers/is-hidden.js';
|
|
4
4
|
import { getNavigationTagNames } from './get-navigation-tag-names.js';
|
|
5
5
|
import { getTag } from './get-tag.js';
|
|
6
|
+
import { getXBadges } from './get-x-badges.js';
|
|
6
7
|
/** Creates a traversed schema entry from an OpenAPI schema object.
|
|
7
8
|
*
|
|
8
9
|
* @param ref - JSON pointer reference to the schema in the OpenAPI document
|
|
@@ -17,12 +18,14 @@ const createSchemaEntry = ({ ref, name, generateId, parentTag, _schema, parentId
|
|
|
17
18
|
// Use schema.title if available, otherwise fall back to name
|
|
18
19
|
// @see https://json-schema.org/draft/2020-12/json-schema-core#section-4.3.5
|
|
19
20
|
const title = (isObject(schema) && 'title' in schema && schema.title) || name;
|
|
21
|
+
const badges = getXBadges(schema);
|
|
20
22
|
const entry = {
|
|
21
23
|
id,
|
|
22
24
|
title,
|
|
23
25
|
name,
|
|
24
26
|
ref,
|
|
25
27
|
type: 'model',
|
|
28
|
+
...(badges ? { badges } : {}),
|
|
26
29
|
};
|
|
27
30
|
return entry;
|
|
28
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-tags.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/traverse-tags.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"traverse-tags.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/traverse-tags.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAgB,MAAM,sBAAsB,CAAA;AACxE,OAAO,KAAK,EAAE,eAAe,EAAa,MAAM,wCAAwC,CAAA;AAIxF,KAAK,OAAO,GAAG,IAAI,CAAC,mBAAmB,EAAE,YAAY,GAAG,kBAAkB,GAAG,YAAY,CAAC,CAAA;AAuS1F;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,8FAKtB;IACD,QAAQ,EAAE,eAAe,CAAA;IACzB,oCAAoC;IACpC,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;CACjB,KAAG,cAAc,EAuEjB,CAAA"}
|