HEX
Server: LiteSpeed
System: Linux in-mum-web785.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User: u338768758 (338768758)
PHP: 8.3.30
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/go/pkg/mod/github.com/go-openapi/validate@v0.21.0/fixtures/defaulting/schema.json
{
  "properties": {
    "int": {
      "type": "integer",
      "default": 42
    },
    "existing": {
      "type": "integer",
      "default": 42
    },
    "str": {
      "type": "string",
      "minLength": 4,
      "default": "Hello"
    },
    "obj": {
      "type": "object",
      "default": {"foo": "bar"}
    },
    "nested": {
      "type": "object",
      "properties": {
        "inner": {
          "type": "integer",
          "default": 7
        }
      }
    },
    "all": {
      "allOf": [
        {
          "type": "object",
          "properties": {
            "foo": {
              "type": "integer",
              "default": 42
            }
          }
        },
        {
          "type": "object",
          "properties": {
            "bar": {
              "type": "integer",
              "default": 42
            }
          }
        }
      ]
    },
    "any": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "foo": {
              "type": "integer",
              "default": 42
            }
          }
        },
        {
          "type": "object",
          "properties": {
            "bar": {
              "type": "integer",
              "default": 42
            }
          }
        }
      ]
    },
    "one": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "foo": {
              "type": "integer"
            }
          },
          "required": ["foo"]
        },
        {
          "type": "object",
          "properties": {
            "bar": {
              "type": "integer",
              "default": 42
            }
          }
        }
      ]
    },
    "not": {
      "not": {
        "type": "object",
        "default": {
          "foo": 1
        }
      }
    }
  },
  "required": ["int", "str", "nested", "all", "any", "one"]
}