encoding/jsonschema: add test for date-time format
The "date-time" format is supposed to be recognized but is not.
This errant behavior will be fixed in a subequent CL.
This error is only recognized in strict-keyword mode,
which is always enabled when jsonschema is invoked
via OpenAPI, so also make sure that that mode is
enabled when openAPI mode is enabled in the jsonschema
tests, avoiding the need to add an extra `#strictKeywords`
tag to openapi tests in encoding/jsonschema.
For #3454.
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I429c4c013481837d4f72d94367329ce010c55604
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201351
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>