Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Bean validation is not working in case of bulk create #77

Closed
Desire456 opened this issue Aug 9, 2021 · 1 comment
Closed

Bean validation is not working in case of bulk create #77

Desire456 opened this issue Aug 9, 2021 · 1 comment
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@Desire456
Copy link
Contributor

Given the following request:

POST {{baseUrl}}
         /entities
         /jmixp_Order
Authorization: Bearer {{auth_token}}

[
    {
        "name": null
    },
    {
        "name": null
    }
]

Note:
Order's name property has @NotNull constraint.

AR:

[
    {
        "_entityName": "jmixp_Order",
        "id": "05371460-eba8-b4b4-8aa6-7f9c52c95cf8"
    },
    {
        "_entityName": "jmixp_Order",
        "id": "5856d6e0-f538-2534-b9bc-a92f4003e4ad"
    }
]

ER:

{
    "message": "may not be null",
    "messageTemplate": "{javax.validation.constraints.NotNull.message}",
    "path": "name",
    "invalidValue": null
 }
@gorbunkov gorbunkov added this to the 1.1.0 milestone Aug 10, 2021
@gorbunkov gorbunkov added the type: bug Something isn't working label Aug 10, 2021
@gorbunkov gorbunkov assigned Desire456 and unassigned gorbunkov Aug 10, 2021
@Desire456
Copy link
Contributor Author

Fixed in #47

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants