python-restx / flask-restx

Fork of Flask-RESTPlus: Fully featured framework for fast, easy and documented API development with Flask
https://flask-restx.readthedocs.io/en/latest/
Other
2.14k stars 333 forks source link

Form json Get valeu #557

Open feiticeiro-tec opened 1 year ago

feiticeiro-tec commented 1 year ago

Ask a question Hello, I apologize in advance for the English (google translator)

is there any way to get the values of a json through the hierarchy?

I know that if you use the expect in the model to get the values, however, would it be possible to do a custom validation like in reqparse?

Additional context

Request POST

{
    "user":{
        "name":"name"
    },"address":{
        "name":"name"
    }
}

data["user"]["name"] data["address"]["name"]