openc_bot 0.0.16 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. data/.gitmodules +3 -0
  2. data/.travis.yml +2 -1
  3. data/examples/basic/lib/basic.rb +3 -2
  4. data/lib/openc_bot/helpers/register_methods.rb +2 -1
  5. data/lib/openc_bot/templates/lib/simple_bot.rb +3 -2
  6. data/lib/openc_bot/version.rb +1 -1
  7. data/lib/simple_openc_bot.rb +2 -2
  8. data/openc_bot.gemspec +13 -0
  9. data/publish.sh +12 -0
  10. data/schemas/.gitignore +13 -0
  11. data/schemas/.travis.yml +5 -0
  12. data/schemas/Gemfile +9 -0
  13. data/schemas/Gemfile.lock +34 -0
  14. data/schemas/README.md +2 -0
  15. data/schemas/Rakefile +46 -0
  16. data/schemas/lib/base-statement.json +22 -0
  17. data/schemas/lib/snippets/financial-payment-base.json +4 -0
  18. data/schemas/lib/snippets/licence-base.json +4 -0
  19. data/schemas/{company-schema.json → schemas/company-schema.json} +0 -0
  20. data/schemas/schemas/financial-payment-schema.json +27 -0
  21. data/schemas/{includes → schemas/includes}/address.json +0 -0
  22. data/schemas/{includes → schemas/includes}/alternative_name.json +1 -1
  23. data/schemas/{includes → schemas/includes}/company.json +2 -0
  24. data/schemas/{includes → schemas/includes}/filing.json +0 -0
  25. data/schemas/schemas/includes/financial-payment-data-object.json +60 -0
  26. data/schemas/{includes → schemas/includes}/industry_code.json +0 -0
  27. data/schemas/{includes/license-data.json → schemas/includes/licence-data-object.json} +13 -4
  28. data/schemas/{includes → schemas/includes}/officer.json +0 -0
  29. data/schemas/{includes → schemas/includes}/previous_name.json +0 -0
  30. data/schemas/{includes → schemas/includes}/share-parcel-data.json +0 -0
  31. data/schemas/{includes → schemas/includes}/share-parcel.json +0 -0
  32. data/schemas/{includes → schemas/includes}/subsidiary-relationship-data.json +4 -9
  33. data/schemas/{includes → schemas/includes}/total-shares.json +0 -0
  34. data/schemas/schemas/licence-schema.json +27 -0
  35. data/schemas/schemas/primary-data-schema.json +17 -0
  36. data/schemas/{share-parcel-schema.json → schemas/share-parcel-schema.json} +0 -0
  37. data/schemas/schemas/simple-financial-payment-schema.json +85 -0
  38. data/schemas/schemas/simple-licence-schema.json +54 -0
  39. data/schemas/schemas/simple-subsidiary-schema.json +62 -0
  40. data/schemas/schemas/subsidiary-relationship-schema.json +27 -0
  41. data/schemas/spec/sample-data/invalid/company-01.json +4 -0
  42. data/schemas/spec/sample-data/invalid/company-02.json +5 -0
  43. data/schemas/spec/sample-data/invalid/company-03.json +5 -0
  44. data/schemas/spec/sample-data/invalid/company-04.json +5 -0
  45. data/schemas/spec/sample-data/invalid/company-05.json +5 -0
  46. data/schemas/spec/sample-data/invalid/company-06.json +6 -0
  47. data/schemas/spec/sample-data/invalid/company-07.json +8 -0
  48. data/schemas/spec/sample-data/invalid/company-08.json +7 -0
  49. data/schemas/spec/sample-data/invalid/company-09.json +9 -0
  50. data/schemas/spec/sample-data/invalid/company-10.json +7 -0
  51. data/schemas/spec/sample-data/invalid/company-11.json +9 -0
  52. data/schemas/spec/sample-data/invalid/company-12.json +11 -0
  53. data/schemas/spec/sample-data/invalid/company-13.json +11 -0
  54. data/schemas/spec/sample-data/invalid/company-14.json +7 -0
  55. data/schemas/spec/sample-data/invalid/company-15.json +7 -0
  56. data/schemas/spec/sample-data/invalid/company-16.json +7 -0
  57. data/schemas/spec/sample-data/invalid/company-17.json +9 -0
  58. data/schemas/spec/sample-data/invalid/company-18.json +9 -0
  59. data/schemas/spec/sample-data/invalid/company-19.json +9 -0
  60. data/schemas/spec/sample-data/invalid/company-20.json +9 -0
  61. data/schemas/spec/sample-data/invalid/company-21.json +11 -0
  62. data/schemas/spec/sample-data/invalid/company-22.json +11 -0
  63. data/schemas/spec/sample-data/invalid/company-23.json +7 -0
  64. data/schemas/spec/sample-data/invalid/company-24.json +12 -0
  65. data/schemas/spec/sample-data/invalid/company-25.json +9 -0
  66. data/schemas/spec/sample-data/invalid/company-26.json +11 -0
  67. data/schemas/spec/sample-data/invalid/company-27.json +7 -0
  68. data/schemas/spec/sample-data/invalid/company-28.json +9 -0
  69. data/schemas/spec/sample-data/invalid/company-29.json +12 -0
  70. data/schemas/spec/sample-data/invalid/company-30.json +16 -0
  71. data/schemas/spec/sample-data/invalid/company-31.json +14 -0
  72. data/schemas/spec/sample-data/invalid/company-32.json +11 -0
  73. data/schemas/spec/sample-data/invalid/company-33.json +7 -0
  74. data/schemas/spec/sample-data/invalid/company-34.json +9 -0
  75. data/schemas/spec/sample-data/invalid/company-35.json +9 -0
  76. data/schemas/spec/sample-data/invalid/company-36.json +10 -0
  77. data/schemas/spec/sample-data/invalid/company-37.json +7 -0
  78. data/schemas/spec/sample-data/invalid/company-38.json +9 -0
  79. data/schemas/spec/sample-data/invalid/company-39.json +11 -0
  80. data/schemas/spec/sample-data/invalid/company-40.json +12 -0
  81. data/schemas/spec/sample-data/invalid/company-41.json +12 -0
  82. data/schemas/spec/sample-data/invalid/company-42.json +7 -0
  83. data/schemas/spec/sample-data/invalid/company-43.json +9 -0
  84. data/schemas/spec/sample-data/invalid/company-44.json +11 -0
  85. data/schemas/spec/sample-data/invalid/company-45.json +11 -0
  86. data/schemas/spec/sample-data/invalid/company-46.json +7 -0
  87. data/schemas/spec/sample-data/invalid/company-47.json +9 -0
  88. data/schemas/spec/sample-data/invalid/company-48.json +9 -0
  89. data/schemas/spec/sample-data/invalid/company-49.json +9 -0
  90. data/schemas/spec/sample-data/invalid/company-50.json +9 -0
  91. data/schemas/spec/sample-data/invalid/company-51.json +9 -0
  92. data/schemas/spec/sample-data/invalid/company-52.json +9 -0
  93. data/schemas/spec/sample-data/invalid/company-53.json +10 -0
  94. data/schemas/spec/sample-data/invalid/company-54.json +9 -0
  95. data/schemas/spec/sample-data/invalid/company-55.json +9 -0
  96. data/schemas/spec/sample-data/invalid/financial-payment-01.json +24 -0
  97. data/schemas/spec/sample-data/invalid/licence-01.json +18 -0
  98. data/schemas/spec/sample-data/invalid/licence-02.json +18 -0
  99. data/schemas/spec/sample-data/invalid/licence-03.json +12 -0
  100. data/schemas/spec/sample-data/invalid/licence-04.json +18 -0
  101. data/schemas/spec/sample-data/invalid/licence-05.json +18 -0
  102. data/schemas/spec/sample-data/invalid/licence-06.json +18 -0
  103. data/schemas/spec/sample-data/invalid/licence-07.json +20 -0
  104. data/schemas/spec/sample-data/invalid/licence-08.json +21 -0
  105. data/schemas/spec/sample-data/invalid/primary-data-01.json +4 -0
  106. data/schemas/spec/sample-data/invalid/primary-data-02.json +4 -0
  107. data/schemas/spec/sample-data/invalid/simple-licence-01.json +9 -0
  108. data/schemas/spec/sample-data/invalid/simple-licence-02.json +8 -0
  109. data/schemas/spec/sample-data/invalid/simple-licence-03.json +9 -0
  110. data/schemas/spec/sample-data/invalid/simple-subsidiary-01.json +13 -0
  111. data/schemas/{licence-schema.json → spec/sample-data/licence-schema.json.old} +1 -1
  112. data/schemas/spec/sample-data/valid/company-01.json +6 -0
  113. data/schemas/spec/sample-data/valid/company-02.json +7 -0
  114. data/schemas/spec/sample-data/valid/company-03.json +8 -0
  115. data/schemas/spec/sample-data/valid/company-04.json +7 -0
  116. data/schemas/spec/sample-data/valid/company-05.json +7 -0
  117. data/schemas/spec/sample-data/valid/company-06.json +12 -0
  118. data/schemas/spec/sample-data/valid/company-07.json +9 -0
  119. data/schemas/spec/sample-data/valid/company-08.json +9 -0
  120. data/schemas/spec/sample-data/valid/company-09.json +20 -0
  121. data/schemas/spec/sample-data/valid/company-10.json +9 -0
  122. data/schemas/spec/sample-data/valid/company-11.json +7 -0
  123. data/schemas/spec/sample-data/valid/company-12.json +7 -0
  124. data/schemas/spec/sample-data/valid/company-13.json +7 -0
  125. data/schemas/spec/sample-data/valid/company-14.json +15 -0
  126. data/schemas/spec/sample-data/valid/company-15.json +8 -0
  127. data/schemas/spec/sample-data/valid/company-16.json +9 -0
  128. data/schemas/spec/sample-data/valid/company-17.json +9 -0
  129. data/schemas/spec/sample-data/valid/company-18.json +9 -0
  130. data/schemas/spec/sample-data/valid/company-19.json +26 -0
  131. data/schemas/spec/sample-data/valid/company-20.json +9 -0
  132. data/schemas/spec/sample-data/valid/company-21.json +26 -0
  133. data/schemas/spec/sample-data/valid/company-22.json +20 -0
  134. data/schemas/spec/sample-data/valid/company-23.json +9 -0
  135. data/schemas/spec/sample-data/valid/company-24.json +12 -0
  136. data/schemas/spec/sample-data/valid/company-25.json +12 -0
  137. data/schemas/spec/sample-data/valid/company-26.json +12 -0
  138. data/schemas/spec/sample-data/valid/company-27.json +28 -0
  139. data/schemas/spec/sample-data/valid/company-28.json +9 -0
  140. data/schemas/spec/sample-data/valid/company-29.json +10 -0
  141. data/schemas/spec/sample-data/valid/company-30.json +9 -0
  142. data/schemas/spec/sample-data/valid/company-31.json +17 -0
  143. data/schemas/spec/sample-data/valid/company-32.json +9 -0
  144. data/schemas/spec/sample-data/valid/company-33.json +24 -0
  145. data/schemas/spec/sample-data/valid/company-34.json +9 -0
  146. data/schemas/spec/sample-data/valid/company-35.json +9 -0
  147. data/schemas/spec/sample-data/valid/company-36.json +9 -0
  148. data/schemas/spec/sample-data/valid/company-37.json +9 -0
  149. data/schemas/spec/sample-data/valid/company-38.json +9 -0
  150. data/schemas/spec/sample-data/valid/company-39.json +9 -0
  151. data/schemas/spec/sample-data/valid/company-40.json +9 -0
  152. data/schemas/spec/sample-data/valid/company-41.json +9 -0
  153. data/schemas/spec/sample-data/valid/company-42.json +10 -0
  154. data/schemas/spec/sample-data/valid/financial-payment-01.json +25 -0
  155. data/schemas/spec/sample-data/valid/financial-payment-02.json +29 -0
  156. data/schemas/spec/sample-data/valid/licence-01.json +19 -0
  157. data/schemas/spec/sample-data/valid/licence-02.json +21 -0
  158. data/schemas/spec/sample-data/valid/licence-03.json +21 -0
  159. data/schemas/spec/sample-data/valid/licence-04.json +26 -0
  160. data/schemas/spec/sample-data/valid/primary-data-01.json +4 -0
  161. data/schemas/spec/sample-data/valid/primary-data-02.json +5 -0
  162. data/schemas/spec/sample-data/valid/simple-licence-01.json +10 -0
  163. data/schemas/spec/sample-data/valid/simple-licence-02.json +10 -0
  164. data/schemas/spec/sample-data/valid/simple-licence-03.json +12 -0
  165. data/schemas/spec/sample-data/valid/simple-subsidiary-01.json +13 -0
  166. data/schemas/spec/sample-data/valid/simple-subsidiary-02.json +13 -0
  167. data/schemas/spec/sample-data/valid/subsidiary-relationship-01.json +23 -0
  168. data/schemas/spec/spec_helper.rb +78 -0
  169. data/schemas/spec/validation_spec.rb +39 -0
  170. data/spec/lib/helpers/register_methods_spec.rb +1 -1
  171. data/spec/schemas/company-schema_spec.rb +4 -3
  172. data/spec/simple_openc_bot_spec.rb +9 -8
  173. metadata +164 -19
  174. data/schemas/includes/base-statement.json +0 -27
  175. data/schemas/subsidiary-relationship-schema.json +0 -19
