{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/programmes-net/json-schema/programmes-net-semver-satisfies-schema.json",
  "title": "semver.satisfies",
  "description": "Test whether a version satisfies a range (^, ~, x, hyphen, ||).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/programmes-net-formatters-validators-api-openapi.yml#/components/schemas/semver.satisfies",
  "type": "object",
  "properties": {
    "operation": {
      "const": "satisfies"
    },
    "input": {
      "type": "string",
      "description": "The version to test.",
      "maxLength": 32768
    },
    "options": {
      "type": "object",
      "properties": {
        "range": {
          "type": "string",
          "description": "An npm-style range, e.g. \"^1.2.0 || ~2.1\".",
          "maxLength": 32768
        },
        "includePrerelease": {
          "type": "boolean",
          "description": "Let prerelease versions match ranges that do not name a prerelease.",
          "default": false
        }
      },
      "required": [
        "range"
      ]
    }
  },
  "required": [
    "operation",
    "options"
  ]
}