koumoul-dev / vuetify-jsonschema-form

Create beautiful and low-effort forms that output valid data. Published on npm as @koumoul/vjsf.
https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/
MIT License
548 stars 155 forks source link

Update modelRoot prop type #199

Closed jjnesbitt closed 3 years ago

jjnesbitt commented 3 years ago

I use this Vue Component on a project and continually get Vue warnings clogging my console when passing anything but an object to modelRoot (in my case, an array). However, the component works fine, and it seems to me that modelRoot should allow any supported data type, since that's how JSON Schema operates.

I've also included a linting fix, since I was getting errors thrown when I tried npm run prepublish.