How to use defaults of Get parameters in schema? #8028
Unanswered
eslamsalahelsheikh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm trying to recieve Get query parameters with defined schema as in here but somehow the defaults don't work unless I explicity write them outside the scheam like
@param.query.number('pageSizes') pageSize = 5
. And Looking at the loopback parser, there's nothing for inserting default values for parameters. Is it a bug or is there a documentation on how to do it?Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions