swagger-serializer 0.9.0 → 0.9.1

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: bbb250d6c1883291921652478c9a65725bf1c81a9d6ce93280160157ffbfd806
4
- data.tar.gz: b653e8be0346bb4ca79d8283edcba2ce53426afd50a7e178b833541dcd0aa674
3
+ metadata.gz: 79c7bd80dde5bc99776c4eb97de7ca8c2fb26bcff9edd2782f7e5c98ccb6b20f
4
+ data.tar.gz: e645255c34a3f72c3f51fe4617956598e3330cc5369cd4407b4b0584bf9ab679
5
5
  SHA512:
6
- metadata.gz: e7f88dec0338b293ec30285ebdb167264e546cb809a322b716e19cd92711ac89721c919b2b2a5749ffea53dfbdcf033fc3c5455ab93de3edfebdcdfb810c8951
7
- data.tar.gz: dbccb3a869dc576bb118999dce2183620d93f6ff8808bd6de0352f72542930080df3298f0b8cbde05608661cffd0e5c3466e56bba9f5e48f1b0a57b934af8583
6
+ metadata.gz: cc97f53340cb1fc8bfd066c93fb67c6eac39d51c68c48730fa97a169f4430d6018cb6ac9028bd79bd38801fbc284711986faa69903a23b79dd7591db42f28493
7
+ data.tar.gz: 17f8afe05b8f1cd95cb4dec0a1866ba636e2b6b3a689855d7b5791dc97a6113dc6d22d580bd2c205b2ba2b8f9080a7ed9144b92680dd1a4b2f5df64933fcf0c5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.9.1
4
+
5
+ - Replace `request.content_type` with `request.media_type` for compatibility with the default behavior of Rails 7.0 (@r7kamura)
6
+
3
7
  ## 0.9.0
4
8
 
5
9
  - mod(brake): adjust to OAS3 spec
@@ -46,8 +46,8 @@ module Swagger::Serializer::RailsController
46
46
 
47
47
  def body_deserializer
48
48
  @body_deserializer ||=
49
- if request.content_type
50
- swagger_operation.request_body.content[request.content_type]&.deserializer
49
+ if request.media_type
50
+ swagger_operation.request_body.content[request.media_type]&.deserializer
51
51
  end
52
52
  end
53
53
 
@@ -1,5 +1,5 @@
1
1
  module Swagger
2
2
  module Serializer
3
- VERSION = "0.9.0".freeze
3
+ VERSION = "0.9.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagger-serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-08 00:00:00.000000000 Z
11
+ date: 2022-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema-serializer
@@ -242,7 +242,7 @@ metadata:
242
242
  homepage_uri: https://github.com/Narazaka/swagger-serializer
243
243
  source_code_uri: https://github.com/Narazaka/swagger-serializer.git
244
244
  changelog_uri: https://github.com/Narazaka/swagger-serializer/blob/master/CHANGELOG.md
245
- documentation_uri: https://www.rubydoc.info/gems/swagger-serializer/0.9.0
245
+ documentation_uri: https://www.rubydoc.info/gems/swagger-serializer/0.9.1
246
246
  post_install_message:
247
247
  rdoc_options: []
248
248
  require_paths: