|
17 | 17 | <template v-if="hasReturns">
|
18 | 18 | <Description v-if="schema.returns.description" :description="schema.returns.description" :processUrl="processUrl" />
|
19 | 19 | <div class="json-schema-container" v-if="schema.returns.schema">
|
20 |
| - <JsonSchema :schema="schema.returns.schema" /> |
| 20 | + <openeo-json-schema :schema="schema.returns.schema" /> |
21 | 21 | </div>
|
22 | 22 | </template>
|
23 | 23 | <p v-else>No constraints defined.</p>
|
24 | 24 | </div>
|
25 | 25 | </div>
|
26 | 26 | <div v-else-if="showRow('object')" class="schemaObjectElement">
|
27 | 27 | <div class="inline-schema-attrs">
|
28 |
| - <JsonSchema v-if="filteredObjectSchema !== null" :schema="filteredObjectSchema" :nestingLevel="nestingLevel+1" /> |
| 28 | + <openeo-json-schema v-if="filteredObjectSchema !== null" :schema="filteredObjectSchema" :nestingLevel="nestingLevel+1" /> |
29 | 29 | <table class="object-properties">
|
30 | 30 | <tr>
|
31 | 31 | <th colspan="2" class="object-prop-heading">Object Properties:</th>
|
|
36 | 36 | <strong class="required" v-if="schema.required && schema.required.indexOf(key) !== -1" title="required">*</strong>
|
37 | 37 | </td>
|
38 | 38 | <td class="value">
|
39 |
| - <JsonSchema :schema="val" :nestingLevel="nestingLevel+1" :processUrl="processUrl" /> |
| 39 | + <openeo-json-schema :schema="val" :nestingLevel="nestingLevel+1" :processUrl="processUrl" /> |
40 | 40 | </td>
|
41 | 41 | </tr>
|
42 | 42 | </table>
|
|
59 | 59 | </tr>
|
60 | 60 | <tr>
|
61 | 61 | <td colspan="2" class="schema-container data-types-container">
|
62 |
| - <JsonSchema v-for="(v, k) in compositeTypes" :key="k" :schema="v" :nestingLevel="nestingLevel+1" :processUrl="processUrl" /> |
| 62 | + <openeo-json-schema v-for="(v, k) in compositeTypes" :key="k" :schema="v" :nestingLevel="nestingLevel+1" :processUrl="processUrl" /> |
63 | 63 | </td>
|
64 | 64 | </tr>
|
65 | 65 | </template>
|
|
70 | 70 | <td class="value">
|
71 | 71 | <span v-if="key == 'type'" class="data-type">{{ formatType() }}</span>
|
72 | 72 | <div v-else-if="key == 'allOf' && Array.isArray(val)" class="schema-container">
|
73 |
| - <JsonSchema v-for="(v, k) in val" :key="k" :schema="v" :nestingLevel="nestingLevel+1" :processUrl="processUrl" /> |
| 73 | + <openeo-json-schema v-for="(v, k) in val" :key="k" :schema="v" :nestingLevel="nestingLevel+1" :processUrl="processUrl" /> |
74 | 74 | </div>
|
75 | 75 | <span v-else-if="key != 'default' && key != 'examples' && val === true" title="true">✓ Yes</span>
|
76 | 76 | <span v-else-if="key != 'default' && key != 'examples' && val === false" title="false">✕ No</span>
|
|
85 | 85 | <em v-else-if="key == 'default' && val === ''">Empty string</em>
|
86 | 86 | <code v-else-if="key == 'default' && (typeof val === 'object' || typeof val === 'boolean')">{{ JSON.stringify(val) }}</code>
|
87 | 87 | <code v-else-if="key == 'pattern'">{{ val }}</code>
|
88 |
| - <JsonSchema v-else-if="typeof val === 'object'" :schema="val" :initShown="nestingLevel < 3" :nestingLevel="nestingLevel+1" :processUrl="processUrl" /> |
| 88 | + <openeo-json-schema v-else-if="typeof val === 'object'" :schema="val" :initShown="nestingLevel < 3" :nestingLevel="nestingLevel+1" :processUrl="processUrl" /> |
89 | 89 | <span v-else>{{ val }}</span>
|
90 | 90 | </td>
|
91 | 91 | </template>
|
@@ -124,7 +124,9 @@ export default Utils.enableHtmlProps({
|
124 | 124 | };
|
125 | 125 | },
|
126 | 126 | components: {
|
127 |
| - Description: () => import('./Description.vue') |
| 127 | + Description: () => import('./Description.vue'), |
| 128 | + // Workaround for issue https://github.com/vuejs/vue-cli/issues/6225 |
| 129 | + 'openeo-json-schema': () => import('./JsonSchema.vue') |
128 | 130 | },
|
129 | 131 | beforeCreate() {
|
130 | 132 | // See https://vuejs.org/v2/guide/components-edge-cases.html#Circular-References-Between-Components
|
|
0 commit comments