{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ludoteca-dev/json-schema/ludoteca-dev-empresa-schema.json",
  "title": "Empresa",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ludoteca-dev-openapi.json#/components/schemas/Empresa",
  "type": "object",
  "properties": {
    "nombre": {
      "type": "string"
    },
    "nombre_original": {
      "type": [
        "string",
        "null"
      ],
      "description": "En chino, japonés o coreano, si «nombre» es el nombre latino"
    },
    "slug": {
      "type": "string"
    },
    "pais": {
      "type": [
        "string",
        "null"
      ]
    },
    "wikidata": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "desarrollados": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/JuegoCorto"
      }
    },
    "editados": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/JuegoCorto"
      }
    }
  },
  "$defs": {
    "JuegoCorto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "titulo": {
          "type": "string"
        },
        "ano": {
          "type": [
            "integer",
            "null"
          ]
        },
        "proximamente": {
          "type": "boolean"
        },
        "url_ficha": {
          "type": "string",
          "format": "uri"
        },
        "solo_en": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "Claves de las tiendas en las que la empresa edita este juego, cuando no es la editora principal; null si lo es"
        }
      }
    }
  }
}