Releases: zhandao/zero-rails_openapi
Releases · zhandao/zero-rails_openapi
Zero-Rails_OpenApi 1.4.3 release!
[1.4.2 & 1.4.3] - 2017/12/11&13 - view diff
Feature
example
method incomponents
block.- Request Body (also Response):
- The same media-types will be fusion together.
(This means you can writeform
separately.) - Different media-types will not be replaced, all will be merged in
content
. - Support flat statement form-data by
data
.
- The same media-types will be fusion together.
Fixed
generate_doc
raise 'should not nil when merge' if settings[:components] not set.@preprocessed not initialize
warning.
Added
- Schema option
blankable
. - Schema option alias
in
toenum
. - Schema option
pattern
could beString
for supporting Time Format.
Changed
form
mandatory requirements passdata: { }
.- Remove
request_body
's parameterdesc
to**options
. - Remove aliases of
response
.
Zero-Rails_OpenApi 1.4.1 Release!
Feature
- Pass a ActiveRecord class constant to the
schema
,
it will automatically read the db schema to generate the component.
Fixed
- Fix: Components defined in the controller overwrite the ones defined in the configuration.
Changed
- Remove JBuilder automatic generator.
- Refactoring based on CodeClimate.
- Rename
CtrlInfoObj
toComponents
.
Added
- Update README.
- Add CHANGELOG.
doc_location
can be configured.
Zero-Rails_OpenApi 1.4.0 Release!
Changes
- Config.register_docs => Config.open_api_docs.
- Config DSL
api
=>open_api
. - [IMPORTANT] DSL
open_api
=>api
. - Use module instance variables instead of global variables.
- Is refactoring based on rubocop by hand.
New Feature
- Support CombinedSchema, like
one_of
,any_of
.. - Authentication and Authorization DSL, for Defining Security Scheme and Applying Security.
- The ability to identify multi-httpverbs.
- Also support
api :name, type: String
.
(You have to write this beforeapi :name, String
) - Support designated http method in
api
. - Fix controller's require question in
generate_docs
. - Support read files to get routes information. (Config.rails_routes_file)
- The completion of the basic README.
v1.3.3
v1.3.2
v1.3.1
v1.3.0
- View files (Jbuilder ..) could be generated automatically by the template you specify.
- Redesign Config module.
- Let you decide to skip or use the parameters which define in
api_dry
. - Support auto generate responses type by reading schema of database(ActiveModel).