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

specification.jsonschema.artifact-data-condition.json Maven / Gradle / Ivy

The newest version!
{
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "$id": "https://www.metaeffekt.com/schema/artifact-analysis/latest/artifact-data-condition.json",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "field": {
      "$ref": "artifact-fields.json#/$defs/artifactFieldOrAny"
    },
    "function": {
      "$ref": "#/$defs/function"
    },
    "value": {
      "$ref": "#/$defs/value"
    }
  },
  "required": [
    "field",
    "function",
    "value"
  ],
  "$defs": {
    "function": {
      "enum": [
        "equals",
        "matches",
        "version <",
        "version >",
        "version <=",
        "version >=",
        "numeric <",
        "numeric >",
        "numeric <=",
        "numeric >=",
        "csv contains",
        "csv not contains"
      ]
    },
    "value": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ],
      "minLength": 1
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy