{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rightshold-com/json-schema/rightshold-com-intended-use-schema.json",
  "title": "IntendedUse",
  "description": "Unknown fields, non-boolean flags, duration_days outside 1-36500 or an empty geography are refused with 422 invalid_intended_use. The license check endpoints also require at least one use flag set to true.",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rightshold-com-openapi.json#/components/schemas/IntendedUse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "commercial_use": {
      "type": "boolean"
    },
    "redistribution": {
      "type": "boolean"
    },
    "modification": {
      "type": "boolean"
    },
    "sublicensing": {
      "type": "boolean"
    },
    "deployment": {
      "type": "boolean"
    },
    "attribution_planned": {
      "type": "boolean"
    },
    "geography": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32
    },
    "duration_days": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "maximum": 36500
    },
    "model_training": {
      "type": "boolean"
    },
    "model_inference": {
      "type": "boolean"
    }
  }
}