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

mono/flux validation #229

Closed
hauner opened this issue Dec 23, 2023 · 1 comment
Closed

mono/flux validation #229

hauner opened this issue Dec 23, 2023 · 1 comment
Milestone

Comments

@hauner
Copy link
Member

hauner commented Dec 23, 2023

validation on Flux<Dto> only works with the @Valid at the Flux<> and not on the dto object.

i.e. it requires

@Valid Flux<Dto>

instead of

Flux<@Valid Dto>
@hauner
Copy link
Member Author

hauner commented Dec 23, 2023

a workaround for small request bodies may be to disable the flux ...

map:
  # enabling mono/flux 
  single: reactor.core.publisher.Mono
  multi: reactor.core.publisher.Flux

  types:
    - type: array => java.util.Collection
 
 # disable the flux 
  paths:
    /books:
      post:
        multi: plain

hauner added a commit to openapi-processor/openapi-processor-base that referenced this issue Jan 21, 2024
hauner added a commit to openapi-processor/openapi-processor-base that referenced this issue Jan 21, 2024
hauner added a commit to openapi-processor/openapi-processor-base that referenced this issue Jan 21, 2024
@hauner hauner added this to the 2024.1 milestone Feb 18, 2024
@hauner hauner closed this as completed Feb 18, 2024
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

No branches or pull requests

1 participant