8000 if sent top value as wrong it is returning wrong message · Issue #33 · DynamicODataToSQL/DynamicODataToSQL · GitHub 10000
[go: up one dir, main page]

Skip to content

if sent top value as wrong it is returning wrong message #33

@dvsivakrishna

Description

@dvsivakrishna

Describe the bug

I am sending body as below

{
"filter": "",
"select": "*",
"orderBy": "",
"skip": 10,
"top": 5.5,
"apply": ""
}

To Reproduce

I am getting below response, we don't have any model field in request

{
"code": 400,
"message": "request validation failed",
"validation": [
{
"path": "top",
"message": "Input string '5.5' is not a valid integer. Path 'top', line 6, position 12.",
"id": null
},
{
"path": "model",
"message": "The model field is required.",
"id": null
}
]
}

Expected behaviour

{
"code": 400,
"message": "request validation failed",
"validation": [
{
"path": "top",
"message": "Input string '5.5' is not a valid integer. Path 'top', line 6, position 12.",
"id": null
}
]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0