Skip to content

Commit f5a83ab

Browse files
committed
[release] version 1.5.7
1 parent 0ae6baf commit f5a83ab

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
## [Unreleased]
44

5+
## [1.5.7] - 2018/4/6 - [view diff](https://github.com/zhandao/zero-rails_openapi/compare/v1.5.6...v1.5.7)
6+
7+
## Changed
8+
9+
1. issue [#16](#https://github.com/zhandao/zero-rails_openapi/issues/16) DSL in `base_doc_class` can not be generated.
10+
11+
## Fixed
12+
13+
1. issue [#15](#https://github.com/zhandao/zero-rails_openapi/issues/15) colorize was not required.
14+
2. securitySchemes defined by config DSL was not be generated.
15+
516
## [1.5.6] - 2018/3/23 - [view diff](https://github.com/zhandao/zero-rails_openapi/compare/v1.5.5...v1.5.6)
617

718
## Changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
zero-rails_openapi (1.5.6)
4+
zero-rails_openapi (1.5.7)
55
activesupport (>= 3)
66
colorize
77
rails (>= 3)

lib/open_api/generator.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ def generate_doc(doc_name)
2828
doc = { openapi: '3.0.0', **settings.slice(:info, :servers) }.merge!(
2929
security: settings[:global_security], tags: [ ], paths: { },
3030
components: {
31-
securitySchemes: { }, schemas: { }, parameters: { }, requestBodies: { }
32-
}.merge!(settings[:components] || { })
31+
securitySchemes: settings[:securitySchemes] || { },
32+
schemas: { }, parameters: { }, requestBodies: { }
33+
}
3334
)
3435

3536
[(bdc = settings[:base_doc_class]), *bdc.descendants].each do |ctrl|

lib/open_api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module OpenApi
2-
VERSION = '1.5.6'
2+
VERSION = '1.5.7'
33
end

0 commit comments

Comments
 (0)