@scalar/blocks 0.5.1 → 0.5.3
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 +25 -0
- package/dist/code-example/components/CodeExample.vue.d.ts +2 -0
- package/dist/code-example/components/CodeExample.vue.d.ts.map +1 -1
- package/dist/code-example/components/CodeExample.vue.js +1 -1
- package/dist/code-example/components/CodeExample.vue.js.map +1 -1
- package/dist/code-example/components/CodeExample.vue.script.js +71 -68
- package/dist/code-example/components/CodeExample.vue.script.js.map +1 -1
- package/dist/code-example/helpers/generate-client-options.d.ts.map +1 -1
- package/dist/code-example/helpers/generate-client-options.js.map +1 -1
- package/dist/code-example/helpers/get-clients.d.ts.map +1 -1
- package/dist/code-example/helpers/get-clients.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-body.js +42 -42
- package/dist/code-example/helpers/operation-to-har/process-body.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-parameters.js +63 -62
- package/dist/code-example/helpers/operation-to-har/process-parameters.js.map +1 -1
- package/dist/code-example/mount.d.ts.map +1 -1
- package/dist/code-example/mount.js +1 -1
- package/dist/code-example/mount.js.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/schema/Schema.vue.d.ts.map +1 -1
- package/dist/schema/Schema.vue.js +1 -1
- package/dist/schema/Schema.vue.js.map +1 -1
- package/dist/schema/Schema.vue.script.js +122 -116
- package/dist/schema/Schema.vue.script.js.map +1 -1
- package/dist/schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/schema/SchemaComposition.vue.js +1 -1
- package/dist/schema/SchemaComposition.vue.js.map +1 -1
- package/dist/schema/SchemaComposition.vue.script.js +110 -106
- package/dist/schema/SchemaComposition.vue.script.js.map +1 -1
- package/dist/schema/SchemaEnumPropertyItem.vue.js.map +1 -1
- package/dist/schema/SchemaEnumPropertyItem.vue.script.js +2 -2
- package/dist/schema/SchemaEnumPropertyItem.vue.script.js.map +1 -1
- package/dist/schema/SchemaObjectProperties.vue.js.map +1 -1
- package/dist/schema/SchemaObjectProperties.vue.script.js +1 -1
- package/dist/schema/SchemaObjectProperties.vue.script.js.map +1 -1
- package/dist/schema/SchemaProperty.vue.d.ts +1 -1
- package/dist/schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/schema/SchemaProperty.vue.js +1 -1
- package/dist/schema/SchemaProperty.vue.js.map +1 -1
- package/dist/schema/SchemaProperty.vue.script.js +179 -164
- package/dist/schema/SchemaProperty.vue.script.js.map +1 -1
- package/dist/schema/SchemaPropertyHeading.vue.d.ts +5 -3
- package/dist/schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/schema/SchemaPropertyHeading.vue.js.map +1 -1
- package/dist/schema/SchemaPropertyHeading.vue.script.js +122 -117
- package/dist/schema/SchemaPropertyHeading.vue.script.js.map +1 -1
- package/dist/schema/SchemaPropertyPattern.vue.js +1 -1
- package/dist/schema/SchemaPropertyPattern.vue.js.map +1 -1
- package/dist/schema/SchemaPropertyPattern.vue.script.js +1 -1
- package/dist/schema/SchemaPropertyPattern.vue.script.js.map +1 -1
- package/dist/schema/discriminator-metadata.d.ts +13 -0
- package/dist/schema/discriminator-metadata.d.ts.map +1 -0
- package/dist/schema/discriminator-metadata.js +6 -0
- package/dist/schema/discriminator-metadata.js.map +1 -0
- package/dist/schema/helpers/get-compositions-to-render.d.ts +3 -1
- package/dist/schema/helpers/get-compositions-to-render.d.ts.map +1 -1
- package/dist/schema/helpers/get-compositions-to-render.js +25 -24
- package/dist/schema/helpers/get-compositions-to-render.js.map +1 -1
- package/dist/schema/helpers/get-property-description.d.ts +6 -3
- package/dist/schema/helpers/get-property-description.d.ts.map +1 -1
- package/dist/schema/helpers/get-property-description.js +10 -10
- package/dist/schema/helpers/get-property-description.js.map +1 -1
- package/dist/schema/helpers/has-complex-array-items.d.ts.map +1 -1
- package/dist/schema/helpers/has-complex-array-items.js +6 -2
- package/dist/schema/helpers/has-complex-array-items.js.map +1 -1
- package/dist/schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
- package/dist/schema/helpers/merge-all-of-schemas.js +2 -2
- package/dist/schema/helpers/merge-all-of-schemas.js.map +1 -1
- package/dist/schema/helpers/optimize-value-for-display.d.ts.map +1 -1
- package/dist/schema/helpers/optimize-value-for-display.js +34 -33
- package/dist/schema/helpers/optimize-value-for-display.js.map +1 -1
- package/dist/schema/helpers/partition-all-of-compositions.d.ts.map +1 -1
- package/dist/schema/helpers/partition-all-of-compositions.js +39 -27
- package/dist/schema/helpers/partition-all-of-compositions.js.map +1 -1
- package/dist/schema/helpers/schema-name.js +1 -1
- package/dist/schema/helpers/schema-name.js.map +1 -1
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +13 -11
- package/dist/schema/localization/index.d.ts +11 -1
- package/dist/schema/localization/index.d.ts.map +1 -1
- package/dist/schema/localization/locales/ar.d.ts +10 -0
- package/dist/schema/localization/locales/ar.d.ts.map +1 -1
- package/dist/schema/localization/locales/ar.js +11 -1
- package/dist/schema/localization/locales/ar.js.map +1 -1
- package/dist/schema/localization/locales/de.d.ts +10 -0
- package/dist/schema/localization/locales/de.d.ts.map +1 -1
- package/dist/schema/localization/locales/de.js +11 -1
- package/dist/schema/localization/locales/de.js.map +1 -1
- package/dist/schema/localization/locales/en.d.ts +10 -0
- package/dist/schema/localization/locales/en.d.ts.map +1 -1
- package/dist/schema/localization/locales/en.js +11 -1
- package/dist/schema/localization/locales/en.js.map +1 -1
- package/dist/schema/localization/locales/es.d.ts +10 -0
- package/dist/schema/localization/locales/es.d.ts.map +1 -1
- package/dist/schema/localization/locales/es.js +11 -1
- package/dist/schema/localization/locales/es.js.map +1 -1
- package/dist/schema/localization/locales/fr.d.ts +10 -0
- package/dist/schema/localization/locales/fr.d.ts.map +1 -1
- package/dist/schema/localization/locales/fr.js +11 -1
- package/dist/schema/localization/locales/fr.js.map +1 -1
- package/dist/schema/localization/locales/pt.d.ts +10 -0
- package/dist/schema/localization/locales/pt.d.ts.map +1 -1
- package/dist/schema/localization/locales/pt.js +11 -1
- package/dist/schema/localization/locales/pt.js.map +1 -1
- package/dist/schema/localization/locales/ru.d.ts +10 -0
- package/dist/schema/localization/locales/ru.d.ts.map +1 -1
- package/dist/schema/localization/locales/ru.js +11 -1
- package/dist/schema/localization/locales/ru.js.map +1 -1
- package/dist/schema/localization/locales/zh-cn.d.ts +10 -0
- package/dist/schema/localization/locales/zh-cn.d.ts.map +1 -1
- package/dist/schema/localization/locales/zh-cn.js +11 -1
- package/dist/schema/localization/locales/zh-cn.js.map +1 -1
- package/dist/schema/localization/locales/zh-tw.d.ts +69 -0
- package/dist/schema/localization/locales/zh-tw.d.ts.map +1 -0
- package/dist/schema/localization/locales/zh-tw.js +70 -0
- package/dist/schema/localization/locales/zh-tw.js.map +1 -0
- package/dist/schema/localization/translations.d.ts +147 -0
- package/dist/schema/localization/translations.d.ts.map +1 -1
- package/dist/schema/localization/translations.js +5 -3
- package/dist/schema/localization/translations.js.map +1 -1
- package/dist/schema/types.d.ts +2 -0
- package/dist/schema/types.d.ts.map +1 -1
- package/dist/shared/ExternalDocs.vue.d.ts +9 -0
- package/dist/shared/ExternalDocs.vue.d.ts.map +1 -0
- package/dist/shared/ExternalDocs.vue.js +7 -0
- package/dist/shared/ExternalDocs.vue.js.map +1 -0
- package/dist/shared/ExternalDocs.vue.script.js +46 -0
- package/dist/shared/ExternalDocs.vue.script.js.map +1 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +4 -3
- package/dist/style.css +63 -19
- package/dist/styles/schema-tree.css +3 -1
- package/dist/vue-styles.css +1 -1
- package/package.json +10 -10
|
@@ -1,49 +1,58 @@
|
|
|
1
1
|
import { mergeAllOfSchemas as e } from "./merge-all-of-schemas.js";
|
|
2
|
-
import {
|
|
2
|
+
import { getResolvedRef as t } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
+
import { resolve as n } from "@scalar/workspace-store/resolve";
|
|
3
4
|
//#region src/schema/helpers/partition-all-of-compositions.ts
|
|
4
|
-
var
|
|
5
|
-
let
|
|
6
|
-
|
|
5
|
+
var r = ["oneOf", "anyOf"], i = (e, a, o) => {
|
|
6
|
+
let s = t(e);
|
|
7
|
+
if (typeof s == "boolean") {
|
|
8
|
+
a.push({
|
|
9
|
+
kind: "boolean",
|
|
10
|
+
schema: n.schema(s)
|
|
11
|
+
});
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
let { allOf: c, oneOf: l, anyOf: u, not: d, if: f, then: p, else: m, ...h } = n.schema(e);
|
|
15
|
+
Object.keys(h).length > 0 && a.push({
|
|
7
16
|
kind: "object",
|
|
8
|
-
schema:
|
|
17
|
+
schema: h
|
|
9
18
|
});
|
|
10
|
-
for (let e of
|
|
11
|
-
let t = e === "oneOf" ?
|
|
19
|
+
for (let e of r) {
|
|
20
|
+
let t = e === "oneOf" ? l : u, n = Array.isArray(t) && t.some((e) => {
|
|
12
21
|
let t = e && typeof e == "object" && "$ref" in e ? e.$ref : void 0;
|
|
13
|
-
return typeof t == "string" &&
|
|
22
|
+
return typeof t == "string" && o.has(t);
|
|
14
23
|
});
|
|
15
|
-
Array.isArray(t) && t.length > 0 &&
|
|
24
|
+
Array.isArray(t) && t.length > 0 && a.push({
|
|
16
25
|
kind: "choice",
|
|
17
26
|
composition: e,
|
|
18
27
|
value: { [e]: t },
|
|
19
28
|
inheritedSelection: n
|
|
20
29
|
});
|
|
21
30
|
}
|
|
22
|
-
if (Array.isArray(
|
|
23
|
-
for (let e of
|
|
24
|
-
let
|
|
25
|
-
if (typeof
|
|
26
|
-
if (
|
|
27
|
-
|
|
28
|
-
} else
|
|
31
|
+
if (Array.isArray(c)) {
|
|
32
|
+
for (let e of c) if (typeof e == "boolean" || e && typeof e == "object") {
|
|
33
|
+
let t = n.schema(e).$ref;
|
|
34
|
+
if (typeof t == "string") {
|
|
35
|
+
if (o.has(t)) continue;
|
|
36
|
+
i(e, a, new Set(o).add(t));
|
|
37
|
+
} else i(e, a, o);
|
|
29
38
|
}
|
|
30
39
|
}
|
|
31
|
-
},
|
|
32
|
-
if (!
|
|
33
|
-
let { allOf:
|
|
34
|
-
if (!Array.isArray(
|
|
40
|
+
}, a = (t) => {
|
|
41
|
+
if (!t) return { segments: [] };
|
|
42
|
+
let { allOf: r, oneOf: a, anyOf: o, not: s, if: c, then: l, else: u, ...d } = t;
|
|
43
|
+
if (!Array.isArray(r)) return { segments: [{
|
|
35
44
|
kind: "object",
|
|
36
|
-
schema:
|
|
45
|
+
schema: t
|
|
37
46
|
}] };
|
|
38
47
|
let f = [];
|
|
39
48
|
Object.keys(d).length > 0 && f.push({
|
|
40
49
|
kind: "object",
|
|
41
50
|
schema: d
|
|
42
51
|
});
|
|
43
|
-
let p = "$ref" in
|
|
44
|
-
for (let e of
|
|
45
|
-
let
|
|
46
|
-
|
|
52
|
+
let p = "$ref" in t ? t.$ref : void 0, m = new Set(typeof p == "string" ? [p] : []);
|
|
53
|
+
for (let e of r) if (typeof e == "boolean" || e && typeof e == "object") {
|
|
54
|
+
let t = n.schema(e).$ref;
|
|
55
|
+
i(e, f, typeof t == "string" ? new Set(m).add(t) : m);
|
|
47
56
|
}
|
|
48
57
|
let h = [], g = [], _ = 0, v = () => {
|
|
49
58
|
if (g.length === 0) return;
|
|
@@ -53,7 +62,10 @@ var n = ["oneOf", "anyOf"], r = (e, i, a) => {
|
|
|
53
62
|
schema: t
|
|
54
63
|
}), g = [];
|
|
55
64
|
};
|
|
56
|
-
for (let e of f) e.kind === "object" ? g.push(e.schema) : e.
|
|
65
|
+
for (let e of f) e.kind === "object" ? g.push(e.schema) : e.kind === "boolean" ? (v(), h.push({
|
|
66
|
+
kind: "object",
|
|
67
|
+
schema: e.schema
|
|
68
|
+
})) : e.inheritedSelection ? _++ : (v(), h.push({
|
|
57
69
|
kind: "choice",
|
|
58
70
|
composition: e.composition,
|
|
59
71
|
value: e.value,
|
|
@@ -62,6 +74,6 @@ var n = ["oneOf", "anyOf"], r = (e, i, a) => {
|
|
|
62
74
|
return v(), { segments: h };
|
|
63
75
|
};
|
|
64
76
|
//#endregion
|
|
65
|
-
export {
|
|
77
|
+
export { a as partitionAllOfCompositions };
|
|
66
78
|
|
|
67
79
|
//# sourceMappingURL=partition-all-of-compositions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partition-all-of-compositions.js","names":[],"sources":["../../../src/schema/helpers/partition-all-of-compositions.ts"],"sourcesContent":["import { resolve } from '@scalar/workspace-store/resolve'\nimport type { SchemaObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\n\nimport { mergeAllOfSchemas } from './merge-all-of-schemas'\nimport type { CompositionKeyword } from './schema-composition'\n\ntype ChoiceKeyword = Extract<CompositionKeyword, 'oneOf' | 'anyOf'>\n\n/** An ordered piece of an `allOf`: either a merged object or a choice picker. */\ntype AllOfSegment =\n | { kind: 'object'; schema: SchemaObject }\n | {\n kind: 'choice'\n composition: ChoiceKeyword\n /** A minimal schema carrying only this group's composition, for SchemaComposition */\n value: SchemaObject\n /** Ordinal among choice members, matching the request-example composition key */\n choiceIndex: number\n }\n\nconst CHOICE_KEYWORDS: ChoiceKeyword[] = ['oneOf', 'anyOf']\n\ntype Member =\n | { kind: 'object'; schema: SchemaObject }\n | { kind: 'choice'; composition: ChoiceKeyword; value: SchemaObject; inheritedSelection: boolean }\n\n/**\n * Flattens a member's own (non-composition) properties and every `oneOf`/`anyOf`\n * group it declares — recursing into nested `allOf` — into a flat, ordered list,\n * preserving source order so choice groups stay where they were authored.\n *\n * Pure-constraint keywords (`not`, `if/then/else`) are dropped: they carry no\n * visual variant and Scalar would otherwise render `not` as a bogus picker. The\n * rule still lives in the schema (validation) and in field descriptions.\n */\nconst collectMembers = (schema: SchemaObject, out: Member[], seenRefs: Set<string>): void => {\n const {\n allOf,\n oneOf,\n anyOf,\n not: _not,\n if: _if,\n then: _then,\n else: _else,\n ...rest\n }: SchemaObject & {\n allOf?: unknown[]\n oneOf?: unknown[]\n anyOf?: unknown[]\n not?: unknown\n if?: unknown\n then?: unknown\n else?: unknown\n } = schema\n\n if (Object.keys(rest).length > 0) {\n out.push({ kind: 'object', schema: rest })\n }\n\n for (const keyword of CHOICE_KEYWORDS) {\n const value = keyword === 'oneOf' ? oneOf : anyOf\n // A variant inherits its base fields through allOf, but the base's choice\n // containing that variant has already been selected. Rendering it again\n // would re-enter the variant and expose fields from the other branches.\n const selectsAncestor =\n Array.isArray(value) &&\n value.some((branch) => {\n const ref = branch && typeof branch === 'object' && '$ref' in branch ? branch.$ref : undefined\n return typeof ref === 'string' && seenRefs.has(ref)\n })\n if (Array.isArray(value) && value.length > 0) {\n out.push({\n kind: 'choice',\n composition: keyword,\n value: { [keyword]: value } as unknown as SchemaObject,\n inheritedSelection: selectsAncestor,\n })\n }\n }\n\n if (Array.isArray(allOf)) {\n for (const rawMember of allOf) {\n if (rawMember && typeof rawMember === 'object') {\n const resolved: SchemaObject & { $ref?: string } = resolve.schema(rawMember)\n // Break `$ref` cycles reached through `allOf` (e.g. a member that\n // references an ancestor). Without this guard a recursive `allOf`\n // schema would recurse forever. `mergeAllOfSchemas` guards the same way.\n const ref = resolved.$ref\n if (typeof ref === 'string') {\n if (seenRefs.has(ref)) {\n continue\n }\n collectMembers(resolved, out, new Set(seenRefs).add(ref))\n } else {\n collectMembers(resolved, out, seenRefs)\n }\n }\n }\n }\n}\n\n/**\n * Splits an `allOf` schema into an ordered list of segments so the renderer can\n * show each `oneOf`/`anyOf` group as its own picker **in the position it was\n * declared**, with the surrounding plain fields around it.\n *\n * `mergeAllOfSchemas` alone keeps only the FIRST `oneOf`/`anyOf` (dropping the\n * 2nd+ groups of an object with several independent mutually-exclusive\n * selections) and, being a merge, also loses the ordering between fields and\n * choices. Walking the members in order fixes both: runs of consecutive object\n * members are merged into one object segment, and each choice member becomes its\n * own picker segment in place.\n */\nexport const partitionAllOfCompositions = (schema: SchemaObject | undefined): { segments: AllOfSegment[] } => {\n if (!schema) {\n return { segments: [] }\n }\n\n // The schema's own (non-composition) keys, minus its top-level `oneOf`/`anyOf`\n // — those are rendered as their own composition by the caller, not here.\n const {\n allOf,\n oneOf: _oneOf,\n anyOf: _anyOf,\n not: _not,\n if: _if,\n then: _then,\n else: _else,\n ...rest\n }: SchemaObject & {\n allOf?: unknown[]\n oneOf?: unknown[]\n anyOf?: unknown[]\n not?: unknown\n if?: unknown\n then?: unknown\n else?: unknown\n } = schema\n\n if (!Array.isArray(allOf)) {\n return { segments: [{ kind: 'object', schema: schema }] }\n }\n\n const members: Member[] = []\n if (Object.keys(rest).length > 0) {\n members.push({ kind: 'object', schema: rest })\n }\n const schemaRef = '$ref' in schema ? schema.$ref : undefined\n const seenRefs = new Set<string>(typeof schemaRef === 'string' ? [schemaRef] : [])\n for (const rawMember of allOf) {\n if (rawMember && typeof rawMember === 'object') {\n const resolved: SchemaObject & { $ref?: string } = resolve.schema(rawMember)\n const ref = resolved.$ref\n collectMembers(resolved, members, typeof ref === 'string' ? new Set(seenRefs).add(ref) : seenRefs)\n }\n }\n\n // Coalesce consecutive object members into a single merged object segment,\n // keeping choice members as their own segments between them.\n const segments: AllOfSegment[] = []\n let objectRun: SchemaObject[] = []\n let choiceIndex = 0\n\n const flushObjectRun = () => {\n if (objectRun.length === 0) {\n return\n }\n const merged = objectRun.length === 1 ? objectRun[0]! : mergeAllOfSchemas({ allOf: objectRun } as SchemaObject)\n segments.push({ kind: 'object', schema: merged })\n objectRun = []\n }\n\n for (const member of members) {\n if (member.kind === 'object') {\n objectRun.push(member.schema)\n } else if (member.inheritedSelection) {\n // Hidden inherited choices still occupy an ordinal in the request example.\n choiceIndex++\n } else {\n flushObjectRun()\n // `choiceIndex` is the ordinal used to build the composition-selection key\n // that syncs each picker with the request example. It MUST stay aligned\n // with the ordinal computed while walking `allOf` in\n // `get-example-from-schema.ts` (`@scalar/workspace-store`), or a picker and\n // its generated example fall out of sync.\n segments.push({\n kind: 'choice',\n composition: member.composition,\n value: member.value,\n choiceIndex: choiceIndex++,\n })\n }\n }\n flushObjectRun()\n\n return { segments }\n}\n"],"mappings":";;;AAoBA,IAAM,IAAmC,CAAC,SAAS,OAAO,GAepD,KAAkB,GAAsB,GAAe,MAAgC;CAC3F,IAAM,EACJ,UACA,UACA,UACA,KAAK,GACL,IAAI,GACJ,MAAM,GACN,MAAM,GACN,GAAG,MASD;CAEJ,AAAI,OAAO,KAAK,CAAI,CAAC,CAAC,SAAS,KAC7B,EAAI,KAAK;EAAE,MAAM;EAAU,QAAQ;CAAK,CAAC;CAG3C,KAAK,IAAM,KAAW,GAAiB;EACrC,IAAM,IAAQ,MAAY,UAAU,IAAQ,GAItC,IACJ,MAAM,QAAQ,CAAK,KACnB,EAAM,MAAM,MAAW;GACrB,IAAM,IAAM,KAAU,OAAO,KAAW,YAAY,UAAU,IAAS,EAAO,OAAO,KAAA;GACrF,OAAO,OAAO,KAAQ,YAAY,EAAS,IAAI,CAAG;EACpD,CAAC;EACH,AAAI,MAAM,QAAQ,CAAK,KAAK,EAAM,SAAS,KACzC,EAAI,KAAK;GACP,MAAM;GACN,aAAa;GACb,OAAO,GAAG,IAAU,EAAM;GAC1B,oBAAoB;EACtB,CAAC;CAEL;CAEA,IAAI,MAAM,QAAQ,CAAK;OAChB,IAAM,KAAa,GACtB,IAAI,KAAa,OAAO,KAAc,UAAU;GAC9C,IAAM,IAA6C,EAAQ,OAAO,CAAS,GAIrE,IAAM,EAAS;GACrB,IAAI,OAAO,KAAQ,UAAU;IAC3B,IAAI,EAAS,IAAI,CAAG,GAClB;IAEF,EAAe,GAAU,GAAK,IAAI,IAAI,CAAQ,CAAC,CAAC,IAAI,CAAG,CAAC;GAC1D,OACE,EAAe,GAAU,GAAK,CAAQ;EAE1C;;AAGN,GAca,KAA8B,MAAmE;CAC5G,IAAI,CAAC,GACH,OAAO,EAAE,UAAU,CAAC,EAAE;CAKxB,IAAM,EACJ,UACA,OAAO,GACP,OAAO,GACP,KAAK,GACL,IAAI,GACJ,MAAM,GACN,MAAM,GACN,GAAG,MASD;CAEJ,IAAI,CAAC,MAAM,QAAQ,CAAK,GACtB,OAAO,EAAE,UAAU,CAAC;EAAE,MAAM;EAAkB;CAAO,CAAC,EAAE;CAG1D,IAAM,IAAoB,CAAC;CAC3B,AAAI,OAAO,KAAK,CAAI,CAAC,CAAC,SAAS,KAC7B,EAAQ,KAAK;EAAE,MAAM;EAAU,QAAQ;CAAK,CAAC;CAE/C,IAAM,IAAY,UAAU,IAAS,EAAO,OAAO,KAAA,GAC7C,IAAW,IAAI,IAAY,OAAO,KAAc,WAAW,CAAC,CAAS,IAAI,CAAC,CAAC;CACjF,KAAK,IAAM,KAAa,GACtB,IAAI,KAAa,OAAO,KAAc,UAAU;EAC9C,IAAM,IAA6C,EAAQ,OAAO,CAAS,GACrE,IAAM,EAAS;EACrB,EAAe,GAAU,GAAS,OAAO,KAAQ,WAAW,IAAI,IAAI,CAAQ,CAAC,CAAC,IAAI,CAAG,IAAI,CAAQ;CACnG;CAKF,IAAM,IAA2B,CAAC,GAC9B,IAA4B,CAAC,GAC7B,IAAc,GAEZ,UAAuB;EAC3B,IAAI,EAAU,WAAW,GACvB;EAEF,IAAM,IAAS,EAAU,WAAW,IAAI,EAAU,KAAM,EAAkB,EAAE,OAAO,EAAU,CAAiB;EAE9G,AADA,EAAS,KAAK;GAAE,MAAM;GAAU,QAAQ;EAAO,CAAC,GAChD,IAAY,CAAC;CACf;CAEA,KAAK,IAAM,KAAU,GACnB,AAAI,EAAO,SAAS,WAClB,EAAU,KAAK,EAAO,MAAM,IACnB,EAAO,qBAEhB,OAEA,EAAe,GAMf,EAAS,KAAK;EACZ,MAAM;EACN,aAAa,EAAO;EACpB,OAAO,EAAO;EACd,aAAa;CACf,CAAC;CAKL,OAFA,EAAe,GAER,EAAE,YAAS;AACpB"}
|
|
1
|
+
{"version":3,"file":"partition-all-of-compositions.js","names":[],"sources":["../../../src/schema/helpers/partition-all-of-compositions.ts"],"sourcesContent":["import { getResolvedRef } from '@scalar/workspace-store/helpers/get-resolved-ref'\nimport { resolve } from '@scalar/workspace-store/resolve'\nimport type { SchemaObject, SchemaReferenceType } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\n\nimport { mergeAllOfSchemas } from './merge-all-of-schemas'\nimport type { CompositionKeyword } from './schema-composition'\n\ntype ChoiceKeyword = Extract<CompositionKeyword, 'oneOf' | 'anyOf'>\n\n/** An ordered piece of an `allOf`: either a merged object or a choice picker. */\ntype AllOfSegment =\n | { kind: 'object'; schema: SchemaObject }\n | {\n kind: 'choice'\n composition: ChoiceKeyword\n /** A minimal schema carrying only this group's composition, for SchemaComposition */\n value: SchemaObject\n /** Ordinal among choice members, matching the request-example composition key */\n choiceIndex: number\n }\n\nconst CHOICE_KEYWORDS: ChoiceKeyword[] = ['oneOf', 'anyOf']\n\ntype Member =\n | { kind: 'object'; schema: SchemaObject }\n | { kind: 'boolean'; schema: SchemaObject }\n | { kind: 'choice'; composition: ChoiceKeyword; value: SchemaObject; inheritedSelection: boolean }\n\n/**\n * Flattens a member's own (non-composition) properties and every `oneOf`/`anyOf`\n * group it declares — recursing into nested `allOf` — into a flat, ordered list,\n * preserving source order so choice groups stay where they were authored.\n *\n * Pure-constraint keywords (`not`, `if/then/else`) are dropped: they carry no\n * visual variant and Scalar would otherwise render `not` as a bogus picker. The\n * rule still lives in the schema (validation) and in field descriptions.\n */\nconst collectMembers = (\n input: SchemaReferenceType<SchemaObject> | boolean,\n out: Member[],\n seenRefs: Set<string>,\n): void => {\n const target = getResolvedRef(input)\n if (typeof target === 'boolean') {\n // Keep the explanation separate: merging it with an object's description would hide it.\n out.push({ kind: 'boolean', schema: resolve.schema(target) })\n return\n }\n const schema = resolve.schema(input)\n const {\n allOf,\n oneOf,\n anyOf,\n not: _not,\n if: _if,\n then: _then,\n else: _else,\n ...rest\n }: SchemaObject & {\n allOf?: unknown[]\n oneOf?: unknown[]\n anyOf?: unknown[]\n not?: unknown\n if?: unknown\n then?: unknown\n else?: unknown\n } = schema\n\n if (Object.keys(rest).length > 0) {\n out.push({ kind: 'object', schema: rest })\n }\n\n for (const keyword of CHOICE_KEYWORDS) {\n const value = keyword === 'oneOf' ? oneOf : anyOf\n // A variant inherits its base fields through allOf, but the base's choice\n // containing that variant has already been selected. Rendering it again\n // would re-enter the variant and expose fields from the other branches.\n const selectsAncestor =\n Array.isArray(value) &&\n value.some((branch) => {\n const ref = branch && typeof branch === 'object' && '$ref' in branch ? branch.$ref : undefined\n return typeof ref === 'string' && seenRefs.has(ref)\n })\n if (Array.isArray(value) && value.length > 0) {\n out.push({\n kind: 'choice',\n composition: keyword,\n value: { [keyword]: value } as unknown as SchemaObject,\n inheritedSelection: selectsAncestor,\n })\n }\n }\n\n if (Array.isArray(allOf)) {\n for (const rawMember of allOf) {\n if (typeof rawMember === 'boolean' || (rawMember && typeof rawMember === 'object')) {\n const resolved: SchemaObject & { $ref?: string } = resolve.schema(rawMember)\n // Break `$ref` cycles reached through `allOf` (e.g. a member that\n // references an ancestor). Without this guard a recursive `allOf`\n // schema would recurse forever. `mergeAllOfSchemas` guards the same way.\n const ref = resolved.$ref\n if (typeof ref === 'string') {\n if (seenRefs.has(ref)) {\n continue\n }\n collectMembers(rawMember, out, new Set(seenRefs).add(ref))\n } else {\n collectMembers(rawMember, out, seenRefs)\n }\n }\n }\n }\n}\n\n/**\n * Splits an `allOf` schema into an ordered list of segments so the renderer can\n * show each `oneOf`/`anyOf` group as its own picker **in the position it was\n * declared**, with the surrounding plain fields around it.\n *\n * `mergeAllOfSchemas` alone keeps only the FIRST `oneOf`/`anyOf` (dropping the\n * 2nd+ groups of an object with several independent mutually-exclusive\n * selections) and, being a merge, also loses the ordering between fields and\n * choices. Walking the members in order fixes both: runs of consecutive object\n * members are merged into one object segment, and each choice member becomes its\n * own picker segment in place.\n */\nexport const partitionAllOfCompositions = (schema: SchemaObject | undefined): { segments: AllOfSegment[] } => {\n if (!schema) {\n return { segments: [] }\n }\n\n // The schema's own (non-composition) keys, minus its top-level `oneOf`/`anyOf`\n // — those are rendered as their own composition by the caller, not here.\n const {\n allOf,\n oneOf: _oneOf,\n anyOf: _anyOf,\n not: _not,\n if: _if,\n then: _then,\n else: _else,\n ...rest\n }: SchemaObject & {\n allOf?: unknown[]\n oneOf?: unknown[]\n anyOf?: unknown[]\n not?: unknown\n if?: unknown\n then?: unknown\n else?: unknown\n } = schema\n\n if (!Array.isArray(allOf)) {\n return { segments: [{ kind: 'object', schema: schema }] }\n }\n\n const members: Member[] = []\n if (Object.keys(rest).length > 0) {\n members.push({ kind: 'object', schema: rest })\n }\n const schemaRef = '$ref' in schema ? schema.$ref : undefined\n const seenRefs = new Set<string>(typeof schemaRef === 'string' ? [schemaRef] : [])\n for (const rawMember of allOf) {\n if (typeof rawMember === 'boolean' || (rawMember && typeof rawMember === 'object')) {\n const resolved: SchemaObject & { $ref?: string } = resolve.schema(rawMember)\n const ref = resolved.$ref\n collectMembers(rawMember, members, typeof ref === 'string' ? new Set(seenRefs).add(ref) : seenRefs)\n }\n }\n\n // Coalesce consecutive object members into a single merged object segment,\n // keeping choice members as their own segments between them.\n const segments: AllOfSegment[] = []\n let objectRun: SchemaObject[] = []\n let choiceIndex = 0\n\n const flushObjectRun = () => {\n if (objectRun.length === 0) {\n return\n }\n const merged = objectRun.length === 1 ? objectRun[0]! : mergeAllOfSchemas({ allOf: objectRun } as SchemaObject)\n segments.push({ kind: 'object', schema: merged })\n objectRun = []\n }\n\n for (const member of members) {\n if (member.kind === 'object') {\n objectRun.push(member.schema)\n } else if (member.kind === 'boolean') {\n flushObjectRun()\n segments.push({ kind: 'object', schema: member.schema })\n } else if (member.inheritedSelection) {\n // Hidden inherited choices still occupy an ordinal in the request example.\n choiceIndex++\n } else {\n flushObjectRun()\n // `choiceIndex` is the ordinal used to build the composition-selection key\n // that syncs each picker with the request example. It MUST stay aligned\n // with the ordinal computed while walking `allOf` in\n // `get-example-from-schema.ts` (`@scalar/workspace-store`), or a picker and\n // its generated example fall out of sync.\n segments.push({\n kind: 'choice',\n composition: member.composition,\n value: member.value,\n choiceIndex: choiceIndex++,\n })\n }\n }\n flushObjectRun()\n\n return { segments }\n}\n"],"mappings":";;;;AAqBA,IAAM,IAAmC,CAAC,SAAS,OAAO,GAgBpD,KACJ,GACA,GACA,MACS;CACT,IAAM,IAAS,EAAe,CAAK;CACnC,IAAI,OAAO,KAAW,WAAW;EAE/B,EAAI,KAAK;GAAE,MAAM;GAAW,QAAQ,EAAQ,OAAO,CAAM;EAAE,CAAC;EAC5D;CACF;CAEA,IAAM,EACJ,UACA,UACA,UACA,KAAK,GACL,IAAI,GACJ,MAAM,GACN,MAAM,GACN,GAAG,MATU,EAAQ,OAAO,CAkB1B;CAEJ,AAAI,OAAO,KAAK,CAAI,CAAC,CAAC,SAAS,KAC7B,EAAI,KAAK;EAAE,MAAM;EAAU,QAAQ;CAAK,CAAC;CAG3C,KAAK,IAAM,KAAW,GAAiB;EACrC,IAAM,IAAQ,MAAY,UAAU,IAAQ,GAItC,IACJ,MAAM,QAAQ,CAAK,KACnB,EAAM,MAAM,MAAW;GACrB,IAAM,IAAM,KAAU,OAAO,KAAW,YAAY,UAAU,IAAS,EAAO,OAAO,KAAA;GACrF,OAAO,OAAO,KAAQ,YAAY,EAAS,IAAI,CAAG;EACpD,CAAC;EACH,AAAI,MAAM,QAAQ,CAAK,KAAK,EAAM,SAAS,KACzC,EAAI,KAAK;GACP,MAAM;GACN,aAAa;GACb,OAAO,GAAG,IAAU,EAAM;GAC1B,oBAAoB;EACtB,CAAC;CAEL;CAEA,IAAI,MAAM,QAAQ,CAAK;OAChB,IAAM,KAAa,GACtB,IAAI,OAAO,KAAc,aAAc,KAAa,OAAO,KAAc,UAAW;GAKlF,IAAM,IAJ6C,EAAQ,OAAO,CAItD,CAAA,CAAS;GACrB,IAAI,OAAO,KAAQ,UAAU;IAC3B,IAAI,EAAS,IAAI,CAAG,GAClB;IAEF,EAAe,GAAW,GAAK,IAAI,IAAI,CAAQ,CAAC,CAAC,IAAI,CAAG,CAAC;GAC3D,OACE,EAAe,GAAW,GAAK,CAAQ;EAE3C;;AAGN,GAca,KAA8B,MAAmE;CAC5G,IAAI,CAAC,GACH,OAAO,EAAE,UAAU,CAAC,EAAE;CAKxB,IAAM,EACJ,UACA,OAAO,GACP,OAAO,GACP,KAAK,GACL,IAAI,GACJ,MAAM,GACN,MAAM,GACN,GAAG,MASD;CAEJ,IAAI,CAAC,MAAM,QAAQ,CAAK,GACtB,OAAO,EAAE,UAAU,CAAC;EAAE,MAAM;EAAkB;CAAO,CAAC,EAAE;CAG1D,IAAM,IAAoB,CAAC;CAC3B,AAAI,OAAO,KAAK,CAAI,CAAC,CAAC,SAAS,KAC7B,EAAQ,KAAK;EAAE,MAAM;EAAU,QAAQ;CAAK,CAAC;CAE/C,IAAM,IAAY,UAAU,IAAS,EAAO,OAAO,KAAA,GAC7C,IAAW,IAAI,IAAY,OAAO,KAAc,WAAW,CAAC,CAAS,IAAI,CAAC,CAAC;CACjF,KAAK,IAAM,KAAa,GACtB,IAAI,OAAO,KAAc,aAAc,KAAa,OAAO,KAAc,UAAW;EAElF,IAAM,IAD6C,EAAQ,OAAO,CACtD,CAAA,CAAS;EACrB,EAAe,GAAW,GAAS,OAAO,KAAQ,WAAW,IAAI,IAAI,CAAQ,CAAC,CAAC,IAAI,CAAG,IAAI,CAAQ;CACpG;CAKF,IAAM,IAA2B,CAAC,GAC9B,IAA4B,CAAC,GAC7B,IAAc,GAEZ,UAAuB;EAC3B,IAAI,EAAU,WAAW,GACvB;EAEF,IAAM,IAAS,EAAU,WAAW,IAAI,EAAU,KAAM,EAAkB,EAAE,OAAO,EAAU,CAAiB;EAE9G,AADA,EAAS,KAAK;GAAE,MAAM;GAAU,QAAQ;EAAO,CAAC,GAChD,IAAY,CAAC;CACf;CAEA,KAAK,IAAM,KAAU,GACnB,AAAI,EAAO,SAAS,WAClB,EAAU,KAAK,EAAO,MAAM,IACnB,EAAO,SAAS,aACzB,EAAe,GACf,EAAS,KAAK;EAAE,MAAM;EAAU,QAAQ,EAAO;CAAO,CAAC,KAC9C,EAAO,qBAEhB,OAEA,EAAe,GAMf,EAAS,KAAK;EACZ,MAAM;EACN,aAAa,EAAO;EACpB,OAAO,EAAO;EACd,aAAa;CACf,CAAC;CAKL,OAFA,EAAe,GAER,EAAE,YAAS;AACpB"}
|
|
@@ -3,7 +3,7 @@ import { resolve as n } from "@scalar/workspace-store/resolve";
|
|
|
3
3
|
import { isArraySchema as r } from "@scalar/workspace-store/schemas/v3.2/strict/type-guards";
|
|
4
4
|
//#region src/schema/helpers/schema-name.ts
|
|
5
5
|
var i = (r) => {
|
|
6
|
-
if (!r) return null;
|
|
6
|
+
if (!r || typeof r != "object") return null;
|
|
7
7
|
let i = n.schema(r), a = "$ref" in r ? t(r.$ref) : null;
|
|
8
8
|
if (i.title) return {
|
|
9
9
|
schemaKey: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-name.js","names":[],"sources":["../../../src/schema/helpers/schema-name.ts"],"sourcesContent":["import { resolve } from '@scalar/workspace-store/resolve'\nimport type { SchemaObject, SchemaReferenceType } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { isArraySchema } from '@scalar/workspace-store/schemas/v3.2/strict/type-guards'\n\nimport { getRefName, getSchemaRefName } from './get-ref-name'\n\ntype SchemaModelName = {\n /**\n * The key in `components.schemas` (extracted from `$ref`), used for sidebar\n * navigation. Only set when the `$ref` actually targets\n * `#/components/schemas/`; `null` for refs into other component buckets or\n * external files, so those never render a dead link.\n */\n schemaKey: string | null\n /** The human-readable name to display (schema.title, schema.name, or ref key). */\n label: string\n}\n\n/**\n * Extract schema name from various schema formats\n *\n * Handles $ref, title, name, type, and schema dictionary lookup\n */\nexport const getModelNameFromSchema = (\n schemaOrRef: SchemaObject | SchemaReferenceType<SchemaObject>,\n): SchemaModelName | null => {\n if (!schemaOrRef) {\n return null\n }\n\n const schema = resolve.schema(schemaOrRef)\n\n // Only refs into `#/components/schemas/` are navigable in the models section.\n const schemaKey = '$ref' in schemaOrRef ? getSchemaRefName(schemaOrRef.$ref) : null\n\n if (schema.title) {\n return { schemaKey, label: schema.title }\n }\n\n if (schema.name) {\n return { schemaKey, label: schema.name }\n }\n\n if ('$ref' in schemaOrRef) {\n // Fall back to the last ref segment as a display label, even for\n // non-schema refs. The name still shows, it just is not a link.\n const label = getRefName(schemaOrRef.$ref)\n if (label) {\n return { schemaKey, label }\n }\n }\n\n return null\n}\n\n/**\n * Model name for a schema, resolving array branches too: an inline\n * `{ type: 'array', items: { $ref: Model } }` becomes `Model[]` instead of the\n * structural `array object[]`. Returns `null` when no model name applies (for\n * example an array of primitives), so callers can fall back to `getSchemaType`.\n */\nexport const getModelNameWithArray = (\n schemaOrRef: SchemaObject | SchemaReferenceType<SchemaObject>,\n): SchemaModelName | null => {\n const direct = getModelNameFromSchema(schemaOrRef)\n if (direct) {\n return direct\n }\n\n const schema = resolve.schema(schemaOrRef)\n if (isArraySchema(schema) && schema.items) {\n const itemName = getModelNameFromSchema(schema.items)\n if (itemName) {\n return { schemaKey: itemName.schemaKey, label: `${itemName.label}[]` }\n }\n }\n\n return null\n}\n"],"mappings":";;;;AAuBA,IAAa,KACX,MAC2B;CAC3B,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"schema-name.js","names":[],"sources":["../../../src/schema/helpers/schema-name.ts"],"sourcesContent":["import { resolve } from '@scalar/workspace-store/resolve'\nimport type { SchemaObject, SchemaReferenceType } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { isArraySchema } from '@scalar/workspace-store/schemas/v3.2/strict/type-guards'\n\nimport { getRefName, getSchemaRefName } from './get-ref-name'\n\ntype SchemaModelName = {\n /**\n * The key in `components.schemas` (extracted from `$ref`), used for sidebar\n * navigation. Only set when the `$ref` actually targets\n * `#/components/schemas/`; `null` for refs into other component buckets or\n * external files, so those never render a dead link.\n */\n schemaKey: string | null\n /** The human-readable name to display (schema.title, schema.name, or ref key). */\n label: string\n}\n\n/**\n * Extract schema name from various schema formats\n *\n * Handles $ref, title, name, type, and schema dictionary lookup\n */\nexport const getModelNameFromSchema = (\n schemaOrRef: SchemaObject | SchemaReferenceType<SchemaObject>,\n): SchemaModelName | null => {\n if (!schemaOrRef || typeof schemaOrRef !== 'object') {\n return null\n }\n\n const schema = resolve.schema(schemaOrRef)\n\n // Only refs into `#/components/schemas/` are navigable in the models section.\n const schemaKey = '$ref' in schemaOrRef ? getSchemaRefName(schemaOrRef.$ref) : null\n\n if (schema.title) {\n return { schemaKey, label: schema.title }\n }\n\n if (schema.name) {\n return { schemaKey, label: schema.name }\n }\n\n if ('$ref' in schemaOrRef) {\n // Fall back to the last ref segment as a display label, even for\n // non-schema refs. The name still shows, it just is not a link.\n const label = getRefName(schemaOrRef.$ref)\n if (label) {\n return { schemaKey, label }\n }\n }\n\n return null\n}\n\n/**\n * Model name for a schema, resolving array branches too: an inline\n * `{ type: 'array', items: { $ref: Model } }` becomes `Model[]` instead of the\n * structural `array object[]`. Returns `null` when no model name applies (for\n * example an array of primitives), so callers can fall back to `getSchemaType`.\n */\nexport const getModelNameWithArray = (\n schemaOrRef: SchemaObject | SchemaReferenceType<SchemaObject>,\n): SchemaModelName | null => {\n const direct = getModelNameFromSchema(schemaOrRef)\n if (direct) {\n return direct\n }\n\n const schema = resolve.schema(schemaOrRef)\n if (isArraySchema(schema) && schema.items) {\n const itemName = getModelNameFromSchema(schema.items)\n if (itemName) {\n return { schemaKey: itemName.schemaKey, label: `${itemName.label}[]` }\n }\n }\n\n return null\n}\n"],"mappings":";;;;AAuBA,IAAa,KACX,MAC2B;CAC3B,IAAI,CAAC,KAAe,OAAO,KAAgB,UACzC,OAAO;CAGT,IAAM,IAAS,EAAQ,OAAO,CAAW,GAGnC,IAAY,UAAU,IAAc,EAAiB,EAAY,IAAI,IAAI;CAE/E,IAAI,EAAO,OACT,OAAO;EAAE;EAAW,OAAO,EAAO;CAAM;CAG1C,IAAI,EAAO,MACT,OAAO;EAAE;EAAW,OAAO,EAAO;CAAK;CAGzC,IAAI,UAAU,GAAa;EAGzB,IAAM,IAAQ,EAAW,EAAY,IAAI;EACzC,IAAI,GACF,OAAO;GAAE;GAAW;EAAM;CAE9B;CAEA,OAAO;AACT,GAQa,KACX,MAC2B;CAC3B,IAAM,IAAS,EAAuB,CAAW;CACjD,IAAI,GACF,OAAO;CAGT,IAAM,IAAS,EAAQ,OAAO,CAAW;CACzC,IAAI,EAAc,CAAM,KAAK,EAAO,OAAO;EACzC,IAAM,IAAW,EAAuB,EAAO,KAAK;EACpD,IAAI,GACF,OAAO;GAAE,WAAW,EAAS;GAAW,OAAO,GAAG,EAAS,MAAM;EAAI;CAEzE;CAEA,OAAO;AACT"}
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { type DiscriminatorSchema, schemaDiscriminator } from './discriminator-metadata';
|
|
2
|
+
export { inferDiscriminatorMappingComposition } from './helpers/get-compositions-to-render';
|
|
1
3
|
export { default as LinkButton } from './LinkButton.vue';
|
|
2
4
|
export { schemaTranslations } from './localization/translations';
|
|
3
5
|
export { REQUEST_BODY_COMPOSITION_INDEX_SYMBOL, type RequestBodyCompositionSelection, } from './request-body-composition-index';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,OAAO,EACL,qCAAqC,EACrC,KAAK,+BAA+B,GACrC,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAA;AAC5F,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,YAAY,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACxF,OAAO,EAAE,oCAAoC,EAAE,MAAM,sCAAsC,CAAA;AAC3F,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,OAAO,EACL,qCAAqC,EACrC,KAAK,+BAA+B,GACrC,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAA;AAC5F,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,YAAY,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA"}
|
package/dist/schema/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import r from "./
|
|
5
|
-
import i from "./
|
|
6
|
-
import a from "./
|
|
7
|
-
import o from "./
|
|
8
|
-
import s from "./
|
|
9
|
-
import c from "./
|
|
10
|
-
import l from "./
|
|
11
|
-
|
|
1
|
+
import { schemaDiscriminator as e } from "./discriminator-metadata.js";
|
|
2
|
+
import { inferDiscriminatorMappingComposition as t } from "./helpers/get-compositions-to-render.js";
|
|
3
|
+
import n from "./LinkButton.vue.js";
|
|
4
|
+
import { schemaTranslations as r } from "./localization/translations.js";
|
|
5
|
+
import { REQUEST_BODY_COMPOSITION_INDEX_SYMBOL as i } from "./request-body-composition-index.js";
|
|
6
|
+
import a from "./SchemaGlyphPuck.vue.js";
|
|
7
|
+
import o from "./SchemaRailPanel.vue.js";
|
|
8
|
+
import s from "./SchemaGutterToggle.vue.js";
|
|
9
|
+
import c from "./SchemaProperty.vue.js";
|
|
10
|
+
import l from "./Schema.vue.js";
|
|
11
|
+
import u from "./SchemaHeading.vue.js";
|
|
12
|
+
import d from "./SchemaObjectExampleCodeBlock.vue.js";
|
|
13
|
+
export { n as LinkButton, i as REQUEST_BODY_COMPOSITION_INDEX_SYMBOL, l as Schema, a as SchemaGlyphPuck, s as SchemaGutterToggle, u as SchemaHeading, d as SchemaObjectExampleCodeBlock, c as SchemaProperty, o as SchemaRailPanel, t as inferDiscriminatorMappingComposition, e as schemaDiscriminator, r as schemaTranslations };
|
|
@@ -13,6 +13,8 @@ export declare const useLocalization: () => import("@scalar/localization").Local
|
|
|
13
13
|
forName: string;
|
|
14
14
|
showSchemaDetails: string;
|
|
15
15
|
oneOf: string;
|
|
16
|
+
variants: string;
|
|
17
|
+
discriminatorValue: string;
|
|
16
18
|
anyOf: string;
|
|
17
19
|
allOf: string;
|
|
18
20
|
not: string;
|
|
@@ -47,6 +49,14 @@ export declare const useLocalization: () => import("@scalar/localization").Local
|
|
|
47
49
|
unique: string;
|
|
48
50
|
values: string;
|
|
49
51
|
writeOnly: string;
|
|
52
|
+
typeInteger: string;
|
|
53
|
+
formatInt32: string;
|
|
54
|
+
formatInt64: string;
|
|
55
|
+
formatDate: string;
|
|
56
|
+
formatDateTime: string;
|
|
57
|
+
formatPassword: string;
|
|
58
|
+
formatBase64: string;
|
|
59
|
+
formatBinary: string;
|
|
50
60
|
};
|
|
51
61
|
common: {
|
|
52
62
|
copyDefault: string;
|
|
@@ -55,5 +65,5 @@ export declare const useLocalization: () => import("@scalar/localization").Local
|
|
|
55
65
|
actions: {
|
|
56
66
|
copyLinkTo: string;
|
|
57
67
|
};
|
|
58
|
-
}, ("schema.keys" | "schema.values" | "schema.example" | "schema.type" | "schema.format" | "schema.default" | "schema.enum" | "schema.const" | "schema.deprecated" | "schema.discriminator" | "schema.readOnly" | "schema.writeOnly" | "schema.examples" | "schema.allOf" | "schema.oneOf" | "schema.anyOf" | "schema.not" | "schema.multipleOf" | "schema.maxLength" | "schema.minLength" | "schema.pattern" | "schema.required" | "schema.additionalProperties" | "schema.propertyNames" | "schema.schema" | "schema.nullable" | "schema.recursive" | "schema.max" | "schema.min" | "schema.unique" | "schema.noAllowedValues" | "schema.emptyObject" | "schema.showAdditionalProperties" | "schema.showOneMoreProperty" | "schema.showMoreProperties" | "schema.forName" | "schema.showSchemaDetails" | "schema.unknownType" | "schema.propertyCount" | "schema.headerCount" | "schema.recursiveReference" | "schema.greaterThan" | "schema.lessThan" | "schema.copyPattern" | "schema.hideValues" | "schema.showAllValues") | "actions.copyLinkTo" | "common.copyDefault" | "common.copyExample">;
|
|
68
|
+
}, ("schema.keys" | "schema.values" | "schema.example" | "schema.type" | "schema.format" | "schema.default" | "schema.enum" | "schema.const" | "schema.deprecated" | "schema.discriminator" | "schema.readOnly" | "schema.writeOnly" | "schema.examples" | "schema.allOf" | "schema.oneOf" | "schema.anyOf" | "schema.not" | "schema.multipleOf" | "schema.maxLength" | "schema.minLength" | "schema.pattern" | "schema.required" | "schema.additionalProperties" | "schema.propertyNames" | "schema.schema" | "schema.nullable" | "schema.recursive" | "schema.max" | "schema.min" | "schema.unique" | "schema.variants" | "schema.discriminatorValue" | "schema.noAllowedValues" | "schema.emptyObject" | "schema.showAdditionalProperties" | "schema.showOneMoreProperty" | "schema.showMoreProperties" | "schema.forName" | "schema.showSchemaDetails" | "schema.unknownType" | "schema.propertyCount" | "schema.headerCount" | "schema.recursiveReference" | "schema.greaterThan" | "schema.lessThan" | "schema.copyPattern" | "schema.hideValues" | "schema.showAllValues" | "schema.typeInteger" | "schema.formatInt32" | "schema.formatInt64" | "schema.formatDate" | "schema.formatDateTime" | "schema.formatPassword" | "schema.formatBase64" | "schema.formatBinary") | "actions.copyLinkTo" | "common.copyDefault" | "common.copyExample">;
|
|
59
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/localization/index.ts"],"names":[],"mappings":"AAKA,mGAAmG;AACnG,eAAO,MAAQ,eAAe
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/localization/index.ts"],"names":[],"mappings":"AAKA,mGAAmG;AACnG,eAAO,MAAQ,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sxCAW5B,CAAA"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const ar: {
|
|
2
2
|
schema: {
|
|
3
|
+
variants: string;
|
|
4
|
+
discriminatorValue: string;
|
|
3
5
|
noAllowedValues: string;
|
|
4
6
|
example: string;
|
|
5
7
|
examples: string;
|
|
@@ -46,6 +48,14 @@ export declare const ar: {
|
|
|
46
48
|
unique: string;
|
|
47
49
|
values: string;
|
|
48
50
|
writeOnly: string;
|
|
51
|
+
typeInteger: string;
|
|
52
|
+
formatInt32: string;
|
|
53
|
+
formatInt64: string;
|
|
54
|
+
formatDate: string;
|
|
55
|
+
formatDateTime: string;
|
|
56
|
+
formatPassword: string;
|
|
57
|
+
formatBase64: string;
|
|
58
|
+
formatBinary: string;
|
|
49
59
|
};
|
|
50
60
|
common: {
|
|
51
61
|
copyDefault: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../../src/schema/localization/locales/ar.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../../src/schema/localization/locales/ar.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Dd,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
//#region src/schema/localization/locales/ar.ts
|
|
2
2
|
var e = {
|
|
3
3
|
schema: {
|
|
4
|
+
variants: "المتغيرات",
|
|
5
|
+
discriminatorValue: "قيمة المميز",
|
|
4
6
|
noAllowedValues: "لا توجد قيم تستوفي قيد التعداد هذا.",
|
|
5
7
|
example: "مثال",
|
|
6
8
|
examples: "أمثلة",
|
|
@@ -46,7 +48,15 @@ var e = {
|
|
|
46
48
|
type: "النوع",
|
|
47
49
|
unique: "فريد",
|
|
48
50
|
values: "القيم",
|
|
49
|
-
writeOnly: "كتابة فقط"
|
|
51
|
+
writeOnly: "كتابة فقط",
|
|
52
|
+
typeInteger: "أعداد صحيحة.",
|
|
53
|
+
formatInt32: "أعداد صحيحة بإشارة بطول 32 بت (نوع الأعداد الصحيحة الشائع).",
|
|
54
|
+
formatInt64: "أعداد صحيحة بإشارة بطول 64 بت (النوع long).",
|
|
55
|
+
formatDate: "تدوين full-date وفق RFC 3339، القسم 5.6، مثلًا 2017-07-21",
|
|
56
|
+
formatDateTime: "تدوين date-time وفق RFC 3339، القسم 5.6، مثلًا 2017-07-21T17:32:28Z",
|
|
57
|
+
formatPassword: "تلميح للواجهات بإخفاء الإدخال",
|
|
58
|
+
formatBase64: "أحرف بترميز base64، مثلًا U3dhZ2dlciByb2Nrcw==",
|
|
59
|
+
formatBinary: "بيانات ثنائية لوصف الملفات"
|
|
50
60
|
},
|
|
51
61
|
common: {
|
|
52
62
|
copyDefault: "نسخ القيمة الافتراضية",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ar.js","names":[],"sources":["../../../../src/schema/localization/locales/ar.ts"],"sourcesContent":["export const ar = {\n schema: {\n noAllowedValues: 'لا توجد قيم تستوفي قيد التعداد هذا.',\n example: 'مثال',\n examples: 'أمثلة',\n default: 'الافتراضي',\n schema: 'المخطط',\n emptyObject: 'كائن فارغ',\n showAdditionalProperties: 'إظهار الخصائص الإضافية',\n showOneMoreProperty: 'إظهار خاصية إضافية واحدة',\n showMoreProperties: 'إظهار المزيد من الخصائص ({count})',\n forName: 'لـ {name}',\n showSchemaDetails: 'إظهار تفاصيل المخطط',\n oneOf: 'واحد من',\n anyOf: 'أي من',\n allOf: 'كل من',\n not: 'ليس',\n unknownType: 'نوع غير معروف',\n propertyCount: 'الخصائص: {count}',\n headerCount: 'الترويسات: {count}',\n recursiveReference: 'مرجع تكراري إلى {name}',\n recursive: 'تكراري',\n additionalProperties: 'خصائص إضافية',\n const: 'ثابت',\n deprecated: 'مهمل',\n discriminator: 'المميّز',\n enum: 'تعداد',\n format: 'التنسيق',\n greaterThan: 'أكبر من',\n keys: 'المفاتيح',\n lessThan: 'أقل من',\n max: 'الحد الأقصى',\n min: 'الحد الأدنى',\n maxLength: 'أقصى طول',\n minLength: 'أدنى طول',\n multipleOf: 'مضاعف لـ',\n nullable: 'يقبل null',\n propertyNames: 'أسماء الخصائص',\n pattern: 'النمط',\n copyPattern: 'نسخ النمط',\n readOnly: 'قراءة فقط',\n required: 'مطلوب',\n hideValues: 'إخفاء القيم',\n showAllValues: 'عرض كل القيم',\n type: 'النوع',\n unique: 'فريد',\n values: 'القيم',\n writeOnly: 'كتابة فقط',\n },\n common: { copyDefault: 'نسخ القيمة الافتراضية', copyExample: 'نسخ القيمة النموذجية' },\n actions: { copyLinkTo: 'نسخ الرابط إلى {name}' },\n}\n"],"mappings":";AAAA,IAAa,IAAK;CAChB,QAAQ;EACN,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;
|
|
1
|
+
{"version":3,"file":"ar.js","names":[],"sources":["../../../../src/schema/localization/locales/ar.ts"],"sourcesContent":["export const ar = {\n schema: {\n variants: 'المتغيرات',\n discriminatorValue: 'قيمة المميز',\n noAllowedValues: 'لا توجد قيم تستوفي قيد التعداد هذا.',\n example: 'مثال',\n examples: 'أمثلة',\n default: 'الافتراضي',\n schema: 'المخطط',\n emptyObject: 'كائن فارغ',\n showAdditionalProperties: 'إظهار الخصائص الإضافية',\n showOneMoreProperty: 'إظهار خاصية إضافية واحدة',\n showMoreProperties: 'إظهار المزيد من الخصائص ({count})',\n forName: 'لـ {name}',\n showSchemaDetails: 'إظهار تفاصيل المخطط',\n oneOf: 'واحد من',\n anyOf: 'أي من',\n allOf: 'كل من',\n not: 'ليس',\n unknownType: 'نوع غير معروف',\n propertyCount: 'الخصائص: {count}',\n headerCount: 'الترويسات: {count}',\n recursiveReference: 'مرجع تكراري إلى {name}',\n recursive: 'تكراري',\n additionalProperties: 'خصائص إضافية',\n const: 'ثابت',\n deprecated: 'مهمل',\n discriminator: 'المميّز',\n enum: 'تعداد',\n format: 'التنسيق',\n greaterThan: 'أكبر من',\n keys: 'المفاتيح',\n lessThan: 'أقل من',\n max: 'الحد الأقصى',\n min: 'الحد الأدنى',\n maxLength: 'أقصى طول',\n minLength: 'أدنى طول',\n multipleOf: 'مضاعف لـ',\n nullable: 'يقبل null',\n propertyNames: 'أسماء الخصائص',\n pattern: 'النمط',\n copyPattern: 'نسخ النمط',\n readOnly: 'قراءة فقط',\n required: 'مطلوب',\n hideValues: 'إخفاء القيم',\n showAllValues: 'عرض كل القيم',\n type: 'النوع',\n unique: 'فريد',\n values: 'القيم',\n writeOnly: 'كتابة فقط',\n typeInteger: 'أعداد صحيحة.',\n formatInt32: 'أعداد صحيحة بإشارة بطول 32 بت (نوع الأعداد الصحيحة الشائع).',\n formatInt64: 'أعداد صحيحة بإشارة بطول 64 بت (النوع long).',\n formatDate: 'تدوين full-date وفق RFC 3339، القسم 5.6، مثلًا 2017-07-21',\n formatDateTime: 'تدوين date-time وفق RFC 3339، القسم 5.6، مثلًا 2017-07-21T17:32:28Z',\n formatPassword: 'تلميح للواجهات بإخفاء الإدخال',\n formatBase64: 'أحرف بترميز base64، مثلًا U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'بيانات ثنائية لوصف الملفات',\n },\n common: { copyDefault: 'نسخ القيمة الافتراضية', copyExample: 'نسخ القيمة النموذجية' },\n actions: { copyLinkTo: 'نسخ الرابط إلى {name}' },\n}\n"],"mappings":";AAAA,IAAa,IAAK;CAChB,QAAQ;EACN,UAAU;EACV,oBAAoB;EACpB,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,aAAa;EACb,aAAa;EACb,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;EACd,cAAc;CAChB;CACA,QAAQ;EAAE,aAAa;EAAyB,aAAa;CAAuB;CACpF,SAAS,EAAE,YAAY,wBAAwB;AACjD"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const de: {
|
|
2
2
|
schema: {
|
|
3
|
+
variants: string;
|
|
4
|
+
discriminatorValue: string;
|
|
3
5
|
noAllowedValues: string;
|
|
4
6
|
example: string;
|
|
5
7
|
examples: string;
|
|
@@ -46,6 +48,14 @@ export declare const de: {
|
|
|
46
48
|
unique: string;
|
|
47
49
|
values: string;
|
|
48
50
|
writeOnly: string;
|
|
51
|
+
typeInteger: string;
|
|
52
|
+
formatInt32: string;
|
|
53
|
+
formatInt64: string;
|
|
54
|
+
formatDate: string;
|
|
55
|
+
formatDateTime: string;
|
|
56
|
+
formatPassword: string;
|
|
57
|
+
formatBase64: string;
|
|
58
|
+
formatBinary: string;
|
|
49
59
|
};
|
|
50
60
|
common: {
|
|
51
61
|
copyDefault: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../src/schema/localization/locales/de.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../src/schema/localization/locales/de.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Dd,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
//#region src/schema/localization/locales/de.ts
|
|
2
2
|
var e = {
|
|
3
3
|
schema: {
|
|
4
|
+
variants: "Varianten",
|
|
5
|
+
discriminatorValue: "Diskriminatorwert",
|
|
4
6
|
noAllowedValues: "Keine Werte erfüllen diese Enum-Bedingung.",
|
|
5
7
|
example: "Beispiel",
|
|
6
8
|
examples: "Beispiele",
|
|
@@ -46,7 +48,15 @@ var e = {
|
|
|
46
48
|
type: "Typ",
|
|
47
49
|
unique: "eindeutig",
|
|
48
50
|
values: "Werte",
|
|
49
|
-
writeOnly: "nur schreibbar"
|
|
51
|
+
writeOnly: "nur schreibbar",
|
|
52
|
+
typeInteger: "Ganzzahlen.",
|
|
53
|
+
formatInt32: "Vorzeichenbehaftete 32-Bit-Ganzzahlen (üblicher Ganzzahltyp).",
|
|
54
|
+
formatInt64: "Vorzeichenbehaftete 64-Bit-Ganzzahlen (Typ long).",
|
|
55
|
+
formatDate: "full-date-Notation gemäß RFC 3339, Abschnitt 5.6, zum Beispiel 2017-07-21",
|
|
56
|
+
formatDateTime: "date-time-Notation gemäß RFC 3339, Abschnitt 5.6, zum Beispiel 2017-07-21T17:32:28Z",
|
|
57
|
+
formatPassword: "Hinweis an Oberflächen, die Eingabe zu maskieren",
|
|
58
|
+
formatBase64: "Base64-kodierte Zeichen, zum Beispiel U3dhZ2dlciByb2Nrcw==",
|
|
59
|
+
formatBinary: "Binärdaten zur Beschreibung von Dateien"
|
|
50
60
|
},
|
|
51
61
|
common: {
|
|
52
62
|
copyDefault: "Standardwert kopieren",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.js","names":[],"sources":["../../../../src/schema/localization/locales/de.ts"],"sourcesContent":["export const de = {\n schema: {\n noAllowedValues: 'Keine Werte erfüllen diese Enum-Bedingung.',\n example: 'Beispiel',\n examples: 'Beispiele',\n default: 'Standard',\n schema: 'Schema',\n emptyObject: 'Leeres Objekt',\n showAdditionalProperties: 'Zusätzliche Eigenschaften anzeigen',\n showOneMoreProperty: '1 weitere Eigenschaft anzeigen',\n showMoreProperties: '{count} weitere Eigenschaften anzeigen',\n forName: 'für {name}',\n showSchemaDetails: 'Schema-Details anzeigen',\n oneOf: 'Eines von',\n anyOf: 'Beliebiges von',\n allOf: 'Alle von',\n not: 'Nicht',\n unknownType: 'unbekannter Typ',\n propertyCount: 'Eigenschaften: {count}',\n headerCount: 'Header: {count}',\n recursiveReference: 'Rekursiver Verweis auf {name}',\n recursive: 'rekursiv',\n additionalProperties: 'zusätzliche Eigenschaften',\n const: 'Konstante',\n deprecated: 'veraltet',\n discriminator: 'Diskriminator',\n enum: 'enum',\n format: 'Format',\n greaterThan: 'größer als',\n keys: 'Schlüssel',\n lessThan: 'kleiner als',\n max: 'max.',\n min: 'min.',\n maxLength: 'max. Länge',\n minLength: 'min. Länge',\n multipleOf: 'Vielfaches von',\n nullable: 'nullable',\n propertyNames: 'Eigenschaftsnamen',\n pattern: 'Muster',\n copyPattern: 'Muster kopieren',\n readOnly: 'nur lesbar',\n required: 'erforderlich',\n hideValues: 'Werte ausblenden',\n showAllValues: 'Alle Werte anzeigen',\n type: 'Typ',\n unique: 'eindeutig',\n values: 'Werte',\n writeOnly: 'nur schreibbar',\n },\n common: { copyDefault: 'Standardwert kopieren', copyExample: 'Beispielwert kopieren' },\n actions: { copyLinkTo: 'Link zu {name} kopieren' },\n}\n"],"mappings":";AAAA,IAAa,IAAK;CAChB,QAAQ;EACN,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;
|
|
1
|
+
{"version":3,"file":"de.js","names":[],"sources":["../../../../src/schema/localization/locales/de.ts"],"sourcesContent":["export const de = {\n schema: {\n variants: 'Varianten',\n discriminatorValue: 'Diskriminatorwert',\n noAllowedValues: 'Keine Werte erfüllen diese Enum-Bedingung.',\n example: 'Beispiel',\n examples: 'Beispiele',\n default: 'Standard',\n schema: 'Schema',\n emptyObject: 'Leeres Objekt',\n showAdditionalProperties: 'Zusätzliche Eigenschaften anzeigen',\n showOneMoreProperty: '1 weitere Eigenschaft anzeigen',\n showMoreProperties: '{count} weitere Eigenschaften anzeigen',\n forName: 'für {name}',\n showSchemaDetails: 'Schema-Details anzeigen',\n oneOf: 'Eines von',\n anyOf: 'Beliebiges von',\n allOf: 'Alle von',\n not: 'Nicht',\n unknownType: 'unbekannter Typ',\n propertyCount: 'Eigenschaften: {count}',\n headerCount: 'Header: {count}',\n recursiveReference: 'Rekursiver Verweis auf {name}',\n recursive: 'rekursiv',\n additionalProperties: 'zusätzliche Eigenschaften',\n const: 'Konstante',\n deprecated: 'veraltet',\n discriminator: 'Diskriminator',\n enum: 'enum',\n format: 'Format',\n greaterThan: 'größer als',\n keys: 'Schlüssel',\n lessThan: 'kleiner als',\n max: 'max.',\n min: 'min.',\n maxLength: 'max. Länge',\n minLength: 'min. Länge',\n multipleOf: 'Vielfaches von',\n nullable: 'nullable',\n propertyNames: 'Eigenschaftsnamen',\n pattern: 'Muster',\n copyPattern: 'Muster kopieren',\n readOnly: 'nur lesbar',\n required: 'erforderlich',\n hideValues: 'Werte ausblenden',\n showAllValues: 'Alle Werte anzeigen',\n type: 'Typ',\n unique: 'eindeutig',\n values: 'Werte',\n writeOnly: 'nur schreibbar',\n typeInteger: 'Ganzzahlen.',\n formatInt32: 'Vorzeichenbehaftete 32-Bit-Ganzzahlen (üblicher Ganzzahltyp).',\n formatInt64: 'Vorzeichenbehaftete 64-Bit-Ganzzahlen (Typ long).',\n formatDate: 'full-date-Notation gemäß RFC 3339, Abschnitt 5.6, zum Beispiel 2017-07-21',\n formatDateTime: 'date-time-Notation gemäß RFC 3339, Abschnitt 5.6, zum Beispiel 2017-07-21T17:32:28Z',\n formatPassword: 'Hinweis an Oberflächen, die Eingabe zu maskieren',\n formatBase64: 'Base64-kodierte Zeichen, zum Beispiel U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'Binärdaten zur Beschreibung von Dateien',\n },\n common: { copyDefault: 'Standardwert kopieren', copyExample: 'Beispielwert kopieren' },\n actions: { copyLinkTo: 'Link zu {name} kopieren' },\n}\n"],"mappings":";AAAA,IAAa,IAAK;CAChB,QAAQ;EACN,UAAU;EACV,oBAAoB;EACpB,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,aAAa;EACb,aAAa;EACb,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;EACd,cAAc;CAChB;CACA,QAAQ;EAAE,aAAa;EAAyB,aAAa;CAAwB;CACrF,SAAS,EAAE,YAAY,0BAA0B;AACnD"}
|
|
@@ -12,6 +12,8 @@ export declare const en: {
|
|
|
12
12
|
forName: string;
|
|
13
13
|
showSchemaDetails: string;
|
|
14
14
|
oneOf: string;
|
|
15
|
+
variants: string;
|
|
16
|
+
discriminatorValue: string;
|
|
15
17
|
anyOf: string;
|
|
16
18
|
allOf: string;
|
|
17
19
|
not: string;
|
|
@@ -46,6 +48,14 @@ export declare const en: {
|
|
|
46
48
|
unique: string;
|
|
47
49
|
values: string;
|
|
48
50
|
writeOnly: string;
|
|
51
|
+
typeInteger: string;
|
|
52
|
+
formatInt32: string;
|
|
53
|
+
formatInt64: string;
|
|
54
|
+
formatDate: string;
|
|
55
|
+
formatDateTime: string;
|
|
56
|
+
formatPassword: string;
|
|
57
|
+
formatBase64: string;
|
|
58
|
+
formatBinary: string;
|
|
49
59
|
};
|
|
50
60
|
common: {
|
|
51
61
|
copyDefault: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../src/schema/localization/locales/en.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../src/schema/localization/locales/en.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Dd,CAAA"}
|
|
@@ -13,6 +13,8 @@ var e = {
|
|
|
13
13
|
forName: "for {name}",
|
|
14
14
|
showSchemaDetails: "Show Schema Details",
|
|
15
15
|
oneOf: "One of",
|
|
16
|
+
variants: "Variants",
|
|
17
|
+
discriminatorValue: "Discriminator value",
|
|
16
18
|
anyOf: "Any of",
|
|
17
19
|
allOf: "All of",
|
|
18
20
|
not: "Not",
|
|
@@ -46,7 +48,15 @@ var e = {
|
|
|
46
48
|
type: "Type",
|
|
47
49
|
unique: "unique",
|
|
48
50
|
values: "values",
|
|
49
|
-
writeOnly: "write-only"
|
|
51
|
+
writeOnly: "write-only",
|
|
52
|
+
typeInteger: "Integer numbers.",
|
|
53
|
+
formatInt32: "Signed 32-bit integers (commonly used integer type).",
|
|
54
|
+
formatInt64: "Signed 64-bit integers (long type).",
|
|
55
|
+
formatDate: "full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21",
|
|
56
|
+
formatDateTime: "the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",
|
|
57
|
+
formatPassword: "a hint to UIs to mask the input",
|
|
58
|
+
formatBase64: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
59
|
+
formatBinary: "binary data, used to describe files"
|
|
50
60
|
},
|
|
51
61
|
common: {
|
|
52
62
|
copyDefault: "Copy default value",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.js","names":[],"sources":["../../../../src/schema/localization/locales/en.ts"],"sourcesContent":["export const en = {\n schema: {\n noAllowedValues: 'No values satisfy this enum constraint.',\n example: 'Example',\n examples: 'Examples',\n default: 'Default',\n schema: 'Schema',\n emptyObject: 'Empty object',\n showAdditionalProperties: 'Show additional properties',\n showOneMoreProperty: 'Show 1 more property',\n showMoreProperties: 'Show {count} more properties',\n forName: 'for {name}',\n showSchemaDetails: 'Show Schema Details',\n oneOf: 'One of',\n anyOf: 'Any of',\n allOf: 'All of',\n not: 'Not',\n unknownType: 'unknown type',\n propertyCount: 'Properties: {count}',\n headerCount: 'Headers: {count}',\n recursiveReference: 'Recursive reference to {name}',\n recursive: 'recursive',\n additionalProperties: 'additional properties',\n const: 'const',\n deprecated: 'deprecated',\n discriminator: 'Discriminator',\n enum: 'enum',\n format: 'Format',\n greaterThan: 'greater than',\n keys: 'keys',\n lessThan: 'less than',\n max: 'max',\n min: 'min',\n maxLength: 'max length',\n minLength: 'min length',\n multipleOf: 'multiple of',\n nullable: 'nullable',\n propertyNames: 'property names',\n pattern: 'Pattern',\n copyPattern: 'Copy pattern',\n readOnly: 'read-only',\n required: 'required',\n hideValues: 'Hide values',\n showAllValues: 'Show all values',\n type: 'Type',\n unique: 'unique',\n values: 'values',\n writeOnly: 'write-only',\n },\n common: { copyDefault: 'Copy default value', copyExample: 'Copy example value' },\n actions: { copyLinkTo: 'Copy link to {name}' },\n}\n"],"mappings":";AAAA,IAAa,IAAK;CAChB,QAAQ;EACN,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;
|
|
1
|
+
{"version":3,"file":"en.js","names":[],"sources":["../../../../src/schema/localization/locales/en.ts"],"sourcesContent":["export const en = {\n schema: {\n noAllowedValues: 'No values satisfy this enum constraint.',\n example: 'Example',\n examples: 'Examples',\n default: 'Default',\n schema: 'Schema',\n emptyObject: 'Empty object',\n showAdditionalProperties: 'Show additional properties',\n showOneMoreProperty: 'Show 1 more property',\n showMoreProperties: 'Show {count} more properties',\n forName: 'for {name}',\n showSchemaDetails: 'Show Schema Details',\n oneOf: 'One of',\n variants: 'Variants',\n discriminatorValue: 'Discriminator value',\n anyOf: 'Any of',\n allOf: 'All of',\n not: 'Not',\n unknownType: 'unknown type',\n propertyCount: 'Properties: {count}',\n headerCount: 'Headers: {count}',\n recursiveReference: 'Recursive reference to {name}',\n recursive: 'recursive',\n additionalProperties: 'additional properties',\n const: 'const',\n deprecated: 'deprecated',\n discriminator: 'Discriminator',\n enum: 'enum',\n format: 'Format',\n greaterThan: 'greater than',\n keys: 'keys',\n lessThan: 'less than',\n max: 'max',\n min: 'min',\n maxLength: 'max length',\n minLength: 'min length',\n multipleOf: 'multiple of',\n nullable: 'nullable',\n propertyNames: 'property names',\n pattern: 'Pattern',\n copyPattern: 'Copy pattern',\n readOnly: 'read-only',\n required: 'required',\n hideValues: 'Hide values',\n showAllValues: 'Show all values',\n type: 'Type',\n unique: 'unique',\n values: 'values',\n writeOnly: 'write-only',\n typeInteger: 'Integer numbers.',\n formatInt32: 'Signed 32-bit integers (commonly used integer type).',\n formatInt64: 'Signed 64-bit integers (long type).',\n formatDate: 'full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21',\n formatDateTime: 'the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z',\n formatPassword: 'a hint to UIs to mask the input',\n formatBase64: 'base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'binary data, used to describe files',\n },\n common: { copyDefault: 'Copy default value', copyExample: 'Copy example value' },\n actions: { copyLinkTo: 'Copy link to {name}' },\n}\n"],"mappings":";AAAA,IAAa,IAAK;CAChB,QAAQ;EACN,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,UAAU;EACV,oBAAoB;EACpB,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,aAAa;EACb,aAAa;EACb,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;EACd,cAAc;CAChB;CACA,QAAQ;EAAE,aAAa;EAAsB,aAAa;CAAqB;CAC/E,SAAS,EAAE,YAAY,sBAAsB;AAC/C"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const es: {
|
|
2
2
|
schema: {
|
|
3
|
+
variants: string;
|
|
4
|
+
discriminatorValue: string;
|
|
3
5
|
noAllowedValues: string;
|
|
4
6
|
example: string;
|
|
5
7
|
examples: string;
|
|
@@ -46,6 +48,14 @@ export declare const es: {
|
|
|
46
48
|
unique: string;
|
|
47
49
|
values: string;
|
|
48
50
|
writeOnly: string;
|
|
51
|
+
typeInteger: string;
|
|
52
|
+
formatInt32: string;
|
|
53
|
+
formatInt64: string;
|
|
54
|
+
formatDate: string;
|
|
55
|
+
formatDateTime: string;
|
|
56
|
+
formatPassword: string;
|
|
57
|
+
formatBase64: string;
|
|
58
|
+
formatBinary: string;
|
|
49
59
|
};
|
|
50
60
|
common: {
|
|
51
61
|
copyDefault: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../src/schema/localization/locales/es.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../src/schema/localization/locales/es.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Dd,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
//#region src/schema/localization/locales/es.ts
|
|
2
2
|
var e = {
|
|
3
3
|
schema: {
|
|
4
|
+
variants: "Variantes",
|
|
5
|
+
discriminatorValue: "Valor del discriminador",
|
|
4
6
|
noAllowedValues: "Ningún valor satisface esta restricción enum.",
|
|
5
7
|
example: "Ejemplo",
|
|
6
8
|
examples: "Ejemplos",
|
|
@@ -46,7 +48,15 @@ var e = {
|
|
|
46
48
|
type: "Tipo",
|
|
47
49
|
unique: "único",
|
|
48
50
|
values: "valores",
|
|
49
|
-
writeOnly: "solo escritura"
|
|
51
|
+
writeOnly: "solo escritura",
|
|
52
|
+
typeInteger: "Números enteros.",
|
|
53
|
+
formatInt32: "Enteros de 32 bits con signo (tipo entero de uso común).",
|
|
54
|
+
formatInt64: "Enteros de 64 bits con signo (tipo long).",
|
|
55
|
+
formatDate: "notación full-date definida en RFC 3339, sección 5.6, por ejemplo, 2017-07-21",
|
|
56
|
+
formatDateTime: "notación date-time definida en RFC 3339, sección 5.6, por ejemplo, 2017-07-21T17:32:28Z",
|
|
57
|
+
formatPassword: "indica a las interfaces que oculten la entrada",
|
|
58
|
+
formatBase64: "caracteres codificados en base64, por ejemplo, U3dhZ2dlciByb2Nrcw==",
|
|
59
|
+
formatBinary: "datos binarios, usados para describir archivos"
|
|
50
60
|
},
|
|
51
61
|
common: {
|
|
52
62
|
copyDefault: "Copiar valor por defecto",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.js","names":[],"sources":["../../../../src/schema/localization/locales/es.ts"],"sourcesContent":["export const es = {\n schema: {\n noAllowedValues: 'Ningún valor satisface esta restricción enum.',\n example: 'Ejemplo',\n examples: 'Ejemplos',\n default: 'Predeterminado',\n schema: 'Esquema',\n emptyObject: 'Objeto vacío',\n showAdditionalProperties: 'Mostrar propiedades adicionales',\n showOneMoreProperty: 'Mostrar 1 propiedad más',\n showMoreProperties: 'Mostrar {count} propiedades más',\n forName: 'para {name}',\n showSchemaDetails: 'Mostrar detalles del esquema',\n oneOf: 'Uno de',\n anyOf: 'Cualquiera de',\n allOf: 'Todos de',\n not: 'No',\n unknownType: 'tipo desconocido',\n propertyCount: 'Propiedades: {count}',\n headerCount: 'Encabezados: {count}',\n recursiveReference: 'Referencia recursiva a {name}',\n recursive: 'recursivo',\n additionalProperties: 'propiedades adicionales',\n const: 'constante',\n deprecated: 'obsoleto',\n discriminator: 'Discriminador',\n enum: 'enum',\n format: 'Formato',\n greaterThan: 'mayor que',\n keys: 'claves',\n lessThan: 'menor que',\n max: 'máx.',\n min: 'mín.',\n maxLength: 'longitud máx.',\n minLength: 'longitud mín.',\n multipleOf: 'múltiplo de',\n nullable: 'admite null',\n propertyNames: 'nombres de propiedades',\n pattern: 'Patrón',\n copyPattern: 'Copiar patrón',\n readOnly: 'solo lectura',\n required: 'obligatorio',\n hideValues: 'Ocultar valores',\n showAllValues: 'Mostrar todos los valores',\n type: 'Tipo',\n unique: 'único',\n values: 'valores',\n writeOnly: 'solo escritura',\n },\n common: { copyDefault: 'Copiar valor por defecto', copyExample: 'Copiar valor de ejemplo' },\n actions: { copyLinkTo: 'Copiar enlace a {name}' },\n}\n"],"mappings":";AAAA,IAAa,IAAK;CAChB,QAAQ;EACN,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;
|
|
1
|
+
{"version":3,"file":"es.js","names":[],"sources":["../../../../src/schema/localization/locales/es.ts"],"sourcesContent":["export const es = {\n schema: {\n variants: 'Variantes',\n discriminatorValue: 'Valor del discriminador',\n noAllowedValues: 'Ningún valor satisface esta restricción enum.',\n example: 'Ejemplo',\n examples: 'Ejemplos',\n default: 'Predeterminado',\n schema: 'Esquema',\n emptyObject: 'Objeto vacío',\n showAdditionalProperties: 'Mostrar propiedades adicionales',\n showOneMoreProperty: 'Mostrar 1 propiedad más',\n showMoreProperties: 'Mostrar {count} propiedades más',\n forName: 'para {name}',\n showSchemaDetails: 'Mostrar detalles del esquema',\n oneOf: 'Uno de',\n anyOf: 'Cualquiera de',\n allOf: 'Todos de',\n not: 'No',\n unknownType: 'tipo desconocido',\n propertyCount: 'Propiedades: {count}',\n headerCount: 'Encabezados: {count}',\n recursiveReference: 'Referencia recursiva a {name}',\n recursive: 'recursivo',\n additionalProperties: 'propiedades adicionales',\n const: 'constante',\n deprecated: 'obsoleto',\n discriminator: 'Discriminador',\n enum: 'enum',\n format: 'Formato',\n greaterThan: 'mayor que',\n keys: 'claves',\n lessThan: 'menor que',\n max: 'máx.',\n min: 'mín.',\n maxLength: 'longitud máx.',\n minLength: 'longitud mín.',\n multipleOf: 'múltiplo de',\n nullable: 'admite null',\n propertyNames: 'nombres de propiedades',\n pattern: 'Patrón',\n copyPattern: 'Copiar patrón',\n readOnly: 'solo lectura',\n required: 'obligatorio',\n hideValues: 'Ocultar valores',\n showAllValues: 'Mostrar todos los valores',\n type: 'Tipo',\n unique: 'único',\n values: 'valores',\n writeOnly: 'solo escritura',\n typeInteger: 'Números enteros.',\n formatInt32: 'Enteros de 32 bits con signo (tipo entero de uso común).',\n formatInt64: 'Enteros de 64 bits con signo (tipo long).',\n formatDate: 'notación full-date definida en RFC 3339, sección 5.6, por ejemplo, 2017-07-21',\n formatDateTime: 'notación date-time definida en RFC 3339, sección 5.6, por ejemplo, 2017-07-21T17:32:28Z',\n formatPassword: 'indica a las interfaces que oculten la entrada',\n formatBase64: 'caracteres codificados en base64, por ejemplo, U3dhZ2dlciByb2Nrcw==',\n formatBinary: 'datos binarios, usados para describir archivos',\n },\n common: { copyDefault: 'Copiar valor por defecto', copyExample: 'Copiar valor de ejemplo' },\n actions: { copyLinkTo: 'Copiar enlace a {name}' },\n}\n"],"mappings":";AAAA,IAAa,IAAK;CAChB,QAAQ;EACN,UAAU;EACV,oBAAoB;EACpB,iBAAiB;EACjB,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,aAAa;EACb,0BAA0B;EAC1B,qBAAqB;EACrB,oBAAoB;EACpB,SAAS;EACT,mBAAmB;EACnB,OAAO;EACP,OAAO;EACP,OAAO;EACP,KAAK;EACL,aAAa;EACb,eAAe;EACf,aAAa;EACb,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,aAAa;EACb,MAAM;EACN,UAAU;EACV,KAAK;EACL,KAAK;EACL,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,SAAS;EACT,aAAa;EACb,UAAU;EACV,UAAU;EACV,YAAY;EACZ,eAAe;EACf,MAAM;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,aAAa;EACb,aAAa;EACb,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;EACd,cAAc;CAChB;CACA,QAAQ;EAAE,aAAa;EAA4B,aAAa;CAA0B;CAC1F,SAAS,EAAE,YAAY,yBAAyB;AAClD"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const fr: {
|
|
2
2
|
schema: {
|
|
3
|
+
variants: string;
|
|
4
|
+
discriminatorValue: string;
|
|
3
5
|
noAllowedValues: string;
|
|
4
6
|
example: string;
|
|
5
7
|
examples: string;
|
|
@@ -46,6 +48,14 @@ export declare const fr: {
|
|
|
46
48
|
unique: string;
|
|
47
49
|
values: string;
|
|
48
50
|
writeOnly: string;
|
|
51
|
+
typeInteger: string;
|
|
52
|
+
formatInt32: string;
|
|
53
|
+
formatInt64: string;
|
|
54
|
+
formatDate: string;
|
|
55
|
+
formatDateTime: string;
|
|
56
|
+
formatPassword: string;
|
|
57
|
+
formatBase64: string;
|
|
58
|
+
formatBinary: string;
|
|
49
59
|
};
|
|
50
60
|
common: {
|
|
51
61
|
copyDefault: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../src/schema/localization/locales/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../src/schema/localization/locales/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Dd,CAAA"}
|