Skip to content

Commit

Permalink
Merge pull request #761 from cyberixae/fix_reference_schema_problems
Browse files Browse the repository at this point in the history
Fix reference schema problems
  • Loading branch information
cyberixae authored Sep 13, 2023
2 parents 4373557 + 8bad30d commit db7eeb8
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion maasglobal-reference-schemas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maasglobal-reference-schemas",
"version": "0.0.1",
"version": "0.0.2",
"description": "Test suite for JSON schema features used by MaaS Global",
"license": "MIT",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "Set Reference schemas",
"description": "Collection of unique items",
"definitions": {
"exmapleSet": {
"exampleSet": {
"type": "array",
"uniqueItems": true,
"examples": [[1, 2, 3]],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"type": "object",
"properties": {
"foo": {
"$ref": "https://reference-schemas.maas.global/foo.json#/definitions/string"
"type": "string"
},
"bar": {
"$ref": "https://reference-schemas.maas.global/foo.json#/definitions/number"
"type": "number"
}
},
"required": ["foo", "bar"],
Expand All @@ -27,10 +27,10 @@
"type": "object",
"patternProperties": {
"^s": {
"$ref": "https://reference-schemas.maas.global/foo.json#/definitions/string"
"type": "string"
},
"^n": {
"$ref": "https://reference-schemas.maas.global/foo.json#/definitions/number"
"type": "number"
}
},
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"definitions": {
"tuple": {
"type": "array",
"items": [
{ "$ref": "https://reference-schemas.maas.global/foo.json#/definitions/string" },
{ "$ref": "https://reference-schemas.maas.global/foo.json#/definitions/number" }
],
"items": [{ "type": "string" }, { "type": "number" }],
"additionalItems": false,
"examples": [["asdf", 2]]
}
Expand Down

0 comments on commit db7eeb8

Please sign in to comment.