Skip to content

Conversation

@vincentsarago
Copy link
Member

ref #750

>> httpx -m POST http://127.0.0.1:8000/search -j '{"limit": "yo"}' 
{
    "detail": [
        {
            "type": "int_parsing",
            "loc": [
                "body",
                "limit"
            ],
            "msg": "Input should be a valid integer, unable to parse string as an integer",
            "input": "yo"
        }
    ],
    "body": {
        "limit": "yo"
    }
}

>> httpx -m GET http://127.0.0.1:8000/search\?limit\=yo
{
    "detail": [
        {
            "type": "int_parsing",
            "loc": [
                "query",
                "limit"
            ],
            "msg": "Input should be a valid integer, unable to parse string as an integer",
            "input": "yo"
        }
    ],
    "body": null
}

@drnextgis is that better ?

@vincentsarago vincentsarago marked this pull request as ready for review January 7, 2025 16:05
@drnextgis
Copy link
Contributor

That is definitely much better!

@vincentsarago vincentsarago merged commit d2eb81d into main Jan 7, 2025
8 checks passed
@vincentsarago vincentsarago deleted the patch/verbose-validation-error branch January 7, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants