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.
- data/.gitmodules +3 -0
- data/.travis.yml +2 -1
- data/examples/basic/lib/basic.rb +3 -2
- data/lib/openc_bot/helpers/register_methods.rb +2 -1
- data/lib/openc_bot/templates/lib/simple_bot.rb +3 -2
- data/lib/openc_bot/version.rb +1 -1
- data/lib/simple_openc_bot.rb +2 -2
- data/openc_bot.gemspec +13 -0
- data/publish.sh +12 -0
- data/schemas/.gitignore +13 -0
- data/schemas/.travis.yml +5 -0
- data/schemas/Gemfile +9 -0
- data/schemas/Gemfile.lock +34 -0
- data/schemas/README.md +2 -0
- data/schemas/Rakefile +46 -0
- data/schemas/lib/base-statement.json +22 -0
- data/schemas/lib/snippets/financial-payment-base.json +4 -0
- data/schemas/lib/snippets/licence-base.json +4 -0
- data/schemas/{company-schema.json → schemas/company-schema.json} +0 -0
- data/schemas/schemas/financial-payment-schema.json +27 -0
- data/schemas/{includes → schemas/includes}/address.json +0 -0
- data/schemas/{includes → schemas/includes}/alternative_name.json +1 -1
- data/schemas/{includes → schemas/includes}/company.json +2 -0
- data/schemas/{includes → schemas/includes}/filing.json +0 -0
- data/schemas/schemas/includes/financial-payment-data-object.json +60 -0
- data/schemas/{includes → schemas/includes}/industry_code.json +0 -0
- data/schemas/{includes/license-data.json → schemas/includes/licence-data-object.json} +13 -4
- data/schemas/{includes → schemas/includes}/officer.json +0 -0
- data/schemas/{includes → schemas/includes}/previous_name.json +0 -0
- data/schemas/{includes → schemas/includes}/share-parcel-data.json +0 -0
- data/schemas/{includes → schemas/includes}/share-parcel.json +0 -0
- data/schemas/{includes → schemas/includes}/subsidiary-relationship-data.json +4 -9
- data/schemas/{includes → schemas/includes}/total-shares.json +0 -0
- data/schemas/schemas/licence-schema.json +27 -0
- data/schemas/schemas/primary-data-schema.json +17 -0
- data/schemas/{share-parcel-schema.json → schemas/share-parcel-schema.json} +0 -0
- data/schemas/schemas/simple-financial-payment-schema.json +85 -0
- data/schemas/schemas/simple-licence-schema.json +54 -0
- data/schemas/schemas/simple-subsidiary-schema.json +62 -0
- data/schemas/schemas/subsidiary-relationship-schema.json +27 -0
- data/schemas/spec/sample-data/invalid/company-01.json +4 -0
- data/schemas/spec/sample-data/invalid/company-02.json +5 -0
- data/schemas/spec/sample-data/invalid/company-03.json +5 -0
- data/schemas/spec/sample-data/invalid/company-04.json +5 -0
- data/schemas/spec/sample-data/invalid/company-05.json +5 -0
- data/schemas/spec/sample-data/invalid/company-06.json +6 -0
- data/schemas/spec/sample-data/invalid/company-07.json +8 -0
- data/schemas/spec/sample-data/invalid/company-08.json +7 -0
- data/schemas/spec/sample-data/invalid/company-09.json +9 -0
- data/schemas/spec/sample-data/invalid/company-10.json +7 -0
- data/schemas/spec/sample-data/invalid/company-11.json +9 -0
- data/schemas/spec/sample-data/invalid/company-12.json +11 -0
- data/schemas/spec/sample-data/invalid/company-13.json +11 -0
- data/schemas/spec/sample-data/invalid/company-14.json +7 -0
- data/schemas/spec/sample-data/invalid/company-15.json +7 -0
- data/schemas/spec/sample-data/invalid/company-16.json +7 -0
- data/schemas/spec/sample-data/invalid/company-17.json +9 -0
- data/schemas/spec/sample-data/invalid/company-18.json +9 -0
- data/schemas/spec/sample-data/invalid/company-19.json +9 -0
- data/schemas/spec/sample-data/invalid/company-20.json +9 -0
- data/schemas/spec/sample-data/invalid/company-21.json +11 -0
- data/schemas/spec/sample-data/invalid/company-22.json +11 -0
- data/schemas/spec/sample-data/invalid/company-23.json +7 -0
- data/schemas/spec/sample-data/invalid/company-24.json +12 -0
- data/schemas/spec/sample-data/invalid/company-25.json +9 -0
- data/schemas/spec/sample-data/invalid/company-26.json +11 -0
- data/schemas/spec/sample-data/invalid/company-27.json +7 -0
- data/schemas/spec/sample-data/invalid/company-28.json +9 -0
- data/schemas/spec/sample-data/invalid/company-29.json +12 -0
- data/schemas/spec/sample-data/invalid/company-30.json +16 -0
- data/schemas/spec/sample-data/invalid/company-31.json +14 -0
- data/schemas/spec/sample-data/invalid/company-32.json +11 -0
- data/schemas/spec/sample-data/invalid/company-33.json +7 -0
- data/schemas/spec/sample-data/invalid/company-34.json +9 -0
- data/schemas/spec/sample-data/invalid/company-35.json +9 -0
- data/schemas/spec/sample-data/invalid/company-36.json +10 -0
- data/schemas/spec/sample-data/invalid/company-37.json +7 -0
- data/schemas/spec/sample-data/invalid/company-38.json +9 -0
- data/schemas/spec/sample-data/invalid/company-39.json +11 -0
- data/schemas/spec/sample-data/invalid/company-40.json +12 -0
- data/schemas/spec/sample-data/invalid/company-41.json +12 -0
- data/schemas/spec/sample-data/invalid/company-42.json +7 -0
- data/schemas/spec/sample-data/invalid/company-43.json +9 -0
- data/schemas/spec/sample-data/invalid/company-44.json +11 -0
- data/schemas/spec/sample-data/invalid/company-45.json +11 -0
- data/schemas/spec/sample-data/invalid/company-46.json +7 -0
- data/schemas/spec/sample-data/invalid/company-47.json +9 -0
- data/schemas/spec/sample-data/invalid/company-48.json +9 -0
- data/schemas/spec/sample-data/invalid/company-49.json +9 -0
- data/schemas/spec/sample-data/invalid/company-50.json +9 -0
- data/schemas/spec/sample-data/invalid/company-51.json +9 -0
- data/schemas/spec/sample-data/invalid/company-52.json +9 -0
- data/schemas/spec/sample-data/invalid/company-53.json +10 -0
- data/schemas/spec/sample-data/invalid/company-54.json +9 -0
- data/schemas/spec/sample-data/invalid/company-55.json +9 -0
- data/schemas/spec/sample-data/invalid/financial-payment-01.json +24 -0
- data/schemas/spec/sample-data/invalid/licence-01.json +18 -0
- data/schemas/spec/sample-data/invalid/licence-02.json +18 -0
- data/schemas/spec/sample-data/invalid/licence-03.json +12 -0
- data/schemas/spec/sample-data/invalid/licence-04.json +18 -0
- data/schemas/spec/sample-data/invalid/licence-05.json +18 -0
- data/schemas/spec/sample-data/invalid/licence-06.json +18 -0
- data/schemas/spec/sample-data/invalid/licence-07.json +20 -0
- data/schemas/spec/sample-data/invalid/licence-08.json +21 -0
- data/schemas/spec/sample-data/invalid/primary-data-01.json +4 -0
- data/schemas/spec/sample-data/invalid/primary-data-02.json +4 -0
- data/schemas/spec/sample-data/invalid/simple-licence-01.json +9 -0
- data/schemas/spec/sample-data/invalid/simple-licence-02.json +8 -0
- data/schemas/spec/sample-data/invalid/simple-licence-03.json +9 -0
- data/schemas/spec/sample-data/invalid/simple-subsidiary-01.json +13 -0
- data/schemas/{licence-schema.json → spec/sample-data/licence-schema.json.old} +1 -1
- data/schemas/spec/sample-data/valid/company-01.json +6 -0
- data/schemas/spec/sample-data/valid/company-02.json +7 -0
- data/schemas/spec/sample-data/valid/company-03.json +8 -0
- data/schemas/spec/sample-data/valid/company-04.json +7 -0
- data/schemas/spec/sample-data/valid/company-05.json +7 -0
- data/schemas/spec/sample-data/valid/company-06.json +12 -0
- data/schemas/spec/sample-data/valid/company-07.json +9 -0
- data/schemas/spec/sample-data/valid/company-08.json +9 -0
- data/schemas/spec/sample-data/valid/company-09.json +20 -0
- data/schemas/spec/sample-data/valid/company-10.json +9 -0
- data/schemas/spec/sample-data/valid/company-11.json +7 -0
- data/schemas/spec/sample-data/valid/company-12.json +7 -0
- data/schemas/spec/sample-data/valid/company-13.json +7 -0
- data/schemas/spec/sample-data/valid/company-14.json +15 -0
- data/schemas/spec/sample-data/valid/company-15.json +8 -0
- data/schemas/spec/sample-data/valid/company-16.json +9 -0
- data/schemas/spec/sample-data/valid/company-17.json +9 -0
- data/schemas/spec/sample-data/valid/company-18.json +9 -0
- data/schemas/spec/sample-data/valid/company-19.json +26 -0
- data/schemas/spec/sample-data/valid/company-20.json +9 -0
- data/schemas/spec/sample-data/valid/company-21.json +26 -0
- data/schemas/spec/sample-data/valid/company-22.json +20 -0
- data/schemas/spec/sample-data/valid/company-23.json +9 -0
- data/schemas/spec/sample-data/valid/company-24.json +12 -0
- data/schemas/spec/sample-data/valid/company-25.json +12 -0
- data/schemas/spec/sample-data/valid/company-26.json +12 -0
- data/schemas/spec/sample-data/valid/company-27.json +28 -0
- data/schemas/spec/sample-data/valid/company-28.json +9 -0
- data/schemas/spec/sample-data/valid/company-29.json +10 -0
- data/schemas/spec/sample-data/valid/company-30.json +9 -0
- data/schemas/spec/sample-data/valid/company-31.json +17 -0
- data/schemas/spec/sample-data/valid/company-32.json +9 -0
- data/schemas/spec/sample-data/valid/company-33.json +24 -0
- data/schemas/spec/sample-data/valid/company-34.json +9 -0
- data/schemas/spec/sample-data/valid/company-35.json +9 -0
- data/schemas/spec/sample-data/valid/company-36.json +9 -0
- data/schemas/spec/sample-data/valid/company-37.json +9 -0
- data/schemas/spec/sample-data/valid/company-38.json +9 -0
- data/schemas/spec/sample-data/valid/company-39.json +9 -0
- data/schemas/spec/sample-data/valid/company-40.json +9 -0
- data/schemas/spec/sample-data/valid/company-41.json +9 -0
- data/schemas/spec/sample-data/valid/company-42.json +10 -0
- data/schemas/spec/sample-data/valid/financial-payment-01.json +25 -0
- data/schemas/spec/sample-data/valid/financial-payment-02.json +29 -0
- data/schemas/spec/sample-data/valid/licence-01.json +19 -0
- data/schemas/spec/sample-data/valid/licence-02.json +21 -0
- data/schemas/spec/sample-data/valid/licence-03.json +21 -0
- data/schemas/spec/sample-data/valid/licence-04.json +26 -0
- data/schemas/spec/sample-data/valid/primary-data-01.json +4 -0
- data/schemas/spec/sample-data/valid/primary-data-02.json +5 -0
- data/schemas/spec/sample-data/valid/simple-licence-01.json +10 -0
- data/schemas/spec/sample-data/valid/simple-licence-02.json +10 -0
- data/schemas/spec/sample-data/valid/simple-licence-03.json +12 -0
- data/schemas/spec/sample-data/valid/simple-subsidiary-01.json +13 -0
- data/schemas/spec/sample-data/valid/simple-subsidiary-02.json +13 -0
- data/schemas/spec/sample-data/valid/subsidiary-relationship-01.json +23 -0
- data/schemas/spec/spec_helper.rb +78 -0
- data/schemas/spec/validation_spec.rb +39 -0
- data/spec/lib/helpers/register_methods_spec.rb +1 -1
- data/spec/schemas/company-schema_spec.rb +4 -3
- data/spec/simple_openc_bot_spec.rb +9 -8
- metadata +164 -19
- data/schemas/includes/base-statement.json +0 -27
- data/schemas/subsidiary-relationship-schema.json +0 -19
@@ -6,7 +6,7 @@ end
|
|
6
6
|
|
7
7
|
class LicenceRecord < SimpleOpencBot::BaseLicenceRecord
|
8
8
|
JURISDICTION = "uk"
|
9
|
-
store_fields :name, :type, :sample_date
|
9
|
+
store_fields :name, :type, :sample_date, :source_url, :confidence
|
10
10
|
unique_fields :name
|
11
11
|
schema :licence
|
12
12
|
|
@@ -22,14 +22,15 @@ class LicenceRecord < SimpleOpencBot::BaseLicenceRecord
|
|
22
22
|
|
23
23
|
def to_pipeline
|
24
24
|
{
|
25
|
-
sample_date: "",
|
26
25
|
company: {
|
27
26
|
name: name,
|
28
27
|
jurisdiction: JURISDICTION,
|
29
28
|
},
|
30
|
-
source_url: URL,
|
31
29
|
data: [{
|
32
30
|
data_type: :licence,
|
31
|
+
sample_date: "",
|
32
|
+
source_url: URL,
|
33
|
+
confidence: 'HIGH',
|
33
34
|
properties: {
|
34
35
|
category: 'Financial',
|
35
36
|
jurisdiction_classification: [jurisdiction_classification],
|
@@ -138,7 +139,7 @@ describe SimpleOpencBot do
|
|
138
139
|
end
|
139
140
|
|
140
141
|
|
141
|
-
describe "
|
142
|
+
describe "#update_data" do
|
142
143
|
before do
|
143
144
|
@properties = [
|
144
145
|
{:name => 'Company 1', :type => 'Bank'},
|
@@ -210,8 +211,8 @@ describe SimpleOpencBot do
|
|
210
211
|
describe "export_data" do
|
211
212
|
before do
|
212
213
|
@properties = [
|
213
|
-
{:name => 'Company 1', :type => 'Bank'},
|
214
|
-
{:name => 'Company 2', :type => 'Insurer'}
|
214
|
+
{:name => 'Company 1', :type => 'Bank', :source_url => 'http://somereg.gov/banks',"sample_date" => "2014-06-01", :confidence => 'MEDIUM'},
|
215
|
+
{:name => 'Company 2', :type => 'Insurer', :source_url => 'http://somereg.gov/insurers',"sample_date" => "2013-01-22", :confidence => 'HIGH'}
|
215
216
|
]
|
216
217
|
@bot = TestLicenceBot.new(@properties)
|
217
218
|
@bot.update_data
|
@@ -250,8 +251,8 @@ describe SimpleOpencBot do
|
|
250
251
|
describe "stored data" do
|
251
252
|
before do
|
252
253
|
@properties = [
|
253
|
-
{:name => 'Company 1', :type => 'Bank'},
|
254
|
-
{:name => 'Company 2', :type => 'Insurer'}
|
254
|
+
{:name => 'Company 1', :type => 'Bank', :source_url => 'http://somereg.gov/banks',:sample_date => "2014-06-01", :confidence => 'MEDIUM'},
|
255
|
+
{:name => 'Company 2', :type => 'Insurer', :source_url => 'http://somereg.gov/insurers',:sample_date => "2013-01-22", :confidence => 'HIGH'}
|
255
256
|
]
|
256
257
|
@bot = TestLicenceBot.new(@properties)
|
257
258
|
@bot.update_data
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openc_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-08-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -197,6 +197,7 @@ extensions: []
|
|
197
197
|
extra_rdoc_files: []
|
198
198
|
files:
|
199
199
|
- .gitignore
|
200
|
+
- .gitmodules
|
200
201
|
- .travis.yml
|
201
202
|
- CHANGELOG.md
|
202
203
|
- Gemfile
|
@@ -251,23 +252,7 @@ files:
|
|
251
252
|
- lib/openc_bot/version.rb
|
252
253
|
- lib/simple_openc_bot.rb
|
253
254
|
- openc_bot.gemspec
|
254
|
-
-
|
255
|
-
- schemas/includes/address.json
|
256
|
-
- schemas/includes/alternative_name.json
|
257
|
-
- schemas/includes/base-statement.json
|
258
|
-
- schemas/includes/company.json
|
259
|
-
- schemas/includes/filing.json
|
260
|
-
- schemas/includes/industry_code.json
|
261
|
-
- schemas/includes/license-data.json
|
262
|
-
- schemas/includes/officer.json
|
263
|
-
- schemas/includes/previous_name.json
|
264
|
-
- schemas/includes/share-parcel-data.json
|
265
|
-
- schemas/includes/share-parcel.json
|
266
|
-
- schemas/includes/subsidiary-relationship-data.json
|
267
|
-
- schemas/includes/total-shares.json
|
268
|
-
- schemas/licence-schema.json
|
269
|
-
- schemas/share-parcel-schema.json
|
270
|
-
- schemas/subsidiary-relationship-schema.json
|
255
|
+
- publish.sh
|
271
256
|
- spec/dummy_classes/foo_bot.rb
|
272
257
|
- spec/lib/bot_data_validator_spec.rb
|
273
258
|
- spec/lib/company_fetcher_bot_spec.rb
|
@@ -283,6 +268,166 @@ files:
|
|
283
268
|
- spec/schemas/company-schema_spec.rb
|
284
269
|
- spec/simple_openc_bot_spec.rb
|
285
270
|
- spec/spec_helper.rb
|
271
|
+
- schemas/.gitignore
|
272
|
+
- schemas/.travis.yml
|
273
|
+
- schemas/Gemfile
|
274
|
+
- schemas/Gemfile.lock
|
275
|
+
- schemas/README.md
|
276
|
+
- schemas/Rakefile
|
277
|
+
- schemas/lib/base-statement.json
|
278
|
+
- schemas/lib/snippets/financial-payment-base.json
|
279
|
+
- schemas/lib/snippets/licence-base.json
|
280
|
+
- schemas/schemas/company-schema.json
|
281
|
+
- schemas/schemas/financial-payment-schema.json
|
282
|
+
- schemas/schemas/includes/address.json
|
283
|
+
- schemas/schemas/includes/alternative_name.json
|
284
|
+
- schemas/schemas/includes/company.json
|
285
|
+
- schemas/schemas/includes/filing.json
|
286
|
+
- schemas/schemas/includes/financial-payment-data-object.json
|
287
|
+
- schemas/schemas/includes/industry_code.json
|
288
|
+
- schemas/schemas/includes/licence-data-object.json
|
289
|
+
- schemas/schemas/includes/officer.json
|
290
|
+
- schemas/schemas/includes/previous_name.json
|
291
|
+
- schemas/schemas/includes/share-parcel-data.json
|
292
|
+
- schemas/schemas/includes/share-parcel.json
|
293
|
+
- schemas/schemas/includes/subsidiary-relationship-data.json
|
294
|
+
- schemas/schemas/includes/total-shares.json
|
295
|
+
- schemas/schemas/licence-schema.json
|
296
|
+
- schemas/schemas/primary-data-schema.json
|
297
|
+
- schemas/schemas/share-parcel-schema.json
|
298
|
+
- schemas/schemas/simple-financial-payment-schema.json
|
299
|
+
- schemas/schemas/simple-licence-schema.json
|
300
|
+
- schemas/schemas/simple-subsidiary-schema.json
|
301
|
+
- schemas/schemas/subsidiary-relationship-schema.json
|
302
|
+
- schemas/spec/sample-data/invalid/company-01.json
|
303
|
+
- schemas/spec/sample-data/invalid/company-02.json
|
304
|
+
- schemas/spec/sample-data/invalid/company-03.json
|
305
|
+
- schemas/spec/sample-data/invalid/company-04.json
|
306
|
+
- schemas/spec/sample-data/invalid/company-05.json
|
307
|
+
- schemas/spec/sample-data/invalid/company-06.json
|
308
|
+
- schemas/spec/sample-data/invalid/company-07.json
|
309
|
+
- schemas/spec/sample-data/invalid/company-08.json
|
310
|
+
- schemas/spec/sample-data/invalid/company-09.json
|
311
|
+
- schemas/spec/sample-data/invalid/company-10.json
|
312
|
+
- schemas/spec/sample-data/invalid/company-11.json
|
313
|
+
- schemas/spec/sample-data/invalid/company-12.json
|
314
|
+
- schemas/spec/sample-data/invalid/company-13.json
|
315
|
+
- schemas/spec/sample-data/invalid/company-14.json
|
316
|
+
- schemas/spec/sample-data/invalid/company-15.json
|
317
|
+
- schemas/spec/sample-data/invalid/company-16.json
|
318
|
+
- schemas/spec/sample-data/invalid/company-17.json
|
319
|
+
- schemas/spec/sample-data/invalid/company-18.json
|
320
|
+
- schemas/spec/sample-data/invalid/company-19.json
|
321
|
+
- schemas/spec/sample-data/invalid/company-20.json
|
322
|
+
- schemas/spec/sample-data/invalid/company-21.json
|
323
|
+
- schemas/spec/sample-data/invalid/company-22.json
|
324
|
+
- schemas/spec/sample-data/invalid/company-23.json
|
325
|
+
- schemas/spec/sample-data/invalid/company-24.json
|
326
|
+
- schemas/spec/sample-data/invalid/company-25.json
|
327
|
+
- schemas/spec/sample-data/invalid/company-26.json
|
328
|
+
- schemas/spec/sample-data/invalid/company-27.json
|
329
|
+
- schemas/spec/sample-data/invalid/company-28.json
|
330
|
+
- schemas/spec/sample-data/invalid/company-29.json
|
331
|
+
- schemas/spec/sample-data/invalid/company-30.json
|
332
|
+
- schemas/spec/sample-data/invalid/company-31.json
|
333
|
+
- schemas/spec/sample-data/invalid/company-32.json
|
334
|
+
- schemas/spec/sample-data/invalid/company-33.json
|
335
|
+
- schemas/spec/sample-data/invalid/company-34.json
|
336
|
+
- schemas/spec/sample-data/invalid/company-35.json
|
337
|
+
- schemas/spec/sample-data/invalid/company-36.json
|
338
|
+
- schemas/spec/sample-data/invalid/company-37.json
|
339
|
+
- schemas/spec/sample-data/invalid/company-38.json
|
340
|
+
- schemas/spec/sample-data/invalid/company-39.json
|
341
|
+
- schemas/spec/sample-data/invalid/company-40.json
|
342
|
+
- schemas/spec/sample-data/invalid/company-41.json
|
343
|
+
- schemas/spec/sample-data/invalid/company-42.json
|
344
|
+
- schemas/spec/sample-data/invalid/company-43.json
|
345
|
+
- schemas/spec/sample-data/invalid/company-44.json
|
346
|
+
- schemas/spec/sample-data/invalid/company-45.json
|
347
|
+
- schemas/spec/sample-data/invalid/company-46.json
|
348
|
+
- schemas/spec/sample-data/invalid/company-47.json
|
349
|
+
- schemas/spec/sample-data/invalid/company-48.json
|
350
|
+
- schemas/spec/sample-data/invalid/company-49.json
|
351
|
+
- schemas/spec/sample-data/invalid/company-50.json
|
352
|
+
- schemas/spec/sample-data/invalid/company-51.json
|
353
|
+
- schemas/spec/sample-data/invalid/company-52.json
|
354
|
+
- schemas/spec/sample-data/invalid/company-53.json
|
355
|
+
- schemas/spec/sample-data/invalid/company-54.json
|
356
|
+
- schemas/spec/sample-data/invalid/company-55.json
|
357
|
+
- schemas/spec/sample-data/invalid/financial-payment-01.json
|
358
|
+
- schemas/spec/sample-data/invalid/licence-01.json
|
359
|
+
- schemas/spec/sample-data/invalid/licence-02.json
|
360
|
+
- schemas/spec/sample-data/invalid/licence-03.json
|
361
|
+
- schemas/spec/sample-data/invalid/licence-04.json
|
362
|
+
- schemas/spec/sample-data/invalid/licence-05.json
|
363
|
+
- schemas/spec/sample-data/invalid/licence-06.json
|
364
|
+
- schemas/spec/sample-data/invalid/licence-07.json
|
365
|
+
- schemas/spec/sample-data/invalid/licence-08.json
|
366
|
+
- schemas/spec/sample-data/invalid/primary-data-01.json
|
367
|
+
- schemas/spec/sample-data/invalid/primary-data-02.json
|
368
|
+
- schemas/spec/sample-data/invalid/simple-licence-01.json
|
369
|
+
- schemas/spec/sample-data/invalid/simple-licence-02.json
|
370
|
+
- schemas/spec/sample-data/invalid/simple-licence-03.json
|
371
|
+
- schemas/spec/sample-data/invalid/simple-subsidiary-01.json
|
372
|
+
- schemas/spec/sample-data/licence-schema.json.old
|
373
|
+
- schemas/spec/sample-data/valid/company-01.json
|
374
|
+
- schemas/spec/sample-data/valid/company-02.json
|
375
|
+
- schemas/spec/sample-data/valid/company-03.json
|
376
|
+
- schemas/spec/sample-data/valid/company-04.json
|
377
|
+
- schemas/spec/sample-data/valid/company-05.json
|
378
|
+
- schemas/spec/sample-data/valid/company-06.json
|
379
|
+
- schemas/spec/sample-data/valid/company-07.json
|
380
|
+
- schemas/spec/sample-data/valid/company-08.json
|
381
|
+
- schemas/spec/sample-data/valid/company-09.json
|
382
|
+
- schemas/spec/sample-data/valid/company-10.json
|
383
|
+
- schemas/spec/sample-data/valid/company-11.json
|
384
|
+
- schemas/spec/sample-data/valid/company-12.json
|
385
|
+
- schemas/spec/sample-data/valid/company-13.json
|
386
|
+
- schemas/spec/sample-data/valid/company-14.json
|
387
|
+
- schemas/spec/sample-data/valid/company-15.json
|
388
|
+
- schemas/spec/sample-data/valid/company-16.json
|
389
|
+
- schemas/spec/sample-data/valid/company-17.json
|
390
|
+
- schemas/spec/sample-data/valid/company-18.json
|
391
|
+
- schemas/spec/sample-data/valid/company-19.json
|
392
|
+
- schemas/spec/sample-data/valid/company-20.json
|
393
|
+
- schemas/spec/sample-data/valid/company-21.json
|
394
|
+
- schemas/spec/sample-data/valid/company-22.json
|
395
|
+
- schemas/spec/sample-data/valid/company-23.json
|
396
|
+
- schemas/spec/sample-data/valid/company-24.json
|
397
|
+
- schemas/spec/sample-data/valid/company-25.json
|
398
|
+
- schemas/spec/sample-data/valid/company-26.json
|
399
|
+
- schemas/spec/sample-data/valid/company-27.json
|
400
|
+
- schemas/spec/sample-data/valid/company-28.json
|
401
|
+
- schemas/spec/sample-data/valid/company-29.json
|
402
|
+
- schemas/spec/sample-data/valid/company-30.json
|
403
|
+
- schemas/spec/sample-data/valid/company-31.json
|
404
|
+
- schemas/spec/sample-data/valid/company-32.json
|
405
|
+
- schemas/spec/sample-data/valid/company-33.json
|
406
|
+
- schemas/spec/sample-data/valid/company-34.json
|
407
|
+
- schemas/spec/sample-data/valid/company-35.json
|
408
|
+
- schemas/spec/sample-data/valid/company-36.json
|
409
|
+
- schemas/spec/sample-data/valid/company-37.json
|
410
|
+
- schemas/spec/sample-data/valid/company-38.json
|
411
|
+
- schemas/spec/sample-data/valid/company-39.json
|
412
|
+
- schemas/spec/sample-data/valid/company-40.json
|
413
|
+
- schemas/spec/sample-data/valid/company-41.json
|
414
|
+
- schemas/spec/sample-data/valid/company-42.json
|
415
|
+
- schemas/spec/sample-data/valid/financial-payment-01.json
|
416
|
+
- schemas/spec/sample-data/valid/financial-payment-02.json
|
417
|
+
- schemas/spec/sample-data/valid/licence-01.json
|
418
|
+
- schemas/spec/sample-data/valid/licence-02.json
|
419
|
+
- schemas/spec/sample-data/valid/licence-03.json
|
420
|
+
- schemas/spec/sample-data/valid/licence-04.json
|
421
|
+
- schemas/spec/sample-data/valid/primary-data-01.json
|
422
|
+
- schemas/spec/sample-data/valid/primary-data-02.json
|
423
|
+
- schemas/spec/sample-data/valid/simple-licence-01.json
|
424
|
+
- schemas/spec/sample-data/valid/simple-licence-02.json
|
425
|
+
- schemas/spec/sample-data/valid/simple-licence-03.json
|
426
|
+
- schemas/spec/sample-data/valid/simple-subsidiary-01.json
|
427
|
+
- schemas/spec/sample-data/valid/simple-subsidiary-02.json
|
428
|
+
- schemas/spec/sample-data/valid/subsidiary-relationship-01.json
|
429
|
+
- schemas/spec/spec_helper.rb
|
430
|
+
- schemas/spec/validation_spec.rb
|
286
431
|
homepage: ''
|
287
432
|
licenses: []
|
288
433
|
post_install_message:
|
@@ -1,27 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "Base statement",
|
3
|
-
"description": "A base statement which must be extended by a schema to be used in OpenCorporates",
|
4
|
-
"type": "object",
|
5
|
-
"properties": {
|
6
|
-
"source_url": {
|
7
|
-
"description": "Place where this fact can be verified",
|
8
|
-
"type": "string"
|
9
|
-
},
|
10
|
-
"source_jurisdiction": {
|
11
|
-
"description": "Jurisdiction of the source of the data",
|
12
|
-
"type": "string"
|
13
|
-
},
|
14
|
-
"sample_date": {
|
15
|
-
"description": "Date on which this fact was known to be true",
|
16
|
-
"type": "string"
|
17
|
-
},
|
18
|
-
"company": {
|
19
|
-
"$ref" : "../includes/company.json"
|
20
|
-
},
|
21
|
-
"data": {
|
22
|
-
"type": "array",
|
23
|
-
"additionalItems": false
|
24
|
-
}
|
25
|
-
},
|
26
|
-
"required": ["source_url", "data", "sample_date", "company"]
|
27
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
-
"title": "Subsidiary Relationship Schema",
|
4
|
-
"type": "object",
|
5
|
-
"allOf" : [
|
6
|
-
{ "$ref": "includes/base-statement.json" },
|
7
|
-
{
|
8
|
-
"properties": {
|
9
|
-
"data": {
|
10
|
-
"items": {
|
11
|
-
"allOf": [
|
12
|
-
{ "$ref": "includes/subsidiary-relationship-data.json" }
|
13
|
-
]
|
14
|
-
}
|
15
|
-
}
|
16
|
-
}
|
17
|
-
}
|
18
|
-
]
|
19
|
-
}
|