Skip to content

Overriding Input Schemas to allow for non-object inputs #897

Answered by RobinTail
TheWisestOne asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @TheWisestOne ,
Middlewares provide you with direct access to request object. You can check it with Array.isArray() and return as a property inside the options, accessible by endpoints.
All that is beyond the proper types support.
But it might work this way.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@TheWisestOne
Comment options

@RobinTail
Comment options

@TheWisestOne
Comment options

@RobinTail
Comment options

Answer selected by RobinTail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants