vuetify-jsonschema-form icon indicating copy to clipboard operation
vuetify-jsonschema-form copied to clipboard

patternProperties not working

Open v-kay opened this issue 3 years ago • 1 comments

I want to display a form which should allow user to add name of the key and its value in a object like this { "key1": "value1", "key2": "value2" } User should be able to enter "key1" in first text input field and "value1" in second text input field. I have read somewhere that we can add this using "patternProperties". I have created this example but its not working/showing any button to add key/value pair. ` { "$id": "https://example.com/person.schema.json", "$schema": "http://json-schema.org/draft-07/schema#", "title": "Person", "description": "A few metadata about some person. Rendered as a form by vuetify-jsonschema-form.", "type": "object", "required": [ "firstName", "lastName" ], "properties": { "type": { "type": "string", "const": "person" }, "firstName": { "type": "string", "description": "sample desc", "x-class": "sm6 pr-4" }, "lastName": { "type": "object", "patternProperties": { ".": { "type": "string" }, ".": { "type": "integer" } } } } }

` I am testing this JSON schema using the link https://koumoul-dev.github.io/vuetify-jsonschema-form/0.x/?example=selects

v-kay avatar Jan 31 '22 05:01 v-kay

This is not supported yet. I think it will be in the future, but I don't known when I will have the time to work on it.

albanm avatar Jan 31 '22 06:01 albanm