rjsf-team/react-jsonschema-form

additionalProperties should be by default allowed

Open

#2,137 建立於 2020年11月22日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)TypeScript (2,136 fork)batch import
corefeaturehelp wanted

倉庫指標

Star
 (13,175 star)
PR 合併指標
 (平均合併 3天 17小時) (30 天內合併 32 個 PR)

描述

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

貢獻者指南