{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "title": "Ficha de fuente",
 "type": "object",
 "required": [
  "id",
  "nombre",
  "url",
  "estado"
 ],
 "properties": {
  "id": {
   "type": "string",
   "description": "identificador estable"
  },
  "nombre": {
   "type": "string"
  },
  "url": {
   "type": [
    "string",
    "null"
   ],
   "format": "uri",
   "description": "null si la URL se descartó (ver incidencia)"
  },
  "pais": {
   "type": "string"
  },
  "categoria": {
   "type": "string"
  },
  "disciplinas": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "acceso": {
   "type": "string"
  },
  "licencia": {
   "type": "string"
  },
  "estado": {
   "enum": [
    "confirmado",
    "declarado",
    "no_consta",
    "semilla"
   ]
  },
  "http": {
   "type": "object",
   "description": "última comprobación: codigo, url_final, fecha"
  },
  "padre": {
   "type": "string"
  }
 }
}