json-schema-subset-dsl 1.3.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c575628c2ad4a7d78e05febfa7ce1b71d94a1712c4ef0c42c6a7b7f504b44a1
4
- data.tar.gz: fa4027748636a4b07849952209a354388eeed33072da2a7d529c32d0093eec98
3
+ metadata.gz: 2fc0fdb0a235748e53ecfc032c9d1d97a7b541681e48899c05d045e6cf0a4565
4
+ data.tar.gz: f1fc46f4d894fa0d4019539ed51d9ec3abfa920178e15654be3b310f289633c8
5
5
  SHA512:
6
- metadata.gz: 5554d8228b22de81d432ed7a7e9282857ac02b35d7161e97c45be627c6381dac2500690a45c1c66597b689bf63cdc3e92c87126068d0c876948b4bf29fc10645
7
- data.tar.gz: d045c76dd2ee21dc0577913cca16154f9ac5e039ee59f590cc7c57f86a08e94ded75c8595651a5015e6a4447ce1fd2a60bbafd77b8867b6fd11a0f11121629cf
6
+ metadata.gz: b2a9f4ba528fb0be6c908e72f2479f2c0794fe5d046e04c7c5bf2eb546efe7b515079c0cbdc51e8f74fa98c4992052c3a8d116601bd0522d887e26e50662af57
7
+ data.tar.gz: 504fa8751266b830425ba9fc34858f240b8d7beef7e279930b888ed3a94254ddbef0a89ca3bd42b6b24540314549a4255db66ea4f5496ffe8300434f85e0761c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.0.0
4
+
5
+ - fix: cref!(id) == "#/components/schemas/#{id}"
6
+
3
7
  ## 1.3.0
4
8
 
5
9
  - add: additionalPropeties support
data/README.md CHANGED
@@ -43,7 +43,7 @@ dsl = Json::Schema::Subset::DSL.new(options) do
43
43
  meta :object do
44
44
  description :string
45
45
  params :array do
46
- ref! "#/components/Param"
46
+ ref! "#/components/schemas/Param"
47
47
  end
48
48
  opt_params :array do
49
49
  cref! "OptParamSerializer"
@@ -63,8 +63,8 @@ dsl.compile! == {
63
63
  "type" => "object",
64
64
  "properties" => {
65
65
  "description" => { "type" => "string" },
66
- "params" => { "items" => { "$ref" => "#/components/Param" }, "type" => "array" },
67
- "opt_params" => { "items" => { "$ref" => "#/components/OptParam" }, "type" => "array" },
66
+ "params" => { "items" => { "$ref" => "#/components/schemas/Param" }, "type" => "array" },
67
+ "opt_params" => { "items" => { "$ref" => "#/components/schemas/OptParam" }, "type" => "array" },
68
68
  "uuid" => { "$ref" => "#/UUID" },
69
69
  },
70
70
  "required" => %w[description params opt_params],
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.require_paths = %w[lib]
30
30
 
31
31
  spec.add_development_dependency "bundler", "~> 2"
32
- spec.add_development_dependency "rake", "~> 10.5"
32
+ spec.add_development_dependency "rake", "~> 13.0"
33
33
  spec.add_development_dependency "rspec", "~> 3.9"
34
34
  spec.add_development_dependency "rspec-power_assert", "~> 1.1"
35
35
  spec.add_development_dependency "rubocop", "~> 0.76"
@@ -2,7 +2,7 @@ module Json
2
2
  module Schema
3
3
  module Subset
4
4
  class DSL
5
- VERSION = "1.3.0".freeze
5
+ VERSION = "2.0.0".freeze
6
6
  end
7
7
  end
8
8
  end
@@ -59,7 +59,7 @@ module Json
59
59
  end
60
60
 
61
61
  def components!(name)
62
- "#/components/#{canon_name!(name)}"
62
+ "#/components/schemas/#{canon_name!(name)}"
63
63
  end
64
64
 
65
65
  def definitions!(name)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-schema-subset-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-01 00:00:00.000000000 Z
11
+ date: 2022-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.5'
33
+ version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.5'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -182,8 +182,8 @@ metadata:
182
182
  homepage_uri: https://github.com/Narazaka/json-schema-subset-dsl
183
183
  source_code_uri: https://github.com/Narazaka/json-schema-subset-dsl.git
184
184
  changelog_uri: https://github.com/Narazaka/json-schema-subset-dsl/blob/master/CHANGELOG.md
185
- documentation_uri: https://www.rubydoc.info/gems/json-schema-subset-dsl/1.3.0
186
- post_install_message:
185
+ documentation_uri: https://www.rubydoc.info/gems/json-schema-subset-dsl/2.0.0
186
+ post_install_message:
187
187
  rdoc_options: []
188
188
  require_paths:
189
189
  - lib
@@ -198,8 +198,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  - !ruby/object:Gem::Version
199
199
  version: '0'
200
200
  requirements: []
201
- rubygems_version: 3.0.3
202
- signing_key:
201
+ rubygems_version: 3.1.4
202
+ signing_key:
203
203
  specification_version: 4
204
204
  summary: Yet another JSON Schema subset DSL
205
205
  test_files: []