finitio 0.11.2 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/finitio/json_schema/proxy_type.rb +5 -1
- data/lib/finitio/version.rb +1 -1
- data/spec/json_schema/test_recursive_type.rb +48 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acf74d5293b979c7c03d55dc9cbea273b9f85d6c
|
4
|
+
data.tar.gz: 14e18b10f4668fc996354ec2ceb6627eb56dffbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba3a092904c8ac102361ef17b2fc0f49d8f6ed209d2a3ffe0ec852f3c3b52772716762bf65d3604831a631f2ecc8782cdaa120b7768608849ec72bdbc164f8d2
|
7
|
+
data.tar.gz: a33d566ed9e25caed8b90d7228583056152ee1fb0c50533fad4008ab72d318fd3d51430f1f50146f42c77104f6fad40c86591200e168cce14de05d46995e228d
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/finitio/version.rb
CHANGED
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
module Finitio
|
3
|
+
module JsonSchema
|
4
|
+
describe "A recursive type" do
|
5
|
+
|
6
|
+
let(:system){
|
7
|
+
::Finitio.system <<-FIO
|
8
|
+
Tree = {
|
9
|
+
children : [Tree]
|
10
|
+
}
|
11
|
+
FIO
|
12
|
+
}
|
13
|
+
|
14
|
+
let(:type) {
|
15
|
+
system['Tree']
|
16
|
+
}
|
17
|
+
|
18
|
+
xit 'works as expected' do
|
19
|
+
expect(type.to_json_schema).to eql({
|
20
|
+
type: "object",
|
21
|
+
properties: {
|
22
|
+
children: {
|
23
|
+
type: "array",
|
24
|
+
items: {
|
25
|
+
type: "object",
|
26
|
+
properties: {
|
27
|
+
children: {
|
28
|
+
type: "array",
|
29
|
+
items: "object"
|
30
|
+
}
|
31
|
+
},
|
32
|
+
required: [
|
33
|
+
:children
|
34
|
+
],
|
35
|
+
additionalProperties: false
|
36
|
+
}
|
37
|
+
}
|
38
|
+
},
|
39
|
+
required: [
|
40
|
+
:children
|
41
|
+
],
|
42
|
+
additionalProperties: false
|
43
|
+
})
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finitio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernard Lambeau
|
@@ -309,6 +309,7 @@ files:
|
|
309
309
|
- spec/json_schema/test_builtin_type.rb
|
310
310
|
- spec/json_schema/test_multi_relation_type.rb
|
311
311
|
- spec/json_schema/test_multi_tuple_type.rb
|
312
|
+
- spec/json_schema/test_recursive_type.rb
|
312
313
|
- spec/json_schema/test_relation_type.rb
|
313
314
|
- spec/json_schema/test_seq_type.rb
|
314
315
|
- spec/json_schema/test_set_type.rb
|
@@ -616,6 +617,7 @@ test_files:
|
|
616
617
|
- spec/json_schema/test_ad_type.rb
|
617
618
|
- spec/json_schema/test_builtin_type.rb
|
618
619
|
- spec/json_schema/test_multi_relation_type.rb
|
620
|
+
- spec/json_schema/test_recursive_type.rb
|
619
621
|
- spec/json_schema/test_sub_type.rb
|
620
622
|
- spec/json_schema/test_any_type.rb
|
621
623
|
- spec/json_schema/test_seq_type.rb
|