@scalar/workspace-store 0.57.1 → 0.58.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/dist/entities/auth/schema.d.ts +25 -0
- package/dist/entities/auth/schema.d.ts.map +1 -1
- package/dist/helpers/for-each-path-item-operation.d.ts +10 -0
- package/dist/helpers/for-each-path-item-operation.d.ts.map +1 -1
- package/dist/helpers/for-each-path-item-operation.js +67 -10
- package/dist/helpers/get-resolved-ref.d.ts.map +1 -1
- package/dist/helpers/get-resolved-ref.js +9 -0
- package/dist/mutators/operation/parameters.d.ts.map +1 -1
- package/dist/mutators/operation/parameters.js +6 -1
- package/dist/navigation/get-navigation-options.d.ts.map +1 -1
- package/dist/navigation/get-navigation-options.js +6 -3
- package/dist/navigation/helpers/traverse-tags.d.ts +3 -2
- package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-tags.js +140 -18
- package/dist/request-example/builder/body/get-request-body-example.d.ts +12 -0
- 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 +25 -12
- package/dist/request-example/builder/index.d.ts +1 -1
- package/dist/request-example/builder/index.d.ts.map +1 -1
- package/dist/request-example/builder/index.js +1 -1
- package/dist/request-example/index.d.ts +1 -1
- package/dist/request-example/index.d.ts.map +1 -1
- package/dist/request-example/index.js +1 -1
- package/dist/schemas/navigation.d.ts +16 -2
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +1 -0
- package/dist/schemas/reference-config/index.d.ts +6 -1
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +5 -0
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/v3.1/openapi/index.d.ts +3 -0
- package/dist/schemas/v3.1/openapi/index.d.ts.map +1 -1
- package/dist/schemas/v3.1/openapi/index.js +7 -0
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +175 -0
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/tag.d.ts +12 -0
- package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/tag.js +6 -0
- package/dist/schemas/v3.2/strict/openapi-document.d.ts +70 -0
- package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/index.d.ts +1 -1
- package/dist/schemas/workspace.d.ts +1 -1
- package/dist/server.d.ts +3 -3
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +177 -16
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @scalar/workspace-store
|
|
2
2
|
|
|
3
|
+
## 0.58.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#9941](https://github.com/scalar/scalar/pull/9941): Republish every package through npm trusted publishing. No functional changes.
|
|
8
|
+
|
|
9
|
+
## 0.58.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#9406](https://github.com/scalar/scalar/pull/9406): feat: support OpenAPI 3.2 nested tags
|
|
14
|
+
|
|
15
|
+
The navigation tree now nests tags via the OpenAPI 3.2 `tag.parent` field, building an arbitrary-depth hierarchy. A parent tag with no operations of its own is treated as a section; a tag that has both operations and children renders as both. Native `parent` nesting takes precedence over `x-tagGroups`, which stays as the fallback for older documents. The `summary` field is used as the tag title (after `x-displayName`), and the new `parent`, `kind` and `summary` fields are recognized on the Tag Object (both in `@scalar/workspace-store` and `@scalar/schemas`). In the modern layout, operation-less parent tags now render their own summary and description header instead of being flattened like a legacy `x-tagGroups` wrapper.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#9872](https://github.com/scalar/scalar/pull/9872): Bump shared runtime dependencies: `js-base64` (`^3.7.8` -> `^3.9.2`) and `type-fest` (`^5.3.1` -> `^5.8.0`).
|
|
20
|
+
- [#9896](https://github.com/scalar/scalar/pull/9896): Fix parameter name blanking in the Try It panel on first open.
|
|
21
|
+
|
|
22
|
+
Three related issues caused a parameter name (e.g. `x-scenario-id`) to appear
|
|
23
|
+
blank the first time the Try It panel was opened for a GET endpoint:
|
|
24
|
+
1. **`RequestTable` used `key: index`** — Vue reused the same `RequestTableRow`
|
|
25
|
+
component instance for the placeholder row `{ name: '' }` that `displayData`
|
|
26
|
+
appends, causing the component to receive an empty `data.name` prop and blank
|
|
27
|
+
its local `name` ref. Fixed by using a stable identity key derived from the
|
|
28
|
+
parameter name and value path.
|
|
29
|
+
|
|
30
|
+
2. **`RequestTableRow` watch and blur emitted empty names** — the `watch:name`
|
|
31
|
+
handler unconditionally synced the local ref to the incoming prop (including
|
|
32
|
+
`''`), and `handleKeyBlur` forwarded a blank name emitted by `CodeInputLite`
|
|
33
|
+
before it had rendered its initial value. Both now guard against overwriting
|
|
34
|
+
a valid name with an empty string.
|
|
35
|
+
|
|
36
|
+
3. **`upsertOperationParameter` mutated `param.name` unconditionally** — a
|
|
37
|
+
value-only update carrying `payload.name = ''` permanently blanked the
|
|
38
|
+
reactive parameter name in the store. The mutator now skips the name
|
|
39
|
+
assignment when the payload name is empty and the parameter already has one.
|
|
40
|
+
|
|
41
|
+
- [#9913](https://github.com/scalar/scalar/pull/9913): Add Julia (HTTP.jl) as a code example target. The new `julia/http` client generates HTTP.jl snippets, including headers, query parameters, cookies, basic auth, JSON bodies (as `Dict`s serialized with `JSON.json`), url-encoded bodies and `HTTP.Form` multipart uploads. Julia syntax highlighting and a Julia icon are included, so the client shows up in the code example picker like any other language.
|
|
42
|
+
- [#9930](https://github.com/scalar/scalar/pull/9930): Expose `getSchemaExampleFromBody` to generate a write-mode example from a request body's schema, ignoring any stored example.
|
|
43
|
+
- [#9932](https://github.com/scalar/scalar/pull/9932): Keep AsyncAPI documents intact in the server workspace store. `createServerWorkspaceStore` ingested every document as OpenAPI, so an AsyncAPI document lost its `channels` and `operations`, had `asyncapi` replaced by an empty `openapi` string, and gained an empty `paths` object — leaving `x-scalar-navigation` with nothing but Introduction and Models. AsyncAPI documents now take their own ingestion path, mirroring the client store's: the AsyncAPI upgrader runs instead of the OpenAPI one, the document is coerced against the AsyncAPI schema rather than the OpenAPI one, `x-original-aas-version` is preserved, and navigation is built with `traverseAsyncApiDocument` so `asyncapi-channel` and `asyncapi-operation` entries reach the sidebar.
|
|
44
|
+
- [#9934](https://github.com/scalar/scalar/pull/9934): Resolve local references when the server workspace store inspects a document. Navigation building and externalization both read through `getResolvedRef`, which needs the `$ref-value` the magic proxy supplies — without it a `$ref`'d path item read as a bare `{ $ref }`, so its operations reached neither the sidebar nor the generated chunks and vanished from the rendered document with no error. Split-file documents were affected too: bundling rewrites an external reference into a local pointer into `x-ext` rather than inlining it, and that bucket is not modelled by the OpenAPI schema, so coercion was dropping it and leaving every rewritten reference dangling. References are now followed through chains, since bundling a file that holds nothing but a `$ref` produces a bucket entry pointing at another bucket entry, and a reference whose target is not an object no longer spreads it key by key. Resolution stays lazy, local and synchronous, and resolved values are unwrapped before anything is stored, so the served document and its chunks keep their original `$ref`s. Note that `x-ext` and `x-ext-urls` now ship in the workspace payload: the generated chunks keep their `#/x-ext/…` pointers, so the client needs the buckets on the document root to resolve them.
|
|
45
|
+
|
|
3
46
|
## 0.57.1
|
|
4
47
|
|
|
5
48
|
## 0.57.0
|
|
@@ -827,7 +827,10 @@ declare const SelectedSecuritySchema: import("@scalar/typebox").TObject<{
|
|
|
827
827
|
SecurityRequirementObject: import("@scalar/typebox").TObject<{}>;
|
|
828
828
|
TagObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
829
829
|
name: import("@scalar/typebox").TString;
|
|
830
|
+
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
830
831
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
832
|
+
parent: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
833
|
+
kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
831
834
|
externalDocs: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExternalDocumentationObject">>;
|
|
832
835
|
}>, import("@scalar/typebox").TObject<{
|
|
833
836
|
'x-displayName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -2403,6 +2406,7 @@ declare const SelectedSecuritySchema: import("@scalar/typebox").TObject<{
|
|
|
2403
2406
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2404
2407
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
2405
2408
|
isGroup: import("@scalar/typebox").TBoolean;
|
|
2409
|
+
isTagGroup: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2406
2410
|
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2407
2411
|
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
2408
2412
|
}>]>;
|
|
@@ -2463,6 +2467,7 @@ declare const SelectedSecuritySchema: import("@scalar/typebox").TObject<{
|
|
|
2463
2467
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2464
2468
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
2465
2469
|
isGroup: import("@scalar/typebox").TBoolean;
|
|
2470
|
+
isTagGroup: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2466
2471
|
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2467
2472
|
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
2468
2473
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -2833,7 +2838,10 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
|
|
|
2833
2838
|
SecurityRequirementObject: import("@scalar/typebox").TObject<{}>;
|
|
2834
2839
|
TagObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
2835
2840
|
name: import("@scalar/typebox").TString;
|
|
2841
|
+
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2836
2842
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2843
|
+
parent: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2844
|
+
kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2837
2845
|
externalDocs: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExternalDocumentationObject">>;
|
|
2838
2846
|
}>, import("@scalar/typebox").TObject<{
|
|
2839
2847
|
'x-displayName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -4409,6 +4417,7 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
|
|
|
4409
4417
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
4410
4418
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
4411
4419
|
isGroup: import("@scalar/typebox").TBoolean;
|
|
4420
|
+
isTagGroup: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
4412
4421
|
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
4413
4422
|
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
4414
4423
|
}>]>;
|
|
@@ -4469,6 +4478,7 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
|
|
|
4469
4478
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
4470
4479
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
4471
4480
|
isGroup: import("@scalar/typebox").TBoolean;
|
|
4481
|
+
isTagGroup: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
4472
4482
|
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
4473
4483
|
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
4474
4484
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -4621,7 +4631,10 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
|
|
|
4621
4631
|
SecurityRequirementObject: import("@scalar/typebox").TObject<{}>;
|
|
4622
4632
|
TagObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
4623
4633
|
name: import("@scalar/typebox").TString;
|
|
4634
|
+
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
4624
4635
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
4636
|
+
parent: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
4637
|
+
kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
4625
4638
|
externalDocs: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExternalDocumentationObject">>;
|
|
4626
4639
|
}>, import("@scalar/typebox").TObject<{
|
|
4627
4640
|
'x-displayName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -6197,6 +6210,7 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
|
|
|
6197
6210
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
6198
6211
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
6199
6212
|
isGroup: import("@scalar/typebox").TBoolean;
|
|
6213
|
+
isTagGroup: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
6200
6214
|
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
6201
6215
|
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
6202
6216
|
}>]>;
|
|
@@ -6257,6 +6271,7 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
|
|
|
6257
6271
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
6258
6272
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
6259
6273
|
isGroup: import("@scalar/typebox").TBoolean;
|
|
6274
|
+
isTagGroup: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
6260
6275
|
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
6261
6276
|
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
6262
6277
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -6629,7 +6644,10 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
|
|
|
6629
6644
|
SecurityRequirementObject: import("@scalar/typebox").TObject<{}>;
|
|
6630
6645
|
TagObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
6631
6646
|
name: import("@scalar/typebox").TString;
|
|
6647
|
+
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
6632
6648
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
6649
|
+
parent: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
6650
|
+
kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
6633
6651
|
externalDocs: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExternalDocumentationObject">>;
|
|
6634
6652
|
}>, import("@scalar/typebox").TObject<{
|
|
6635
6653
|
'x-displayName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -8205,6 +8223,7 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
|
|
|
8205
8223
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
8206
8224
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
8207
8225
|
isGroup: import("@scalar/typebox").TBoolean;
|
|
8226
|
+
isTagGroup: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
8208
8227
|
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
8209
8228
|
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
8210
8229
|
}>]>;
|
|
@@ -8265,6 +8284,7 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
|
|
|
8265
8284
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
8266
8285
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
8267
8286
|
isGroup: import("@scalar/typebox").TBoolean;
|
|
8287
|
+
isTagGroup: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
8268
8288
|
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
8269
8289
|
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
8270
8290
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -8417,7 +8437,10 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
|
|
|
8417
8437
|
SecurityRequirementObject: import("@scalar/typebox").TObject<{}>;
|
|
8418
8438
|
TagObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
8419
8439
|
name: import("@scalar/typebox").TString;
|
|
8440
|
+
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
8420
8441
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
8442
|
+
parent: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
8443
|
+
kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
8421
8444
|
externalDocs: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExternalDocumentationObject">>;
|
|
8422
8445
|
}>, import("@scalar/typebox").TObject<{
|
|
8423
8446
|
'x-displayName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -9993,6 +10016,7 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
|
|
|
9993
10016
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
9994
10017
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
9995
10018
|
isGroup: import("@scalar/typebox").TBoolean;
|
|
10019
|
+
isTagGroup: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
9996
10020
|
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
9997
10021
|
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
9998
10022
|
}>]>;
|
|
@@ -10053,6 +10077,7 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
|
|
|
10053
10077
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
10054
10078
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
10055
10079
|
isGroup: import("@scalar/typebox").TBoolean;
|
|
10080
|
+
isTagGroup: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
10056
10081
|
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
10057
10082
|
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
10058
10083
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -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;AAuBnD,QAAA,MAAM,mBAAmB;;;;IAKxB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE9D,QAAA,MAAM,iBAAiB;;;;;;;IAMtB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAQ1D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB3B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEtE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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 -4,6 +4,12 @@ import type { OperationObject } from '../schemas/v3.1/strict/operation.js';
|
|
|
4
4
|
import type { PathItemObject } from '../schemas/v3.1/strict/path-item.js';
|
|
5
5
|
/**
|
|
6
6
|
* Resolves a path item (or webhook path item), merging sibling properties alongside `$ref`.
|
|
7
|
+
*
|
|
8
|
+
* References are followed through chains, not just one hop. Bundling a split-file document does not
|
|
9
|
+
* inline its external references — it moves each target into the `x-ext` bucket and rewrites the
|
|
10
|
+
* reference to point there — so a file that is itself only a `$ref` to another file bundles into a
|
|
11
|
+
* bucket entry holding a `$ref` to a second bucket entry. Stopping after one hop leaves that path
|
|
12
|
+
* item unresolved, and its operations reach neither the sidebar nor the generated chunks.
|
|
7
13
|
*/
|
|
8
14
|
export declare const getResolvedPathItem: (pathItem: NodeInput<PathItemObject> | undefined) => PathItemObject | undefined;
|
|
9
15
|
/**
|
|
@@ -16,6 +22,10 @@ export declare const getPathItemOperation: (pathItem: NodeInput<PathItemObject>
|
|
|
16
22
|
export declare const setPathItemOperation: (pathItem: NodeInput<PathItemObject> | undefined, method: HttpMethod, operation: OperationObject) => void;
|
|
17
23
|
/**
|
|
18
24
|
* Deletes an operation from a path item, including when the path item is a $ref wrapper.
|
|
25
|
+
*
|
|
26
|
+
* Every hop is cleared, not just the first. `getResolvedPathItem` resolves through chains — which
|
|
27
|
+
* bundling a split-file document produces — and gives a sibling precedence over the value it
|
|
28
|
+
* resolves to, so a copy left anywhere along the chain keeps surfacing after the delete.
|
|
19
29
|
*/
|
|
20
30
|
export declare const deletePathItemOperation: (pathItem: NodeInput<PathItemObject> | undefined, method: HttpMethod) => void;
|
|
21
31
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"for-each-path-item-operation.d.ts","sourceRoot":"","sources":["../../src/helpers/for-each-path-item-operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;
|
|
1
|
+
{"version":3,"file":"for-each-path-item-operation.d.ts","sourceRoot":"","sources":["../../src/helpers/for-each-path-item-operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAInE,OAAO,EAAE,KAAK,SAAS,EAA0C,MAAM,4BAA4B,CAAA;AACnG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAqBrE;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAU,SAAS,CAAC,cAAc,CAAC,GAAG,SAAS,KAAG,cAAc,GAAG,SA+BtG,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,SAAS,CAAC,cAAc,CAAC,GAAG,SAAS,EAC/C,QAAQ,UAAU,KACjB,SAAS,CAAC,eAAe,CAAC,GAAG,SAO/B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,SAAS,CAAC,cAAc,CAAC,GAAG,SAAS,EAC/C,QAAQ,UAAU,EAClB,WAAW,eAAe,KACzB,IAcF,CAAA;AA0BD;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,GAAI,UAAU,SAAS,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,QAAQ,UAAU,KAAG,IAQ7G,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,SAAS,CAAC,cAAc,CAAC,GAAG,SAAS,EAC/C,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,eAAe,CAAC,KAAK,IAAI,KAC5E,IAaF,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,SAAS,CAAC,cAAc,CAAC,GAAG,SAAS,KAAG,OAIjF,CAAA"}
|
|
@@ -1,13 +1,54 @@
|
|
|
1
1
|
import { isHttpMethod } from '@scalar/helpers/http/is-http-method';
|
|
2
|
+
import { isObjectLike } from '@scalar/helpers/object/is-object';
|
|
2
3
|
import { getResolvedRef, mergeSiblingReferences } from '../helpers/get-resolved-ref.js';
|
|
4
|
+
/**
|
|
5
|
+
* How many `$ref` hops to follow before treating a chain as circular.
|
|
6
|
+
*
|
|
7
|
+
* Real documents chain two or three deep at the very most, so anything past this is a reference
|
|
8
|
+
* cycle rather than a deep chain, and following it would never terminate.
|
|
9
|
+
*/
|
|
10
|
+
const MAX_REF_HOPS = 10;
|
|
11
|
+
/**
|
|
12
|
+
* Whether a merged path item still carries an unfollowed hop.
|
|
13
|
+
*
|
|
14
|
+
* `mergeSiblingReferences` spreads the resolved target over the siblings. When that target is itself
|
|
15
|
+
* a reference, the spread carries its `$ref-value` across as a real key, which is the signal that
|
|
16
|
+
* one more hop is waiting. A fully resolved path item never has one: the `$ref` sibling is kept (it
|
|
17
|
+
* is what the author wrote) but nothing resolves through it any more.
|
|
18
|
+
*/
|
|
19
|
+
const hasUnfollowedRef = (pathItem) => isObjectLike(pathItem) && Object.hasOwn(pathItem, '$ref-value');
|
|
3
20
|
/**
|
|
4
21
|
* Resolves a path item (or webhook path item), merging sibling properties alongside `$ref`.
|
|
22
|
+
*
|
|
23
|
+
* References are followed through chains, not just one hop. Bundling a split-file document does not
|
|
24
|
+
* inline its external references — it moves each target into the `x-ext` bucket and rewrites the
|
|
25
|
+
* reference to point there — so a file that is itself only a `$ref` to another file bundles into a
|
|
26
|
+
* bucket entry holding a `$ref` to a second bucket entry. Stopping after one hop leaves that path
|
|
27
|
+
* item unresolved, and its operations reach neither the sidebar nor the generated chunks.
|
|
5
28
|
*/
|
|
6
29
|
export const getResolvedPathItem = (pathItem) => {
|
|
7
30
|
if (!pathItem || typeof pathItem !== 'object') {
|
|
8
31
|
return undefined;
|
|
9
32
|
}
|
|
10
|
-
|
|
33
|
+
let resolved = getResolvedRef(pathItem, mergeSiblingReferences);
|
|
34
|
+
// `hop` counts resolutions already performed, the one above included, so the cap is the total.
|
|
35
|
+
for (let hop = 1; hasUnfollowedRef(resolved); hop++) {
|
|
36
|
+
if (hop >= MAX_REF_HOPS) {
|
|
37
|
+
// Give up rather than spin, and drop the hop that was never followed: `$ref-value` is meant to
|
|
38
|
+
// be virtual, so leaving a real one behind would serialize the half-resolved target into the
|
|
39
|
+
// stored document.
|
|
40
|
+
//
|
|
41
|
+
// Copied rather than deleted from, so resolving stays free of side effects. A caller reaches
|
|
42
|
+
// this with `document.paths[somePath]`, and a document is free to name a path `__proto__` —
|
|
43
|
+
// which makes that lookup `Object.prototype`. Mutating whatever arrives is not worth the risk
|
|
44
|
+
// when dropping a key costs a destructure.
|
|
45
|
+
const { '$ref-value': _unfollowed, ...withoutUnfollowedRef } = resolved;
|
|
46
|
+
console.warn(`Stopped resolving "${resolved.$ref}" after ${MAX_REF_HOPS} hops.\n\nThis reference most likely points at itself, directly or through another reference.`);
|
|
47
|
+
return withoutUnfollowedRef;
|
|
48
|
+
}
|
|
49
|
+
resolved = getResolvedRef(resolved, mergeSiblingReferences);
|
|
50
|
+
}
|
|
51
|
+
return resolved;
|
|
11
52
|
};
|
|
12
53
|
/**
|
|
13
54
|
* Returns an operation from a path item, resolving $ref wrappers on the path item first.
|
|
@@ -35,23 +76,39 @@ export const setPathItemOperation = (pathItem, method, operation) => {
|
|
|
35
76
|
}
|
|
36
77
|
pathItem[method] = operation;
|
|
37
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* Every node a path item's operations can live on, following the `$ref` chain.
|
|
81
|
+
*
|
|
82
|
+
* A reference can carry an operation on its dereferenced value and as a sibling override alongside
|
|
83
|
+
* the `$ref`, at any depth, and `getResolvedPathItem` merges all of them. Anything that writes to a
|
|
84
|
+
* path item therefore has to see the same set of nodes that reading it does.
|
|
85
|
+
*/
|
|
86
|
+
const pathItemRefChain = (pathItem) => {
|
|
87
|
+
const chain = [];
|
|
88
|
+
let node = pathItem;
|
|
89
|
+
while (isObjectLike(node) && !chain.includes(node) && chain.length < MAX_REF_HOPS) {
|
|
90
|
+
chain.push(node);
|
|
91
|
+
if (!('$ref' in node) || !('$ref-value' in node)) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
node = node['$ref-value'];
|
|
95
|
+
}
|
|
96
|
+
return chain;
|
|
97
|
+
};
|
|
38
98
|
/**
|
|
39
99
|
* Deletes an operation from a path item, including when the path item is a $ref wrapper.
|
|
100
|
+
*
|
|
101
|
+
* Every hop is cleared, not just the first. `getResolvedPathItem` resolves through chains — which
|
|
102
|
+
* bundling a split-file document produces — and gives a sibling precedence over the value it
|
|
103
|
+
* resolves to, so a copy left anywhere along the chain keeps surfacing after the delete.
|
|
40
104
|
*/
|
|
41
105
|
export const deletePathItemOperation = (pathItem, method) => {
|
|
42
106
|
if (!pathItem || typeof pathItem !== 'object') {
|
|
43
107
|
return;
|
|
44
108
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
// must be removed, otherwise getResolvedPathItem keeps exposing the operation after deletion.
|
|
48
|
-
if ('$ref' in pathItem && '$ref-value' in pathItem) {
|
|
49
|
-
const refValue = pathItem['$ref-value'];
|
|
50
|
-
if (refValue) {
|
|
51
|
-
delete refValue[method];
|
|
52
|
-
}
|
|
109
|
+
for (const node of pathItemRefChain(pathItem)) {
|
|
110
|
+
delete node[method];
|
|
53
111
|
}
|
|
54
|
-
delete pathItem[method];
|
|
55
112
|
};
|
|
56
113
|
/**
|
|
57
114
|
* Invokes a callback for each HTTP method operation on a path item, resolving $ref wrappers first.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resolved-ref.d.ts","sourceRoot":"","sources":["../../src/helpers/get-resolved-ref.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-resolved-ref.d.ts","sourceRoot":"","sources":["../../src/helpers/get-resolved-ref.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,IAAI,CAAA;CAAE,CAAA;AACjF,MAAM,MAAM,SAAS,CAAC,IAAI,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AASlD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KAAG,IAalE,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,IAAI,EACjC,MAAM,SAAS,CAAC,IAAI,CAAC,EACrB,YAAW,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,IAAuB,SAO5D,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isObject } from '@scalar/helpers/object/is-object';
|
|
1
2
|
const defaultTransform = (node) => {
|
|
2
3
|
// `$ref-value` is populated by the bundler/proxy when the document is resolved. The schemas now
|
|
3
4
|
// type it as optional so unresolved `{ $ref }` objects pass through coercion untouched, but callers
|
|
@@ -11,6 +12,14 @@ const defaultTransform = (node) => {
|
|
|
11
12
|
*/
|
|
12
13
|
export const mergeSiblingReferences = (node) => {
|
|
13
14
|
const { '$ref-value': value, ...rest } = node;
|
|
15
|
+
// A reference can land on something that is not a record: a pointer that aims at a string
|
|
16
|
+
// (`$ref: '#/info/title'`), one that was never resolved, or one whose target is an array. Spreading
|
|
17
|
+
// any of those copies it index by index, so a reference to a title becomes `{ 0: 'G', 1: 'a', … }`
|
|
18
|
+
// and every consumer downstream treats those digits as real properties. There is nothing to merge
|
|
19
|
+
// siblings onto in that case, so only the siblings survive.
|
|
20
|
+
if (!isObject(value)) {
|
|
21
|
+
return rest;
|
|
22
|
+
}
|
|
14
23
|
return { ...value, ...rest };
|
|
15
24
|
};
|
|
16
25
|
/**
|
|
@@ -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;AAIrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAmClD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,iBAAiB,GAAG,IAAI,EAClC,4CAA4C,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;AAIrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAmClD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,iBAAiB,GAAG,IAAI,EAClC,4CAA4C,eAAe,CAAC,4BAA4B,CAAC,SAuD1F,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,8BAA8B,GACzC,UAAU,iBAAiB,GAAG,IAAI,EAClC,uCAAuC,eAAe,CAAC,mCAAmC,CAAC,SA8C5F,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,iBAAiB,GAAG,IAAI,EAClC,6BAA6B,eAAe,CAAC,4BAA4B,CAAC,SAkC3E,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,4BAA4B,GACvC,UAAU,iBAAiB,GAAG,IAAI,EAClC,gBAAgB,eAAe,CAAC,iCAAiC,CAAC,SAanE,CAAA"}
|
|
@@ -43,7 +43,12 @@ export const upsertOperationParameter = (document, { meta, type, payload, origin
|
|
|
43
43
|
// To support content-type parameters in the API client, we just assume an
|
|
44
44
|
// examples property can be set.
|
|
45
45
|
const param = originalParameter;
|
|
46
|
-
|
|
46
|
+
// Only update the name when the payload carries a non-empty value — an
|
|
47
|
+
// empty name in the payload means the key input blurred before rendering
|
|
48
|
+
// its initial value and should not overwrite the existing parameter name.
|
|
49
|
+
if (payload.name || !param.name) {
|
|
50
|
+
param.name = payload.name;
|
|
51
|
+
}
|
|
47
52
|
if (!param.examples) {
|
|
48
53
|
param.examples = {};
|
|
49
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-navigation-options.d.ts","sourceRoot":"","sources":["../../src/navigation/get-navigation-options.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,4BAA4B,EAAgC,MAAM,6BAA6B,CAAA;AAE7G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAG7D,MAAM,MAAM,iBAAiB,GACzB,OAAO,CACL,IAAI,CACF,4BAA4B,EAC1B,qBAAqB,GACrB,iBAAiB,GACjB,uBAAuB,GACvB,qBAAqB,GACrB,mBAAmB,GACnB,kBAAkB,GAClB,YAAY,GACZ,YAAY,GACZ,oBAAoB,GACpB,sBAAsB,CACzB,CACF,GACD,SAAS,CAAA;AAEb;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,cAAc,MAAM,EAAE,UAAU,iBAAiB,KAAG,
|
|
1
|
+
{"version":3,"file":"get-navigation-options.d.ts","sourceRoot":"","sources":["../../src/navigation/get-navigation-options.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,4BAA4B,EAAgC,MAAM,6BAA6B,CAAA;AAE7G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAG7D,MAAM,MAAM,iBAAiB,GACzB,OAAO,CACL,IAAI,CACF,4BAA4B,EAC1B,qBAAqB,GACrB,iBAAiB,GACjB,uBAAuB,GACvB,qBAAqB,GACrB,mBAAmB,GACnB,kBAAkB,GAClB,YAAY,GACZ,YAAY,GACZ,oBAAoB,GACpB,sBAAsB,CACzB,CACF,GACD,SAAS,CAAA;AAEb;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,cAAc,MAAM,EAAE,UAAU,iBAAiB,KAAG,mBAmJxF,CAAA"}
|
|
@@ -22,9 +22,12 @@ export const getNavigationOptions = (documentName, options) => {
|
|
|
22
22
|
}
|
|
23
23
|
// -------- Default tag id generation logic --------
|
|
24
24
|
if (props.type === 'tag') {
|
|
25
|
-
// x-tagGroups wrapper nodes use `tag-group
|
|
26
|
-
//
|
|
27
|
-
|
|
25
|
+
// x-tagGroups wrapper nodes use `tag-group/…` IDs so they never share an ID
|
|
26
|
+
// with a real tag that has the same display name. Native OpenAPI 3.2 nested
|
|
27
|
+
// tags are real, uniquely-named tags, so they keep the regular `tag` prefix
|
|
28
|
+
// regardless of whether they act as a section (`isGroup`). This keeps their
|
|
29
|
+
// anchors stable even when a tag gains or loses operations of its own.
|
|
30
|
+
const tagPrefix = props.isTagGroup ? 'tag-group' : 'tag';
|
|
28
31
|
if (options?.generateTagSlug) {
|
|
29
32
|
return `${documentId}/${tagPrefix}/${options.generateTagSlug(props.tag)}`;
|
|
30
33
|
}
|
|
@@ -3,10 +3,11 @@ import type { TraversedEntry } from '../../schemas/navigation.js';
|
|
|
3
3
|
import type { OpenApiDocument } from '../../schemas/v3.1/strict/openapi-document.js';
|
|
4
4
|
type Options = Pick<TraverseSpecOptions, 'tagsSorter' | 'operationsSorter' | 'generateId'>;
|
|
5
5
|
/**
|
|
6
|
-
* Traverses the tags map to create navigation entries, handling
|
|
6
|
+
* Traverses the tags map to create navigation entries, handling nested, grouped and ungrouped tags.
|
|
7
7
|
*
|
|
8
8
|
* This function processes the OpenAPI document's tags to:
|
|
9
|
-
* -
|
|
9
|
+
* - Nest tags via the OpenAPI 3.2 `parent` field (takes precedence)
|
|
10
|
+
* - Otherwise handle tag groups if specified via x-tagGroups
|
|
10
11
|
* - Sort tags and their operations according to provided sorters
|
|
11
12
|
* - Create navigation entries for each tag or tag group
|
|
12
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-tags.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/traverse-tags.ts"],"names":[],"mappings":"AAKA,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;
|
|
1
|
+
{"version":3,"file":"traverse-tags.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/traverse-tags.ts"],"names":[],"mappings":"AAKA,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;AAiS1F;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,GAAI,2FAK1B;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,EAoEjB,CAAA"}
|