Skip to content

Commit

Permalink
fixtures: Add fixture using many different jsonschema keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Feb 24, 2021
1 parent 069320f commit a699bb7
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 0 deletions.
28 changes: 28 additions & 0 deletions cove_ocds/fixtures/extended_many_jsonschema_keys.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"version": "1.1",
"extensions": ["https://bjwebb.co.uk/paste/extension_tmp/extension.json"],
"releases": [{
"json_schema_example_fields": {
"minimum": 1,
"minimum2": 2,
"maximum": 3,
"maximum2": 2,
"minItems": ["a"],
"maxItems": ["a", "a", "a"],
"minLength": "a",
"maxLength": "aaa",
"maxProperties": {"a":1, "b":2, "c": 3},
"multipleOf": 2,
"not": "a",
"anyOf": "a",
"allOf": "a",
"oneOf": "a",
"oneOf2": 1,
"additionalItems": ["a", "a"],
"additionalProperties": {"a": 1},
"additionalProperties2": {"a": 1},
"dependencies": {"b": 1},
"format": "a"
}
}]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"schemas": [
"release-schema.json"
]
}
102 changes: 102 additions & 0 deletions cove_ocds/fixtures/extension_many_jsonschema_keys/release-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"properties": {
"json_schema_example_fields": {
"type": "object",
"properties": {
"minimum": {
"minimum": 2
},
"minimum2": {
"exclusiveMinimum": true,
"minimum": 2
},
"maximum": {
"maximum": 2
},
"maximum2": {
"exclusiveMaximum": true,
"maximum": 2
},
"minItems": {
"type": "array",
"minItems": 2
},
"maxItems": {
"type": "array",
"maxItems": 2
},
"minLength": {
"type": "string",
"minLength": 2
},
"maxLength": {
"type": "string",
"maxLength": 2
},
"maxProperties": {
"type": "object",
"maxProperties": 2
},
"multipleOf": {
"type": "number",
"multipleOf": 3
},
"not": {
"not": {
"type": "string"
}
},
"anyOf": {
"anyOf": [
{"type": "array"},
{"type": "object"}
]
},
"allOf": {
"anyOf": [
{"type": "array"},
{"type": "object"}
]
},
"oneOf": {
"oneOf": [
{"type": "array"},
{"type": "object"}
]
},
"oneOf2": {
"oneOf": [
{"type": "number"},
{"type": "integer"}
]
},
"additionalItems": {
"type": "array",
"items": [{
"type": "string"
}],
"additionalItems": false
},
"additionalProperties": {
"type": "object",
"additionalProperties": false
},
"additionalProperties2": {
"type": "object",
"patternProperties": ["okay"],
"additionalProperties": false
},
"dependencies": {
"type": "object",
"dependencies": {
"b": ["a"]
}
},
"format": {
"type": "string",
"format": "email"
}
}
}
}
}

0 comments on commit a699bb7

Please sign in to comment.