Open brupxxxlgroup opened 1 month ago
Hello follwing json
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "logLevel": { "$ref": "#/$defs/logLevel" } }, "required": ["logLevel"], "$defs": { "logLevel": { "type": "string", "description": "The log level for the application.", "enum": ["Debug", "Info", "Warning", "Error", "Fatal"] } } }
gives folling output
logLevel: Refer to #/$defs/logLevel.
logLevel
logLevel (string): The log level for the application. Must be one of: ["Debug", "Info", "Warning", "Error", "Fatal"].
["Debug", "Info", "Warning", "Error", "Fatal"]
Why is logLevel not shown as required in the properties section?
Hello follwing json
gives folling output
JSON Schema
Properties
logLevel
: Refer to #/$defs/logLevel.Definitions
logLevel
(string): The log level for the application. Must be one of:["Debug", "Info", "Warning", "Error", "Fatal"]
.Why is logLevel not shown as required in the properties section?