LandsOfHope / LandsOfHope.Data

Open Data Commons Open Database License v1.0
0 stars 1 forks source link

Update images schema to use images-id instead of raw string #197

Closed etinquis closed 9 months ago

etinquis commented 1 year ago
{
    "$id": "https://data.landsofhope.com/schemas/images.json",
    "type": "object",
    "properties": {
        "M": {
            "type": "array",
            "items": {
                "$ref": "schemas/images-id.json"
            }
        },
        "F": {
            "type": "array",
            "items": {
                "$ref": "schemas/images-id.json"
            }
        },
        "U": {
            "type": "array",
            "items": {
                "$ref": "schemas/images-id.json"
            }
        }
    },
    "additionalProperties": false,
    "anyOf": [
        {
            "required": [
                "M"
            ]
        },
        {
            "required": [
                "F"
            ]
        },
        {
            "required": [
                "U"
            ]
        }
    ]
}