Skip to content

Commit ebda9f8

Browse files
committed
make the JsonSchema example when adding new Example object work correctly
1 parent 45c3464 commit ebda9f8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

packages/vue-vuetify/src/complex/components/AdditionalProperties.vue

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -224,18 +224,6 @@ export default defineComponent({
224224
propSchema = Resolve.schema(propSchema, propSchema.$ref, rootSchema);
225225
}
226226
227-
if (!propSchema && propValue !== undefined) {
228-
// can't find the propertySchema so use the schema based on the value
229-
// this covers case where the data in invalid according to the schema
230-
propSchema = Generate.jsonSchema(
231-
{ prop: propValue },
232-
{
233-
additionalProperties: true,
234-
required: (_props: { [property: string]: JsonSchema4 }) => false,
235-
},
236-
).properties?.prop;
237-
}
238-
239227
propSchema = propSchema ?? {};
240228
241229
if (propSchema.type === undefined) {

0 commit comments

Comments
 (0)