@@ -0,0 +1,54 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "title": "Simple Licence Schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "source_url": {
7
+ "description": "Place where this fact can be verified",
8
+ "type": "string"
9
+ },
10
+ "sample_date": {
11
+ "description": "Date on which this fact was known to be true",
12
+ "type": "string"
13
+ },
14
+ "confidence": {
15
+ "description": "Confidence in accuracy of data",
16
+ "type": "string",
17
+ "enum": ["HIGH", "MEDIUM", "LOW"]
18
+ },
19
+ "company_name": {
20
+ "description": "Name of the company holding the licence",
21
+ "type": "string"
22
+ },
23
+ "company_jurisdiction": {
24
+ "description": "Jurisdiction where company is based",
25
+ "type": "string"
26
+ },
27
+ "licence_number": {
28
+ "description": "Licence number or code",
29
+ "type": "string"
30
+ },
31
+ "jurisdiction_classification": {
32
+ "description": "Description of how regulator classifies licence",
33
+ "type": ["string", "array"]
34
+ },
35
+ "regulator": {
36
+ "description": "The regulating body that issued the licence",
37
+ "type": "string"
38
+ },
39
+ "licence_jurisdiction": {
40
+ "description": "Jurisdiction for which licence is issued",
41
+ "type": "string"
42
+ },
43
+ "status": {
44
+ "description": "Status of the licence",
45
+ "type": "string"
46
+ },
47
+ "category": {
48
+ "description": "Category of licence",
49
+ "type": "string",
50
+ "enum": ["Financial", "Business"]
51
+ }
52
+ },
53
+ "required": ["source_url", "sample_date", "company_name", "company_jurisdiction"]
54
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "title": "Simple Subsidiary Schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "source_url": {
7
+ "description": "Place where this fact can be verified",
8
+ "type": "string"
9
+ },
10
+ "sample_date": {
11
+ "description": "Date on which this fact was known to be true",
12
+ "type": "string"
13
+ },
14
+ "start_date": {
15
+ "description": "Earliest known date this was known to be a subsidiary",
16
+ "type": "string"
17
+ },
18
+ "end_date": {
19
+ "description": "Latest known date this was known to be a subsidiary",
20
+ "type": "string"
21
+ },
22
+ "confidence": {
23
+ "description": "Confidence in accuracy of data",
24
+ "type": "string",
25
+ "enum": ["HIGH", "MEDIUM", "LOW"]
26
+ },
27
+ "parent_name": {
28
+ "description": "Name of the controlling company",
29
+ "type": "string"
30
+ },
31
+ "parent_jurisdiction": {
32
+ "description": "Jurisdiction where controlling company is based",
33
+ "type": "string"
34
+ },
35
+ "parent_identifier": {
36
+ "description": "Any unique ID for the controlling company",
37
+ "type": "string"
38
+ },
39
+ "direct": {
40
+ "description": "Is the control relationship direct or indirect (if unknown, leave blank)?",
41
+ "type": "boolean"
42
+ },
43
+ "percentage_controlled": {
44
+ "description": "Percentage of the subsidiary that is controlled (if known), either directly or indirectly",
45
+ "type": "string",
46
+ "pattern": "^[0-9]{1,2}[.]?[0-9]{0,2}$"
47
+ },
48
+ "subsidiary_name": {
49
+ "description": "The name of the subsidiary",
50
+ "type": "string"
51
+ },
52
+ "subsidiary_jurisdiction": {
53
+ "description": "Jurisdiction of the subsidiary",
54
+ "type": "string"
55
+ },
56
+ "subsidiary_identifier": {
57
+ "description": "Any unique id for the subsidiary that might be provided in the source",
58
+ "type": "string"
59
+ }
60
+ },
61
+ "required": ["source_url", "sample_date", "parent_name", "parent_jurisdiction", "subsidiary_name", "subsidiary_jurisdiction"]
62
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "title": "Subsidiary Relationship",
3
+ "description": "A relationship of control between two companies",
4
+ "$schema": "http://json-schema.org/draft-04/schema#",
5
+ "type": "object",
6
+ "properties": {
7
+ "source_jurisdiction": {
8
+ "description": "Jurisdiction of the source of the data",
9
+ "type": "string"
10
+ },
11
+ "company": {
12
+ "$ref": "includes/company.json"
13
+ },
14
+ "data": {
15
+ "type": "array",
16
+ "description": "This is an array of data objects, that is the objects which actually contain the data about the datum. Generally there will only be one element in this, although in for some types of data_types there may naturally be several releated to the same company, e.g. shareholders",
17
+ "items": {
18
+ "$ref": "includes/subsidiary-relationship-data.json"
19
+ },
20
+ "additionalItems": false
21
+ }
22
+ },
23
+ "required": [
24
+ "company",
25
+ "data"
26
+ ]
27
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "Foo Inc",
3
+ "jurisdiction_code": "ie"
4
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "Foo Inc",
3
+ "jurisdiction_code": "usa_de",
4
+ "company_number": "12345"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "Bar",
3
+ "jurisdiction_code": "us_de",
4
+ "company_number": ""
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "Foo Inc",
3
+ "jurisdiction_code": "a",
4
+ "company_number": "12345"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "",
3
+ "jurisdiction_code": "us_de",
4
+ "company_number": "12345"
5
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "Foo Inc",
3
+ "jurisdiction_code": "us_de",
4
+ "company_number": "12345",
5
+ "foo": "bar"
6
+ }
@@ -0,0 +1,8 @@
1
+ /*invalid registered address*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "registered_address": [
7
+ ]
8
+ }
@@ -0,0 +1,7 @@
1
+ /*invalid registered address*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "registered_address": ""
7
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid registered address*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "registered_address": {
7
+ "country": "Germany"
8
+ }
9
+ }
@@ -0,0 +1,7 @@
1
+ /*invalid previous names*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "previous_names": "some name"
7
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid previous names*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "previous_names": [
7
+ "some name"
8
+ ]
9
+ }
@@ -0,0 +1,11 @@
1
+ /*invalid previous names*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "previous_names": [
7
+ {
8
+ "name": "Baz Inc"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,11 @@
1
+ /*invalid previous names*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "previous_names": [
7
+ {
8
+ "company_name": ""
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,7 @@
1
+ /*invalid branch flags*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "branch": "X"
7
+ }
@@ -0,0 +1,7 @@
1
+ /*invalid branch flags*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "branch": "FOO"
7
+ }
@@ -0,0 +1,7 @@
1
+ /*invalid branch flags*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "us_de",
6
+ "branch": ""
7
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid jurisdiction_of_origin*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "jurisdiction_of_origin": ""
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid jurisdiction_of_origin*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "jurisdiction_of_origin": 43
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid number_of_employees*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "number_of_employees": "foo"
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid number_of_employees*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "number_of_employees": -1
8
+ }
9
+ }
@@ -0,0 +1,11 @@
1
+ /*invalid officers*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "officers": [
7
+ {
8
+ "name": ""
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,11 @@
1
+ /*invalid officers*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "officers": [
7
+ {
8
+ "position": "Director"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,7 @@
1
+ /*invalid officers*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "officers": "some body"
7
+ }
@@ -0,0 +1,12 @@
1
+ /*invalid officers*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "officers": [
7
+ {
8
+ "name": "Fred",
9
+ "other_attributes": "non object"
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid officers*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "officers": [
7
+ "some body"
8
+ ]
9
+ }
@@ -0,0 +1,11 @@
1
+ /*invalid filings*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "filings": [
7
+ {
8
+ "filing_type_name": "Some type"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,7 @@
1
+ /*invalid filings*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "filings": "foo filing"
7
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid filings*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "filings": [
7
+ "foo filing"
8
+ ]
9
+ }
@@ -0,0 +1,12 @@
1
+ /*invalid filings*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "filings": [
7
+ {
8
+ "uid": "12345",
9
+ "date": "2010-11-22"
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,16 @@
1
+ /*invalid share_parcels*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "share_parcels": [
7
+ {
8
+ "percentage_of_shares": "23.5",
9
+ "shareholders": [
10
+ {
11
+ "name": ""
12
+ }
13
+ ]
14
+ }
15
+ ]
16
+ }
@@ -0,0 +1,14 @@
1
+ /*invalid share_parcels*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "share_parcels": [
7
+ {
8
+ "percentage_of_shares": "23.5",
9
+ "shareholders": [
10
+
11
+ ]
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,11 @@
1
+ /*invalid share_parcels*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "share_parcels": [
7
+ {
8
+ "percentage_of_shares": "23.5"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,7 @@
1
+ /*invalid share_parcels*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "share_parcels": "foo filing"
7
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid share_parcels*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "share_parcels": [
7
+ "foo filing"
8
+ ]
9
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid total_shares*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "total_shares": {
7
+ "share_class": "Ordinary"
8
+ }
9
+ }
@@ -0,0 +1,10 @@
1
+ /*invalid total_shares*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "total_shares": {
7
+ "number": 123,
8
+ "share_class": ""
9
+ }
10
+ }
@@ -0,0 +1,7 @@
1
+ /*invalid total_shares*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "total_shares": "foo filing"
7
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid total_shares*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "total_shares": [
7
+ "foo filing"
8
+ ]
9
+ }
@@ -0,0 +1,11 @@
1
+ /*invalid alternative_names*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "alternative_names": [
7
+ {
8
+ "company_name": "Foobar Inc"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,12 @@
1
+ /*invalid alternative_names*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "alternative_names": [
7
+ {
8
+ "company_name": "Foobar Inc",
9
+ "type": "foobar"
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,12 @@
1
+ /*invalid alternative_names*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "alternative_names": [
7
+ {
8
+ "company_name": "Foobar Inc",
9
+ "language": "French"
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,7 @@
1
+ /*invalid alternative_names*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "alternative_names": "foo name"
7
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid alternative_names*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "alternative_names": [
7
+ "foo name"
8
+ ]
9
+ }
@@ -0,0 +1,11 @@
1
+ /*invalid industry_codes*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "industry_codes": [
7
+ {
8
+ "code": "1234"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,11 @@
1
+ /*invalid industry_codes*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "industry_codes": [
7
+ {
8
+ "code_scheme_id": "1234"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,7 @@
1
+ /*invalid industry_codes*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "industry_codes": "foo code"
7
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid industry_codes*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "industry_codes": [
7
+ "foo filing"
8
+ ]
9
+ }