menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

JSONForms

JSON Forms is a JSON Schema based approach for creating forms and comes with support for React, Angular and Vue. Support here is free, but might involve some delay in the replies based on our current workload for paying customers. We also offer PROFESSIONAL SUPPORT packages to get you started quickly with JSON Forms and to help you with any questions and technical difficulties for JSON Forms with guaranteed response time and in-depth technical solutions. For details please see our web page linked below.

Channels
Team

How to provide resolver to JsonForms

December 8, 2019 at 10:21pm

How to provide resolver to JsonForms

December 8, 2019 at 10:21pm (Edited 3 years ago)
let resolver = {
order: 1,
canRead: function(file) {
console.log(file);
return true;
},
read: function(file) {
console.log(file);
// return JSON.stringify(yourSchemaObject)
}
};
const refParserOptions = {
resolve: {
foo: resolver
}
};
const JobForm = props => {
return (
<JsonForms
schema={PositionOpeningType}
renderers={materialRenderers}
ajv={ajv}
refParserOptions={refParserOptions}
/>
);
};
The resolver doesnt execute anything.

December 18, 2019 at 10:37am
Hi , in general your code looks fine. Therefore I need more detailed information to possibly help you. It would be nice to see the schema, uischema and data as well as how you configured Ajv. Do you get runtime errors when executing this?