Skip to content

Commit

Permalink
Fix dead link for definitely not compliant enumNames property (#1752)
Browse files Browse the repository at this point in the history
* Fix dead link for definitely not compliant `enumNames` property

* Update single.md

Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
  • Loading branch information
jnachtigall and epicfaace authored Jun 4, 2020
1 parent 45743f2 commit 6f7fd11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/usage/single.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ render((

### Custom labels for `enum` fields

This library supports the [`enumNames`](https://github.com/json-schema/json-schema/wiki/enumNames-%28v5-proposal%29) property for `enum` fields, which allows defining custom labels for each option of an `enum`:
This library supports a custom [`enumNames`](https://github.com/rjsf-team/react-jsonschema-form/issues/57) property for `enum` fields, which, however is not JSON-Schema compliant (see below for a compliant approach). The `enumNames` property allows defining custom labels for each option of an `enum`:

```jsx
const schema = {
Expand Down Expand Up @@ -140,4 +140,4 @@ const schema = {
render((
<Form schema={schema} />
), document.getElementById("app"));
```
```

0 comments on commit 6f7fd11

Please sign in to comment.