Skip to content

Commit

Permalink
update readme to reflect JSON class pr zipmark#359
Browse files Browse the repository at this point in the history
  • Loading branch information
ConorSheehan1 committed Sep 13, 2018
1 parent 117b82d commit c4e2e43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Consider adding a viewer to enhance the generated documentation. By itself rspec

```ruby
RspecApiDocumentation.configure do |config|
config.format = :json
config.format = :JSON
end
```

Expand Down Expand Up @@ -188,7 +188,7 @@ RspecApiDocumentation.configure do |config|
config.docs_dir = Rails.root.join("doc", "api")

# An array of output format(s).
# Possible values are :json, :html, :combined_text, :combined_json,
# Possible values are :JSON, :html, :combined_text, :combined_json,
# :json_iodocs, :textile, :markdown, :append_json, :slate,
# :api_blueprint, :open_api
config.format = [:html]
Expand Down Expand Up @@ -245,7 +245,7 @@ RspecApiDocumentation.configure do |config|
end

# Change how the post body is formatted by default, you can still override by `raw_post`
# Can be :json, :xml, or a proc that will be passed the params
# Can be :JSON, :xml, or a proc that will be passed the params
config.request_body_formatter = Proc.new { |params| params }

# Change how the response body is formatted by default
Expand Down

0 comments on commit c4e2e43

Please sign in to comment.