Describe the bug
With this schema:
const schema = {
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"mydef": {
"type": "object",
"properties": {
"myprop": { "type": "string" }
}
}
},
"type": "object",
"properties": {
"example": {
"$ref": "#/definitions/mydef",
"default": { "myprop": "default" }
}
}
}
Expected behavior
createDefaultValue(schema.properties.example, schema) should return { myprop: "default" }.
Steps to reproduce the issue
createDefaultValue(schema.properties.example, schema) returns {}.
Screenshots
No response
Which Version of JSON Forms are you using?
v3.7.0
Package
Core
Additional context
No response
Describe the bug
With this schema:
Expected behavior
createDefaultValue(schema.properties.example, schema)should return{ myprop: "default" }.Steps to reproduce the issue
createDefaultValue(schema.properties.example, schema)returns{}.Screenshots
No response
Which Version of JSON Forms are you using?
v3.7.0
Package
Core
Additional context
No response