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

schema.issue.schema.json Maven / Gradle / Ivy

{
  "$id": "issue.schema.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Issue",
  "description": "An issue used in the recommendation",
  "definitions": {
    "Issue": {
      "type": "object",
      "properties": {
        "id": {
          "description": "The unique identifier of an issue",
          "type": "string"
        },
        "title": {
          "description": "The name of the issue",
          "type": "string"
        },
        "category": {
          "description": "The category of the issue, the value should be defined is the issue_category.json",
          "type": "string"
        },
        "severity": {
          "description": "The severity of the issue",
          "type": "string"
        },
        "targetedSolutions": {
          "description": "Contains members with names that should match applicable targets for this issue. If none of the members match the current target, will default to the 'solutionText'",
          "type": "object",
          "patternProperties": {
            "^.*$": {
              "description": "The solution of this issue for this specific target",
              "type": "array",
              "items": {
                "type": "string",
                "title": "",
                "description": "The content of solution for an issue."
              },
              "additionalProperties": false
            }
          }
        },
        "solutionText": {
          "description": "The solution of this issue",
          "type": "array",
          "items": {
            "type": "string",
            "title": "",
            "description": "The content of solution for an issue."
          }
        },
        "issueOverhead": {
          "type": "number",
          "minimum": 0,
          "description": "the criteria used to detect this issue"
        },
        "occurrencesCost": {
          "type": "number",
          "minimum": 0,
          "description": "the criteria used to detect this issue"
        },
        "matchCriteria": {
          "oneOf": [
            {
              "$ref": "schema/jsonProvider.schema.json"
            },
            {
              "$ref": "schema/xmlProvider.schema.json"
            }
          ]
        }
      },
      "required": [
        "id",
        "title",
        "severity",
        "matchCriteria"
      ]
    }
  },
  "type": "object",
  "properties": {
    "issues": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/definitions/Issue"
      }
    }
  },
  "required": [
    "issues"
  ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy