-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
core
Version
6.0.0-beta.15
Current Behavior
When adding new items to a schema that has patternProperties
, the submitted form payload has incorrect chaining.
Also, it's not possible to delete the newly added properties:
Expected Behavior
When submitting the form, we should have the correct payload; also, we should be able to add and remove newly added properties.
Steps To Reproduce
- Visit the following URL in the playground to debug it or try the following schema:
{
"type": "object",
"properties": {
"template": {
"title": "Template",
"description": "The template to replace placeholders in.",
"examples": [
"Hello, {{name}}! You are {{age}} years old."
],
"type": "string"
},
"variables": {
"title": "Variables",
"description": "The variables to replace placeholders in.",
"default": {
"variables": ""
},
"examples": [
{
"name": "John",
"age": 30
},
{
"name": "Jane",
"age": 25
}
],
"type": "object",
"patternProperties": {
"^(.*)$": {
"anyOf": [
{
"$id": "string",
"title": "String",
"default": "",
"description": "The string value to replace placeholders in.",
"examples": [
"John",
"Jane"
],
"type": "string"
},
{
"$id": "number",
"title": "Number",
"default": 0,
"description": "The number value to replace placeholders in.",
"examples": [
30,
25
],
"type": "number"
}
]
}
}
}
},
"required": [
"template",
"variables"
]
}

20250910-1716-42.0085493.mp4
Environment
- OS: Windows 11
- Node: 22.17.1
- npm: -
Anything else?
Maybe it's an issue from my schema.