Quotes are required to validate datetime type
See original GitHub issueGiven the schema:
type: map
mapping:
d1:
type: timestamp
and data:
d1: 2015-03-29
The following error is returned:
Value '2015-03-29' is not of type 'timestamp'. Path: '/d1', Not a valid timestamp
However, enclosing the date in quotes works:
d1: "2015-03-29"
Expectation: Quotes should not be required for the value to be recognized as a valid datetime type.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Error ”must be of type date and should not be enclosed in ...
1. Either you have a problem in your adjustJSTtoGMS () method, (little doubt on JST_AM0, try replacing it with Time someVariable), 2. OR...
Read more >Value of datetime input field can not pass validation
I tried arious types of datetime formats including the one above but my input value can not pass validation. What is the problem...
Read more >Dates need quotes in YAML and they shouldn't #295 - GitHub
Yaml parser that is used in ReDoc parses dates from yaml to javascript Date instances. So this is valid yaml, but I'm not...
Read more >Formatting and parsing dateTimes as strings - IBM
If a single quotation mark is required within the string, use two single quotation marks ("). Characters for formatting a dateTime as a...
Read more >Validation Snippets for Go - Alex Edwards
The snippets assume that the data to validate is stored as strings in r. ... string (i.e. a string surrounded by double quotes),...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jdandrea Release will be out later today. Closing this for now.
Thank you! Appreciate the update.