Skip to content

Allow modifications of errors in non-redux version #1469

@DavidHenri008

Description

@DavidHenri008

Is your feature request related to a problem? Please describe.
In order to translate AJV error messages, the errors should be passed to the renderer.

Describe the solution you'd like
The errors handling on the JsonForms component is partially supported:

export const JsonForms = (
  props: JsonFormsInitStateProps & JsonFormsReactProps
) => {
  const {
    ajv,
    data,
    schema,
    uischema,
    renderers,
    refParserOptions,
    onChange
  } = props;
  return (
    <JsonFormsStateProvider
      initState={{
        core: {
          ajv,
          data,
          refParserOptions,
          schema,
          uischema,
          errors: [] // TODO
        },
        renderers
      }}
    >
      <JsonFormsDispatch onChange={onChange} />
    </JsonFormsStateProvider>
  );
};

Describe for which setup you like to have the improvement
Framework: react
RendererSet: all

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions