Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.3.0-alpha.0: Add AJV and refParserOptions to JsonFormsInitStateProps #1408

Closed
Lily418 opened this issue Jun 18, 2019 · 1 comment
Closed
Milestone

Comments

@Lily418
Copy link
Contributor

Lily418 commented Jun 18, 2019

As per this conversation with @edgarmueller on Spectrum Chat
https://spectrum.chat/jsonforms/general/providing-refparseroptions-and-custom-ajv-instance-to-context-based-json-forms~3a7accf9-01c4-409c-a4cf-832ef4deddc6

In v2.2.3 it was possible to initialize a store like

  store.dispatch(Actions.init(drugData, drugSchema, uischema, {
    ajv: ajv,
    refParserOptions: {
      resolve: {
        customerResolver
      }
    }
  }))

In JsonFormsInitStateProps

export interface JsonFormsInitStateProps {
    data: any;
    schema: JsonSchema;
    uischema: UISchemaElement;
    renderers: JsonFormsRendererRegistryEntry[];
}

ajv and refParserOptions are currently not implemented.

I'm intending to take a look to see if I can make a PR this morning.

@edgarmueller edgarmueller added this to the 2.3.0 milestone Jun 24, 2019
@edgarmueller
Copy link
Contributor

Fixed via #1410

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants