rspec-openapi 0.1.1 → 0.1.2

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: 0c7805f6dabb952af2af91c519fb185ea61422c22ba16d938a29a040d8cbfedd
4
- data.tar.gz: 3662b332e329348248b0fb888d2908a47871d5dc3a9cd7a955626b6c0cd81fcf
3
+ metadata.gz: f16d83f7a23388930df36ade00c6a17dfc53de509eac6c3a5d99c41235bd281b
4
+ data.tar.gz: 9b65d3f8942388bfe9b62435ceef108ff55bc7e9f15af2c63bfee67bb10197ec
5
5
  SHA512:
6
- metadata.gz: dd9e48617b13a14ed573a8e1985b5f6d56ffecc50c36501b536215a2efc0bc44cad9b2719439b40aa4eafd86a39d87de8d6a16eb0a92ac6350d0347b3ea443f6
7
- data.tar.gz: '0497ef8426997c7fdda69a9a76ca4f36b3bf31ab731312da6ce66e8f59a58390093d5fb851b0854a14ee408df891957cc1237caf491e1b1cbf92e27d600b9a1f'
6
+ metadata.gz: 447d354f4c0ef64cf78fd9eb2b0f47b42d943d12f9c73cc6eb51ef3ba20a931b7a4cc6c0fd214ece15214a029fc0ab28d6b028b774f652a10940806d3df5e014
7
+ data.tar.gz: 44566e265fbca4419f15cc8d59948804f72b133092fe5a920bcd80bc889959ccee201395c3cf8c76849daa552d9ecbc094d271ff5885a0e972a2ad8b1752dfb1
@@ -1,3 +1,7 @@
1
+ ## v0.1.2
2
+
3
+ * Generate `required: true` for path params
4
+
1
5
  ## v0.1.1
2
6
 
3
7
  * Generate a path like `/{id}` instead of `/:id`
@@ -35,6 +35,7 @@ class << RSpec::OpenAPI::SchemaBuilder = Object.new
35
35
  parameters << {
36
36
  name: key.to_s,
37
37
  in: 'path',
38
+ required: true,
38
39
  schema: build_property(try_cast(value)),
39
40
  }
40
41
  end
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module OpenAPI
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-openapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun