{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anct/json-schema/anct-aid-type-jsonld-schema.json",
  "title": "aid_type.jsonld",
  "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_type.jsonld",
  "type": "object",
  "deprecated": false,
  "properties": {
    "@id": {
      "readOnly": true,
      "type": "string"
    },
    "@type": {
      "readOnly": true,
      "type": "string"
    },
    "@context": {
      "readOnly": true,
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "object",
          "properties": {
            "@vocab": {
              "type": "string"
            },
            "hydra": {
              "type": "string",
              "enum": [
                "http://www.w3.org/ns/hydra/core#"
              ]
            }
          },
          "required": [
            "@vocab",
            "hydra"
          ],
          "additionalProperties": true
        }
      ]
    },
    "id": {
      "readOnly": true,
      "type": "integer"
    },
    "name": {
      "maxLength": 255,
      "type": "string"
    },
    "slug": {
      "maxLength": 255,
      "type": "string"
    },
    "position": {
      "type": "integer"
    },
    "time_create": {
      "type": "string",
      "format": "date-time"
    },
    "time_update": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "aid_type_group": {
      "anyOf": [
        {
          "$ref": "#/$defs/AidTypeGroup.jsonld"
        },
        {
          "type": "null"
        }
      ]
    },
    "aids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "iri-reference"
      }
    }
  },
  "required": [
    "name"
  ],
  "$defs": {
    "AidTypeGroup.jsonld": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "@context": {
          "readOnly": true,
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "properties": {
                "@vocab": {
                  "type": "string"
                },
                "hydra": {
                  "type": "string",
                  "enum": [
                    "http://www.w3.org/ns/hydra/core#"
                  ]
                }
              },
              "required": [
                "@vocab",
                "hydra"
              ],
              "additionalProperties": true
            }
          ]
        },
        "@id": {
          "readOnly": true,
          "type": "string"
        },
        "@type": {
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "type": "integer"
        },
        "name": {
          "maxLength": 255,
          "type": "string"
        },
        "slug": {
          "maxLength": 255,
          "type": "string"
        },
        "position": {
          "type": "integer"
        },
        "time_create": {
          "type": "string",
          "format": "date-time"
        },
        "time_update": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "aid_types": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/aid_type.jsonld"
          }
        }
      },
      "required": [
        "name"
      ]
    },
    "aid_type.jsonld": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "@id": {
          "readOnly": true,
          "type": "string"
        },
        "@type": {
          "readOnly": true,
          "type": "string"
        },
        "@context": {
          "readOnly": true,
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "properties": {
                "@vocab": {
                  "type": "string"
                },
                "hydra": {
                  "type": "string",
                  "enum": [
                    "http://www.w3.org/ns/hydra/core#"
                  ]
                }
              },
              "required": [
                "@vocab",
                "hydra"
              ],
              "additionalProperties": true
            }
          ]
        },
        "id": {
          "readOnly": true,
          "type": "integer"
        },
        "name": {
          "maxLength": 255,
          "type": "string"
        },
        "slug": {
          "maxLength": 255,
          "type": "string"
        },
        "position": {
          "type": "integer"
        },
        "time_create": {
          "type": "string",
          "format": "date-time"
        },
        "time_update": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "aid_type_group": {
          "anyOf": [
            {
              "$ref": "#/$defs/AidTypeGroup.jsonld"
            },
            {
              "type": "null"
            }
          ]
        },
        "aids": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "required": [
        "name"
      ]
    }
  }
}