You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm migrating an application from lb3 and i'm stuck here, I have an endpoint that i want to validate that the request contain an user model instance but i also want it to verify that extra parameters exists (defined on model) i tried several ways to accomplish it but i can't figure how to do the trick.
On the userModel i have:
// Define well-known properties here
token?: string
sku_trial?: string
i have an email validation on the user model email property that works but i can't have it to work when i'm using specific validation without the user Schema Ref
I tried to add additionalProperties with fields to include but it not seems to work
can't figure how to have this behaviour working with lb4
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
``Hello all,
i'm migrating an application from lb3 and i'm stuck here, I have an endpoint that i want to validate that the request contain an user model instance but i also want it to verify that extra parameters exists (defined on model) i tried several ways to accomplish it but i can't figure how to do the trick.
On the userModel i have:
on the @requestBody parameters i have:
i have an email validation on the user model email property that works but i can't have it to work when i'm using specific validation without the user Schema Ref
I tried to add additionalProperties with fields to include but it not seems to work
can't figure how to have this behaviour working with lb4
thanks for help
Beta Was this translation helpful? Give feedback.
All reactions