react-json-form icon indicating copy to clipboard operation
react-json-form copied to clipboard

Using additionalProperties and oneOf together results in unexpected behavior

Open bhch opened this issue 1 year ago • 2 comments

When an object has additionalProperties and oneOf present, the form ui interprets the oneOf fields as the parent object's additional property.

Schema:

{
  "type": "object",
  "properties": {
    "name": {"type": "string"}
  },
  "additionalProperties": true,
  "oneOf": [
    {
      "properties": {
        "age": {"type": "string"}
      },
      "additionalProperties": true
    }
  ]
}

bhch avatar Mar 23 '23 07:03 bhch