At the moment I have:
type: string
format: YYYY-MM-DD
How can I match a date formatted like: Jan 22, 2020
?
Is there a predefined way or I have to create a kind of regex?
Is it possible to use pattern
instead of format
?
At the moment I have:
type: string
format: YYYY-MM-DD
How can I match a date formatted like: Jan 22, 2020
?
Is there a predefined way or I have to create a kind of regex?
Is it possible to use pattern
instead of format
?
I got an idea with regex, even tough is not matching it strictly:
type: string
pattern: '^[a-zA-Z]+ [0-9]+, [0-9]+$'