File tree 20 files changed +77
-19
lines changed
tests/draft2019-09/optional/format
20 files changed +77
-19
lines changed Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of date-time strings" ,
4
- "schema" : { "format" : " date-time" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " date-time"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of date strings" ,
4
- "schema" : { "format" : " date" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " date"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of duration strings" ,
4
- "schema" : { "format" : " duration" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " duration"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of e-mail addresses" ,
4
- "schema" : { "format" : " email" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " email"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of host names" ,
4
- "schema" : { "format" : " hostname" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " hostname"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of an internationalized e-mail addresses" ,
4
- "schema" : { "format" : " idn-email" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " idn-email"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of internationalized host names" ,
4
- "schema" : { "format" : " idn-hostname" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " idn-hostname"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of IP addresses" ,
4
- "schema" : { "format" : " ipv4" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " ipv4"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of IPv6 addresses" ,
4
- "schema" : { "format" : " ipv6" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " ipv6"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of IRI References" ,
4
- "schema" : { "format" : " iri-reference" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " iri-reference"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of IRIs" ,
4
- "schema" : { "format" : " iri" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " iri"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of JSON-pointers (JSON String Representation)" ,
4
- "schema" : { "format" : " json-pointer" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " json-pointer"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of regular expressions" ,
4
- "schema" : { "format" : " regex" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " regex"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of Relative JSON Pointers (RJP)" ,
4
- "schema" : { "format" : " relative-json-pointer" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " relative-json-pointer"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of time strings" ,
4
- "schema" : { "format" : " time" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " time"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " unknown format" ,
4
- "schema" : { "format" : " unknown" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " unknown"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " unknown formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of URI References" ,
4
- "schema" : { "format" : " uri-reference" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " uri-reference"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " format: uri-template" ,
4
- "schema" : { "format" : " uri-template" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " uri-template"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " all string formats ignore integers" ,
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"description" : " validation of URIs" ,
4
- "schema" : { "format" : " uri" },
4
+ "schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
6
+ "format" : " uri"
7
+ },
5
8
"tests" : [
6
9
{
7
10
"description" : " a valid URL with anchor tag" ,
Original file line number Diff line number Diff line change 2
2
{
3
3
"description" : " uuid format" ,
4
4
"schema" : {
5
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
5
6
"format" : " uuid"
6
7
},
7
8
"tests" : [
You can’t perform that action at this time.
0 commit comments