rjsf-team/react-jsonschema-form

additionalProperties should be by default allowed

Open

#2 137 ouverte le 22 nov. 2020

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)TypeScript (2 136 forks)batch import
corefeaturehelp wanted

Métriques du dépôt

Stars
 (13 175 stars)
Métriques de merge PR
 (Merge moyen 3j 17h) (32 PRs mergées en 30 j)

Description

Prerequisites

Description

Json schema by default allows additional properties in objects (json-schema-doc, there is this paragraph "The additionalProperties keyword is used to control the handling of extra stuff, that is, properties whose names are not listed in the properties keyword. By default any additional properties are allowed."). In form, its unfortunately treated as false when not specified.

Playground

Steps to Reproduce

  1. Create schema with "type":"object" , without specified "additionalProperties".

Expected behavior

I should be able to add aditional properties to object.

Actual behavior

Its not possible to add additional properties

Version

2.4.0

Guide contributeur