Проверка правильности JSON в администрировании Django

Можете ли вы помочь мне выяснить, какие валидные данные мне нужно ввести в админку Django для схемы, определенной следующим образом?:

REQUIREMENTS_SCHEMA = {
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "chain": {"type": "string", "enum": BLOCKCHAINS_ENUM},
            "asset_type": {"type": "string", "enum": ASSET_TYPES_ENUM},
            "asset_address": {"type": "string", "pattern": "^(0x|0X).*$"},
            "amount": {"type": "integer", "minimum": 1},
            "token_id": {"type": "array", "items": {"type": "integer"}, "minItems": 0},
        },
        "required": ["chain", "asset_type", "asset_address", "amount"],
    },
}

Я пробовал это [{"type": ["f"], "items": {"type": "x", "properties": {"chain": "ETHEREUM", "asset_type": "ERC20", "asset_address": "0x711Dfd645411B741E6FE3aeaA37d504C0e44B0F9", "amount": 2, "token_id": 2}}}] Но я получаю ошибку enter image description here

Вернуться на верх