Skip to content

Use @OneOf with Date #2206

Answered by Romakita
janek515 asked this question in Q&A
Discussion options

You must be logged in to vote

It’s always possible to set custom raw jsonschema Using a plain object js or using schema builder:

import {date, OneOf) from "@tsed/schema";
@OneOf(date(), OtherType)

Any decorator should also works @Any(Date, Type).

see you
Romain

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by janek515
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