From 492f91f659a9d70688291cfa243097657a1d74e2 Mon Sep 17 00:00:00 2001 From: jnachtigall Date: Thu, 14 May 2020 11:29:32 +0200 Subject: [PATCH 1/2] Fix dead link for definitely not compliant `enumNames` property --- docs/usage/single.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage/single.md b/docs/usage/single.md index 1a5778e9d7..957ca98ebe 100644 --- a/docs/usage/single.md +++ b/docs/usage/single.md @@ -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` 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 = { @@ -140,4 +140,4 @@ const schema = { render((
), document.getElementById("app")); -``` \ No newline at end of file +``` From e87220df627d4d4e368826ed07b2361ae4626304 Mon Sep 17 00:00:00 2001 From: Ashwin Ramaswami Date: Wed, 3 Jun 2020 22:17:57 -0400 Subject: [PATCH 2/2] Update single.md --- docs/usage/single.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage/single.md b/docs/usage/single.md index 957ca98ebe..581b2bcd2e 100644 --- a/docs/usage/single.md +++ b/docs/usage/single.md @@ -57,7 +57,7 @@ render(( ### Custom labels for `enum` fields -This library supports a custom `enumNames` 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`: +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 = {