Here you "build" the JSON Schema based on rootSchema and schema
|
const schema: JSONSchema = { |
|
...options.rootSchema, |
|
type: 'object', |
|
properties: options.schema, |
|
}; |
I don't understand why it is necessary to build the schema in this way and not allow the entire schema to be passed directly
As an example your "build" fails in my JSON schema where I don't have root properties because I don't know key names but only values.
In this case I need a JSON schema like this
{
"type":"object",
"patternProperties":{
"^.*$":{
"type":"object",
"properties":{
"schedule":{
"type":"string"
},
"timezone":{
"type":"string"
},
"start":{
"type":"boolean",
"default":true
}
}
}
}
}
which obviously fail in your JSON schema constructing and I don't know I to pass it
Here you "build" the JSON Schema based on
rootSchemaandschemaconf/source/index.ts
Lines 107 to 111 in 655f87c
I don't understand why it is necessary to build the schema in this way and not allow the entire schema to be passed directly
As an example your "build" fails in my JSON schema where I don't have root
propertiesbecause I don't know key names but only values.In this case I need a JSON schema like this
{ "type":"object", "patternProperties":{ "^.*$":{ "type":"object", "properties":{ "schedule":{ "type":"string" }, "timezone":{ "type":"string" }, "start":{ "type":"boolean", "default":true } } } } }which obviously fail in your JSON schema constructing and I don't know I to pass it