All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.xdev.mockserver.schema.keyToMultiValue.json Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
{
  "oneOf": [
    {
      "type": "array",
      "additionalProperties": false,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "values": {
            "type": "array",
            "additionalProperties": false,
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "keyMatchStyle": {
          "type": "string",
          "enum": [
            "MATCHING_KEY",
            "SUB_SET"
          ],
          "default": "SUB_SET"
        }
      },
      "patternProperties": {
        "^(?!keyMatchStyle)\\S+$": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "array",
              "additionalProperties": false,
              "items": {
                "$ref": "#/definitions/stringOrJsonSchema"
              }
            },
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "parameterStyle": {
                  "type": "string",
                  "enum": [
                    "SIMPLE",
                    "SIMPLE_EXPLODED",
                    "LABEL",
                    "LABEL_EXPLODED",
                    "MATRIX",
                    "MATRIX_EXPLODED",
                    "FORM_EXPLODED",
                    "FORM",
                    "SPACE_DELIMITED_EXPLODED",
                    "SPACE_DELIMITED",
                    "PIPE_DELIMITED_EXPLODED",
                    "PIPE_DELIMITED",
                    "DEEP_OBJECT"
                  ],
                  "default": ""
                },
                "values": {
                  "type": "array",
                  "additionalProperties": false,
                  "items": {
                    "$ref": "#/definitions/stringOrJsonSchema"
                  }
                }
              }
            }
          ]
        }
      }
    }
  ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy