Skip to content

Commit

Permalink
Start work on BODS fixture file that causes all validation msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Feb 18, 2019
1 parent 104b79a commit 73db3b4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/fixtures/api/badfile_all_validation_errors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{},
{"statementType": "bad statement type"},
{"statementType": "personStatement"},
{"statementType": {}},
{"statementType": "personStatement", "statementID": 100},
{"statementType": "personStatement", "statementID": "tooshort"},
{"statementType": "personStatement", "statementID": "too long long long long long long long long long long long long long long long long"},
{"statementType": "personStatement", "replacesStatements": ["tooshort"]},
{"statementType": "personStatement", "replacesStatements": ["too long long long long long long long long long long long long long long long long"]},
{"statementType": "personStatement", "replacesStatements": "not an array"},
{"statementType": "personStatement", "statementDate": "not a date"},
{"statementType": "personStatement", "statementID": "2f957a72-caaa-4363-bf45-1257f1b57db6", "personType": "bad person type"},
{"statementType": "personStatement", "statementID": "2f957a72-caaa-4363-bf45-1257f1b57db6", "birthDate": "not a date"},
{"statementType": "personStatement", "statementID": "2f957a72-caaa-4363-bf45-1257f1b57db6", "source":{"url": "not a uri"}},
{"statementType": "personStatement", "statementID": "2f957a72-caaa-4363-bf45-1257f1b57db6", "source":{"retrievedAt": "not a date-time"}},
{"statementType": "ownershipOrControlStatement", "statementID": "772099ea-419f-418b-b6b8-98492e5516bb", "interests": [{"share": {"exact": "not a number", "minimum":-1, "maximum":101}}]},
{"statementType": "ownershipOrControlStatement", "statementID": "772099ea-419f-418b-b6b8-98492e5516bb", "interests": {"share": {"exact": "not a number", "minimum":-1, "maximum":101}}},
{"statementType": "ownershipOrControlStatement", "statementID": "772099ea-419f-418b-b6b8-98492e5516bb", "interests": ["not an object"]},
{"statementType": "ownershipOrControlStatement", "statementID": "772099ea-419f-418b-b6b8-98492e5516bb", "interests": [{"share": {"exclusiveMinimum": "not a bool"}}]}
]

0 comments on commit 73db3b4

Please sign in to comment.