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

enum / enumNames #4

Closed
kozy opened this issue Aug 21, 2018 · 1 comment
Closed

enum / enumNames #4

kozy opened this issue Aug 21, 2018 · 1 comment

Comments

@kozy
Copy link

kozy commented Aug 21, 2018

Hi, me again :)

I really like this clean way of building a schema. I'm trying to build this structure but I cannot figure out how to do it. Is it possible and would you be so kind to guide me? I would like to use it to augment the react-apollo-form.

data: {
  properties: {
    date_of_birth: {
      type: "string",
      "format": "date"
    },
    gender: {
      "enum": [
        'MALE',
        'FEMALE'
      ],
      "enumNames": [
        "Male",
        "Female"
      ]
    }
  }
}

Thank you!

@charlypoly
Copy link
Owner

Hi @kozy ,

I found this issue on json-schema repo that explains how to handle enumNames: rjsf-team/react-jsonschema-form#532

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

No branches or pull requests

2 participants