[2.1.5] - 2020/9/20 - view diff
- Keyword arguments in Ruby 2.7 issued by @dandunckelman
[2.1.3 - 2.1.4] - 2020/2/10 - view diff
- Fix response HTTP Status Code's type, restrict to String issued by @am17torres
- Configurable additionalProperties's default value of Object type issued by @remuspoienar
[2.1.1 - 2.1.2] - 2019/2/12 - view diff
- Fix response header schema output PR #49 by @drjonnicholson
- Fix router formatter in Rails 6 PR #53 by @rjayroach
- Support for generating
additional_properties: true
issued by @bopm
[2.1.0] - 2019/2/16 - view diff
See: PR #43
Headers in Response Object (issued by @drjonnicholson)
[2.0.0 - 2.0.3] - 2019/2/12 - view diff
See: PR #35
- Totally refactoring
- README rewritten
- Removed Or Changed uncommonly used features
[1.7.0] - 2018/12/17 - view diff
- Declare Ruby & Rails version requirement in Gemspec
match?
=>'string'[matcher].present?
, for compatibility with ruby < 2.4
- Config option
base_doc_class: ApiDoc
changed tobase_doc_classes: [ApiDoc]
[1.6.1] - 2018/8/21 - view diff
tag
is allowed to pass to api
- camelize action tag
- update gems cause sprockets vulnerability
[1.6.0] - 2018/6/26 - view diff
- issue #21 support additionalProperties. Thanks @barnaclebarnes
- issue #23 Uniqueness of operationId. Thanks @barnaclebarnes
- issue #22 missing
/
in reference. Thanks @barnaclebarnes
[1.5.8 & 1.5.9] - 2018/6/19 - view diff
- issue #17 singular example in schema. Thanks @williamdias
- issue #18 define multiple components blocks in one class. Thanks @Amnesthesia
[1.5.7] - 2018/4/6 - view diff
- issue #16 DSL in
base_doc_class
can not be generated. Thanks @jonathantribouharet
- issue #15 colorize was not required. Thanks @jonathantribouharet
- securitySchemes defined by config DSL was not be generated.
[1.5.6] - 2018/3/23 - view diff
- Upgrade
loofah
andrails-html-sanitizer
cause XSS vulnerability. - Refactor and document DSL for Rspec (spec_dsl.rb).
[1.5.5] - 2018/2/21 - view diff
- Callback Object has been supported. (issue #12 @austbot)
mk
's parametereq
is changed toget
. (dssl.rb)
[1.5.4] - 2018/2/15 - view diff
Thanks to @austbot, fix - colorize fails at runtime.
[1.5.3] - 2018/1/25 - view diff
- Colorize output.
- Refactoring SchemaObj and remove
preprocess
. schema_hash
=>schema_info
.- Refactoring
process_objs
.. dsl/ files.
- max lth and min lth is reversed.
[1.5.2] - 2018/1/2 - view diff
do_*
can be passed common schema after (or before)by:
.- when this action can be accessed through multiple HTTP methods (but not set through
match
), it also matches and generate both HTTP methods.
root_controller
=>base_doc_class
.ctrl_path
=>ctrl_base
.apis_tag
=>doc_tag
.@_ctrl_infos
=>@doc_info
,@_api_infos
=>@api_info
,@_apis_dry_blocks
=>@zro_dry_blocks
.OpenApi.paths_index
=>OpenApi.routes_index
.get_actions_by_ctrl_path
=>get_actions_by_route_base
.Config.dft_file_format
=>Config.file_format
.- Modify the description of the test case (remove
should
). deep_merge!
instead of_fusion
.ApiInfoObj
=>ApiInfo
.
[1.5.1 - 100% Test Coverage] - 2017/12/21 - view diff
type: [String, Integer ..]
will generate an array, which's items would be a oneOf combined schema.
desc
will override dry's.type: something
is passed toschema_hash
, but nottype
.- Should not
skip
the params inside block. body_ref
invalid.- schema
length
's order is reversed. - Example Obj ref.
- Use
simplecov
. - CodeClimate test hook.
- Test's support.
- Designed RSpec matchers
have_keys
andhave_size
. - Designed a set of RSpec's DSL (DSSL) for testing.
- WILL NOT do
recognize_is_options_in
. instance_eval
=>instance_exec
in dsl.rb.- Guard Clause for
generate_docs
and where schema could be defined. - Change signature of
server
inapi
. - Simplify
recursive
s. enum: { 'desc' => :enum1 }
=>enum!: { 'desc' => :enum1 }
[1.4.2 & 1.4.3] - 2017/12/11&13 - view diff
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.
generate_doc
raise 'should not nil when merge' if settings[:components] not set.@preprocessed not initialize
warning.
- Schema option
blankable
. - Schema option alias
in
toenum
. - Schema option
pattern
could beString
for supporting Time Format.
form
mandatory requirements passdata: { }
.- Remove
request_body
's parameterdesc
to**options
. - Remove aliases of
response
.
[1.4.1] - 2017/12/6 - view diff
- Pass a ActiveRecord class constant to the
schema
, it will automatically read the db schema to generate the component.
- Fix: Components defined in the controller overwrite the ones defined in the configuration.
- Remove JBuilder automatic generator.
- Refactoring based on CodeClimate.
- Rename
CtrlInfoObj
toComponents
.
- Update README.
- Add CHANGELOG.
doc_location
can be configured.
[1.4.0] - 2017/12/3 - view diff
- Fix controller's require question in
generate_docs
.
- Support CombinedSchema, like
one_of
,any_of
.. - Authentication and Authorization DSL, for Defining Security Scheme and Applying Security.
- The ability to identify multi HTTP verbs.
- Support read files to get routes information. (Config.rails_routes_file)
- [IMPORTANT] DSL
open_api
=>api
. - Config.register_docs => Config.open_api_docs.
- Document Definition DSL
api
=>open_api
. - Use module instance variables instead of global variables.
- Is refactoring based on
rubocop
by hand.
- Also support
api :name, type: String
. (You have to write this beforeapi :name, String
) - Support designated http method in
api
. - The completion of the basic README.
[1.3.2 & 1.3.3] - 2017/11/10&21 - view diff
- Document Definition DSL.
- Parameter
order
: Support to usesort
to specify the order in which parameters are arranged. This is useful when you dry your DSL. - Parameter
examples
.
- Rewrote README.
[1.3.1] - 2017/11/5 - view diff
- Refactoring based on bbatsov and Airbnb's style guide, more readable.
- Support response override by using
override_response
. - Separate
apis_set
intoapis_tag
andcomponents
. - Support simplify param DSL with
do_* by: { }
method.