[Python] JSON Schema to validate an array of dictionaries

Discussão em 'Python' iniciado por Stack, Fevereiro 16, 2025.

  1. Stack

    Stack Membro Participativo

    I recently asked this question about how to get rid of a name on a list, but I realized what I really want to do is get rid of the names of the dictionaries in the array.

    I want to validate a structure like this (notice the dictionaries are not named):

    {
    "some list": [
    {
    "foo": "bar"
    },
    {
    "bin": "baz"
    }
    ]
    }

    Continue reading...

Compartilhe esta Página