Skip to content

Commit

Permalink
fixed examples key
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario.RuizSanchez committed Feb 5, 2019
1 parent c64e534 commit 21ce577
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/open_api_import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class OpenApiImport
# @param name_for_module [Symbol]. (:path, :path_file, :fixed) (default: :path). How the module names will be created.
# path: It will be used the first folder of the path to create the module name, for example the path /users/list will be in the module Users and all the requests from all modules in the same file.
# path_file: It will be used the first folder of the path to create the module name, for example the path /users/list will be in the module Users and each module will be in a new requests file.
# tags: It will be used the tags key to create the module name, for example the tags: [users,list] will create the module UsersList and all the requests from all modules in the same file.
# tags_file: It will be used the tags key to create the module name, for example the tags: [users,list] will create the module UsersList and and each module will be in a new requests file.
# fixed: all the requests will be under the module Requests
##############################################################################################
def self.from(swagger_file, create_method_name: :operation_id, include_responses: true, mock_response: false, name_for_module: :path)
Expand Down

0 comments on commit 21ce577

Please sign in to comment.