question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Quotes are required to validate datetime type

See original GitHub issue

Given 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:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Grokzencommented, Nov 5, 2016

@jdandrea Release will be out later today. Closing this for now.

0reactions
jdandreacommented, Nov 7, 2016

Thank you! Appreciate the update.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found