Skip to content

Is an empty string valid or invalid if Data Type is string and format is specified? #3324

Closed Answered by charjr
ydah asked this question in Q&A
Discussion options

You must be logged in to vote

Looking at the RFC definition they reference: full-date = date-fullyear "-" date-month "-" date-mday

So the definition of a "full-date" would not allow an empty string. So according to the "date" format an empty string would be invalid.

However it is explicitly stated that Tools that do not recognize a specific format MAY default back to the type alone, as if the format is not specified..

So I think the answer is: "it depends on the tool you use" as it is the tool that decides whether format: date means anything.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@ydah
Comment options

@handrews
Comment options

Answer selected by ydah
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants