94 lines
		
	
	
		
			No EOL
		
	
	
		
			1.7 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			94 lines
		
	
	
		
			No EOL
		
	
	
		
			1.7 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
  "$schema": "https://json-schema.org/draft/2020-12/schema",
 | 
						|
  "title": "Struct",
 | 
						|
  "type": "object",
 | 
						|
  "properties": {
 | 
						|
    "min_max": {
 | 
						|
      "type": "number",
 | 
						|
      "format": "float",
 | 
						|
      "minimum": 0.01,
 | 
						|
      "maximum": 100
 | 
						|
    },
 | 
						|
    "min_max2": {
 | 
						|
      "type": "number",
 | 
						|
      "format": "float",
 | 
						|
      "minimum": 1,
 | 
						|
      "maximum": 1000
 | 
						|
    },
 | 
						|
    "regex_str1": {
 | 
						|
      "type": "string",
 | 
						|
      "pattern": "^[Hh]ello\\b"
 | 
						|
    },
 | 
						|
    "regex_str2": {
 | 
						|
      "type": "string",
 | 
						|
      "pattern": "^[Hh]ello\\b"
 | 
						|
    },
 | 
						|
    "contains_str1": {
 | 
						|
      "type": "string",
 | 
						|
      "pattern": "substring\\.\\.\\."
 | 
						|
    },
 | 
						|
    "contains_str2": {
 | 
						|
      "type": "string",
 | 
						|
      "pattern": "substring\\.\\.\\."
 | 
						|
    },
 | 
						|
    "email_address": {
 | 
						|
      "type": "string",
 | 
						|
      "format": "email"
 | 
						|
    },
 | 
						|
    "homepage": {
 | 
						|
      "type": "string",
 | 
						|
      "format": "uri"
 | 
						|
    },
 | 
						|
    "non_empty_str": {
 | 
						|
      "type": "string",
 | 
						|
      "minLength": 1,
 | 
						|
      "maxLength": 100
 | 
						|
    },
 | 
						|
    "non_empty_str2": {
 | 
						|
      "type": "string",
 | 
						|
      "minLength": 1,
 | 
						|
      "maxLength": 1000
 | 
						|
    },
 | 
						|
    "pair": {
 | 
						|
      "type": "array",
 | 
						|
      "items": {
 | 
						|
        "type": "integer",
 | 
						|
        "format": "int32"
 | 
						|
      },
 | 
						|
      "minItems": 2,
 | 
						|
      "maxItems": 2
 | 
						|
    },
 | 
						|
    "map_contains": {
 | 
						|
      "type": "object",
 | 
						|
      "additionalProperties": {
 | 
						|
        "type": "null"
 | 
						|
      },
 | 
						|
      "required": [
 | 
						|
        "map_key"
 | 
						|
      ]
 | 
						|
    },
 | 
						|
    "required_option": {
 | 
						|
      "type": "boolean"
 | 
						|
    },
 | 
						|
    "x": {
 | 
						|
      "type": "integer",
 | 
						|
      "format": "int32"
 | 
						|
    }
 | 
						|
  },
 | 
						|
  "required": [
 | 
						|
    "min_max",
 | 
						|
    "min_max2",
 | 
						|
    "regex_str1",
 | 
						|
    "regex_str2",
 | 
						|
    "contains_str1",
 | 
						|
    "contains_str2",
 | 
						|
    "email_address",
 | 
						|
    "homepage",
 | 
						|
    "non_empty_str",
 | 
						|
    "non_empty_str2",
 | 
						|
    "pair",
 | 
						|
    "map_contains",
 | 
						|
    "required_option",
 | 
						|
    "x"
 | 
						|
  ]
 | 
						|
} |