File tree Expand file tree Collapse file tree 8 files changed +36
-28
lines changed Expand file tree Collapse file tree 8 files changed +36
-28
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://json-schema.org/draft/next/schema" ,
3
- "integer" : {
4
- "type" : " integer"
5
- },
6
- "refToInteger" : {
7
- "$ref" : " #/integer"
3
+ "$defs" : {
4
+ "integer" : {
5
+ "type" : " integer"
6
+ },
7
+ "refToInteger" : {
8
+ "$ref" : " #/$defs/integer"
9
+ }
8
10
}
9
11
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://json-schema.org/draft/2019-09/schema" ,
3
- "integer" : {
4
- "type" : " integer"
5
- },
6
- "refToInteger" : {
7
- "$ref" : " #/integer"
3
+ "$defs" : {
4
+ "integer" : {
5
+ "type" : " integer"
6
+ },
7
+ "refToInteger" : {
8
+ "$ref" : " #/$defs/integer"
9
+ }
8
10
}
9
11
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://json-schema.org/draft/2020-12/schema" ,
3
- "integer" : {
4
- "type" : " integer"
5
- },
6
- "refToInteger" : {
7
- "$ref" : " #/integer"
3
+ "$defs" : {
4
+ "integer" : {
5
+ "type" : " integer"
6
+ },
7
+ "refToInteger" : {
8
+ "$ref" : " #/$defs/integer"
9
+ }
8
10
}
9
11
}
Original file line number Diff line number Diff line change 1
1
{
2
- "integer" : {
3
- "type" : " integer"
4
- },
5
- "refToInteger" : {
6
- "$ref" : " #/integer"
2
+ "definitions" : {
3
+ "integer" : {
4
+ "type" : " integer"
5
+ },
6
+ "refToInteger" : {
7
+ "$ref" : " #/definitions/integer"
8
+ }
7
9
}
8
10
}
Original file line number Diff line number Diff line change 17
17
},
18
18
{
19
19
"description" : " fragment within remote ref" ,
20
- "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/integer" },
20
+ "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/definitions/ integer" },
21
21
"tests" : [
22
22
{
23
23
"description" : " remote fragment valid" ,
34
34
{
35
35
"description" : " ref within remote ref" ,
36
36
"schema" : {
37
- "$ref" : " http://localhost:1234/subSchemas.json#/refToInteger"
37
+ "$ref" : " http://localhost:1234/subSchemas.json#/definitions/ refToInteger"
38
38
},
39
39
"tests" : [
40
40
{
Original file line number Diff line number Diff line change 17
17
},
18
18
{
19
19
"description" : " fragment within remote ref" ,
20
- "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/integer" },
20
+ "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/definitions/ integer" },
21
21
"tests" : [
22
22
{
23
23
"description" : " remote fragment valid" ,
34
34
{
35
35
"description" : " ref within remote ref" ,
36
36
"schema" : {
37
- "$ref" : " http://localhost:1234/subSchemas.json#/refToInteger"
37
+ "$ref" : " http://localhost:1234/subSchemas.json#/definitions/ refToInteger"
38
38
},
39
39
"tests" : [
40
40
{
Original file line number Diff line number Diff line change 17
17
},
18
18
{
19
19
"description" : " fragment within remote ref" ,
20
- "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/integer" },
20
+ "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/definitions/ integer" },
21
21
"tests" : [
22
22
{
23
23
"description" : " remote fragment valid" ,
34
34
{
35
35
"description" : " ref within remote ref" ,
36
36
"schema" : {
37
- "$ref" : " http://localhost:1234/subSchemas.json#/refToInteger"
37
+ "$ref" : " http://localhost:1234/subSchemas.json#/definitions/ refToInteger"
38
38
},
39
39
"tests" : [
40
40
{
Original file line number Diff line number Diff line change 17
17
},
18
18
{
19
19
"description" : " fragment within remote ref" ,
20
- "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/integer" },
20
+ "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/definitions/ integer" },
21
21
"tests" : [
22
22
{
23
23
"description" : " remote fragment valid" ,
34
34
{
35
35
"description" : " ref within remote ref" ,
36
36
"schema" : {
37
- "$ref" : " http://localhost:1234/subSchemas.json#/refToInteger"
37
+ "$ref" : " http://localhost:1234/subSchemas.json#/definitions/ refToInteger"
38
38
},
39
39
"tests" : [
40
40
{
You can’t perform that action at this time.
0 commit comments