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

schema.target.schema.json Maven / Gradle / Ivy

{
  "$id": "targets.schema.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Targets",
  "description": "Migration targets used in the recommandation",
  "definitions": {
    "ModDimension": {
      "type": "object",
      "properties": {
        "name": {
          "description": "Name of the mod dimension",
          "type": "string"
        },
        "values": {
          "description": "List of supported values",
          "type": "array"
        },
        "defaultValue": {
          "description": "Default value"
        }
      },
      "required": [
        "name",
        "values",
        "defaultValue"
      ]
    },
    "Target": {
      "type": "object",
      "properties": {
        "target": {
          "description": "Identifier for the target",
          "type": "string"
        },
        "dimensions": {
          "description": "Mod dimensions for the target",
          "type": "array",
          "items": {
            "$ref": "#/definitions/ModDimension"
          }
        }
      },
      "required": [
        "target"
      ]
    }
  },
  "type": "object",
  "properties": {
    "targets": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/definitions/Target"
      }
    }
  },
  "required": [
    "targets"
  ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy