fightingm / vue-awesome-form

a vue form component just like json-editor
43 stars 7 forks source link

different schema format #1

Open ctrngk opened 6 years ago

ctrngk commented 6 years ago

I find schema format differs from projects to projects. Instead of writing schema myself, I want to fetch schema from api, and might later modified a bit. Modern API framework, like django rest framework, generates schema automatically. Here is what it looks like https://restframework.herokuapp.com/schema/ https://restframework.herokuapp.com/schema/?format=corejson I want to fetch the second link above, and use the schema in vue-awesome-form. Is it a good idea? Would you consider to support such format in the near future?

fightingm commented 6 years ago

Sorry, I am not compatible with all data formats. You can try to convert your data into the format required by vue-awesome-form. Or you can copy the code into the project and modify the data format to suit your needs.

pavitardua commented 5 years ago

What I would do, is process the API response to form a schema in the expected format. I am doing this for my current project. However, I want to know, how to register callbacks, to populate child data controls conditionally based on parent data control selection.