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 11{
22 "$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+ }
810 }
911}
Original file line number Diff line number Diff line change 11{
22 "$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+ }
810 }
911}
Original file line number Diff line number Diff line change 11{
22 "$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+ }
810 }
911}
Original file line number Diff line number Diff line change 11{
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+ }
79 }
810}
Original file line number Diff line number Diff line change 1717 },
1818 {
1919 "description" : " fragment within remote ref" ,
20- "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/integer" },
20+ "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/definitions/ integer" },
2121 "tests" : [
2222 {
2323 "description" : " remote fragment valid" ,
3434 {
3535 "description" : " ref within remote ref" ,
3636 "schema" : {
37- "$ref" : " http://localhost:1234/subSchemas.json#/refToInteger"
37+ "$ref" : " http://localhost:1234/subSchemas.json#/definitions/ refToInteger"
3838 },
3939 "tests" : [
4040 {
Original file line number Diff line number Diff line change 1717 },
1818 {
1919 "description" : " fragment within remote ref" ,
20- "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/integer" },
20+ "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/definitions/ integer" },
2121 "tests" : [
2222 {
2323 "description" : " remote fragment valid" ,
3434 {
3535 "description" : " ref within remote ref" ,
3636 "schema" : {
37- "$ref" : " http://localhost:1234/subSchemas.json#/refToInteger"
37+ "$ref" : " http://localhost:1234/subSchemas.json#/definitions/ refToInteger"
3838 },
3939 "tests" : [
4040 {
Original file line number Diff line number Diff line change 1717 },
1818 {
1919 "description" : " fragment within remote ref" ,
20- "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/integer" },
20+ "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/definitions/ integer" },
2121 "tests" : [
2222 {
2323 "description" : " remote fragment valid" ,
3434 {
3535 "description" : " ref within remote ref" ,
3636 "schema" : {
37- "$ref" : " http://localhost:1234/subSchemas.json#/refToInteger"
37+ "$ref" : " http://localhost:1234/subSchemas.json#/definitions/ refToInteger"
3838 },
3939 "tests" : [
4040 {
Original file line number Diff line number Diff line change 1717 },
1818 {
1919 "description" : " fragment within remote ref" ,
20- "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/integer" },
20+ "schema" : {"$ref" : " http://localhost:1234/subSchemas.json#/definitions/ integer" },
2121 "tests" : [
2222 {
2323 "description" : " remote fragment valid" ,
3434 {
3535 "description" : " ref within remote ref" ,
3636 "schema" : {
37- "$ref" : " http://localhost:1234/subSchemas.json#/refToInteger"
37+ "$ref" : " http://localhost:1234/subSchemas.json#/definitions/ refToInteger"
3838 },
3939 "tests" : [
4040 {
You can’t perform that action at this time.
0 commit comments