Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bean validation not working #851

Open
krisraich opened this issue Nov 13, 2024 · 0 comments
Open

Bean validation not working #851

krisraich opened this issue Nov 13, 2024 · 0 comments
Assignees
Labels
area:server This item is related to the server extension

Comments

@krisraich
Copy link

krisraich commented Nov 13, 2024

Hello

It seems that server side bean validation is ignored.
YML Schema:

    UserCredentials:
      type: object
      required:
        - userName
        - password
      properties:
        userName:
          type: string
        password:
          type: string

Beans

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("userName")
    private String userName;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("password")
    private String password;

A request that is missing a parameter should yield HTTP Code 400

Is there a configuration or package that I have overlooked?

@ricardozanini ricardozanini added the area:server This item is related to the server extension label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:server This item is related to the server extension
Projects
None yet
Development

No branches or pull requests

3 participants