DEV Community

wsq
wsq

Posted on

Pure HTML with CDN json schema form element has typo

what a great project that uses lit

https://github.com/json-schema-form-element/jsfe?tab=readme-ov-file

Everything was working great with https://github.com/json-schema-form-element/examples/blob/main/src/pages/pure-html.html

but when I tried to use the ui-schema it failed until I changed

ui-schema to uiSchema

not working:

<json-schema-form
    // .....
    ui-schema='{
        "bar": {
            "ui:widget": "switch"
        }
    }'
></json-schema-form>
Enter fullscreen mode Exit fullscreen mode

working:

<json-schema-form
    // .....
    uiSchema='{
        "bar": {
            "ui:widget": "switch"
        }
    }'
></json-schema-form>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)