{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anct/json-schema/anct-aid-aid-item-schema.json",
  "title": "aid-aid.item",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anct-aides-territoires-openapi.yml#/components/schemas/aid-aid.item",
  "type": "object",
  "deprecated": false,
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "maxLength": 255,
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "maxLength": 16,
      "type": "string"
    },
    "origin_url": {
      "format": "uri",
      "maxLength": 700,
      "type": [
        "string",
        "null"
      ],
      "description": "Lien vers plus d'informations"
    },
    "aid_audiences": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/organization_type-aid.item"
      },
      "description": "Les audiences cibles",
      "enum": [
        "commune",
        "epci",
        "department",
        "region",
        "special",
        "public-org",
        "public-cies",
        "association",
        "private-sector",
        "private-person",
        "farmer",
        "researcher"
      ]
    },
    "aid_types": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/aid_type-aid.item"
      },
      "description": "Nature de l'aide",
      "enum": [
        "grant",
        "loan",
        "recoverable-advance",
        "cee",
        "other",
        "technical-engineering",
        "financial-engineering",
        "legal-engineering"
      ]
    },
    "aid_destinations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/aid_destination-aid.item"
      },
      "description": "Actions concernées",
      "enum": [
        "supply",
        "investment"
      ]
    },
    "date_start": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "date_predeposit": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "date_submission_deadline": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "La date limite de dépôt du dossier"
    },
    "time_create": {
      "type": "string",
      "format": "date-time"
    },
    "aid_steps": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/aid_step-aid.item"
      }
    },
    "eligibility": {
      "type": [
        "string",
        "null"
      ]
    },
    "aid_recurrence": {
      "type": [
        "unknown_type",
        "null"
      ],
      "description": "Récurrence",
      "enum": [
        "oneoff",
        "ongoing",
        "recurring"
      ]
    },
    "perimeter": {
      "description": "Le territoire. Note : passer seulement l'id du périmètre suffit (perimeter=70973).",
      "anyOf": [
        {
          "$ref": "#/$defs/perimeter-aid.item"
        },
        {
          "type": "null"
        }
      ]
    },
    "application_url": {
      "maxLength": 700,
      "type": [
        "string",
        "null"
      ]
    },
    "time_update": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "slug": {
      "maxLength": 255,
      "type": "string"
    },
    "import_data_url": {
      "maxLength": 255,
      "type": [
        "string",
        "null"
      ]
    },
    "import_share_licence": {
      "maxLength": 50,
      "type": [
        "string",
        "null"
      ]
    },
    "is_call_for_project": {
      "type": "boolean",
      "description": "Appels à projets / Appels à manifestation d'intérêt",
      "enum": [
        true,
        false
      ]
    },
    "subvention_rate_min": {
      "type": [
        "integer",
        "null"
      ]
    },
    "subvention_rate_max": {
      "type": [
        "integer",
        "null"
      ]
    },
    "subvention_comment": {
      "maxLength": 255,
      "type": [
        "string",
        "null"
      ]
    },
    "contact": {
      "type": [
        "string",
        "null"
      ]
    },
    "project_examples": {
      "type": [
        "string",
        "null"
      ]
    },
    "short_title": {
      "maxLength": 64,
      "type": [
        "string",
        "null"
      ]
    },
    "in_france_relance": {
      "type": "boolean",
      "description": "Aides France Relance concernant le MTFP. Pour les aides du Plan de relance, utiliser le paramètre programs.slug",
      "enum": [
        true,
        false
      ]
    },
    "is_generic": {
      "type": "boolean",
      "description": "Aides génériques",
      "enum": [
        true,
        false
      ]
    },
    "loan_amount": {
      "type": [
        "integer",
        "null"
      ]
    },
    "recoverable_advance_amount": {
      "type": [
        "integer",
        "null"
      ]
    },
    "name_initial": {
      "maxLength": 255,
      "type": [
        "string",
        "null"
      ]
    },
    "european_aid": {
      "type": [
        "string",
        "null"
      ]
    },
    "import_data_mention": {
      "maxLength": 255,
      "type": [
        "string",
        "null"
      ]
    },
    "is_charged": {
      "type": "boolean",
      "description": "Aides payantes",
      "enum": [
        true,
        false
      ]
    },
    "categories": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/category_theme-aid.item"
      },
      "description": "Catégories d'aides. Il faut passer le slug du (ou des) catégorie(s)"
    },
    "programs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/program-aid.item"
      },
      "description": "Programmes d'aides. Il faut passer le slug du (ou des) programme(s)"
    },
    "aid_financers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AidFinancer-aid.item"
      },
      "description": "Porteurs d'aides. passer seulement l'id du (ou des) porteur(s) d'aides suffit"
    },
    "aid_instructors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AidInstructor-aid.item"
      }
    },
    "url": {
      "type": [
        "string",
        "null"
      ]
    },
    "project_references": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/project_reference-aid.item"
      }
    },
    "live": {
      "type": "boolean"
    }
  },
  "$defs": {
    "AidFinancer-aid.item": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "backer": {
          "$ref": "#/$defs/backer-aid.item"
        }
      }
    },
    "AidInstructor-aid.item": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "backer": {
          "$ref": "#/$defs/backer-aid.item"
        }
      }
    },
    "AidTypeGroup-aid.item": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "maxLength": 255,
          "type": "string"
        },
        "slug": {
          "maxLength": 255,
          "type": "string"
        }
      }
    },
    "aid_destination-aid.item": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "maxLength": 255,
          "type": "string"
        },
        "slug": {
          "maxLength": 255,
          "type": "string"
        }
      }
    },
    "aid_step-aid.item": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "maxLength": 255,
          "type": "string"
        },
        "slug": {
          "maxLength": 255,
          "type": "string"
        }
      }
    },
    "aid_type-aid.item": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "maxLength": 255,
          "type": "string"
        },
        "aid_type_group": {
          "anyOf": [
            {
              "$ref": "#/$defs/AidTypeGroup-aid.item"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "backer-aid.item": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "name": {
          "maxLength": 255,
          "type": "string"
        },
        "slug": {
          "maxLength": 255,
          "type": "string"
        }
      }
    },
    "category_theme-aid.item": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "maxLength": 255,
          "type": "string"
        },
        "slug": {
          "maxLength": 255,
          "type": "string"
        },
        "category_theme": {
          "$ref": "#/$defs/category_theme-aid.item"
        }
      }
    },
    "organization_type-aid.item": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "maxLength": 255,
          "type": "string"
        }
      }
    },
    "perimeter-aid.item": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "name": {
          "maxLength": 255,
          "type": "string"
        }
      }
    },
    "program-aid.item": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "maxLength": 255,
          "type": "string"
        },
        "slug": {
          "maxLength": 255,
          "type": "string"
        }
      }
    },
    "project_reference-aid.item": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "id": {
          "readOnly": true,
          "type": "integer"
        },
        "name": {
          "maxLength": 150,
          "type": "string"
        },
        "slug": {
          "maxLength": 255,
          "type": "string"
        }
      },
      "required": [
        "name"
      ]
    }
  }
}