Skip to content

using a null mapping looses the constraints #143

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

Closed
hauner opened this issue Apr 25, 2024 · 0 comments
Closed

using a null mapping looses the constraints #143

hauner opened this issue Apr 25, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@hauner
Copy link
Member

hauner commented Apr 25, 2024

using a null mapping:

openapi-processor-mapping: v7

options:
  bean-validation: true

map:
  paths:
    /foo:
      null: org.openapitools.jackson.nullable.JsonNullable

on a property

      properties:
        bar:
          nullable: true
          type: string
          maxLength: 4

doesn't add the constraint to the generated property.

@hauner hauner added this to the next milestone Apr 25, 2024
@hauner hauner added the bug Something isn't working label Apr 25, 2024
@hauner hauner changed the title using null mapping looses constraints using a null mapping looses the constraints Apr 25, 2024
hauner added a commit that referenced this issue Apr 25, 2024
hauner added a commit that referenced this issue Apr 25, 2024
@hauner hauner modified the milestones: next, 2024.4 May 1, 2024
@hauner hauner closed this as completed May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant