Skip to content

Commit 117b82d

Browse files
authored
Merge pull request #399 from roramirez/backward-compability-json-writer
backward compatibility to use json or JSON in format configuration
2 parents bb87226 + 0ab53a0 commit 117b82d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/rspec_api_documentation.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ module Writers
3838
autoload :TextileWriter
3939
autoload :MarkdownWriter
4040
autoload :JSONWriter
41+
autoload :JsonWriter
4142
autoload :AppendJsonWriter
4243
autoload :JsonIodocsWriter
4344
autoload :IndexHelper

lib/rspec_api_documentation/writers/json_writer.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ def write_examples
2323
end
2424
end
2525

26+
# https://github.com/zipmark/rspec_api_documentation/issues/382
27+
# backward compatibilty json for configuration of config.format
28+
class JsonWriter < JSONWriter; end
29+
2630
class JSONIndex
2731
def initialize(index, configuration)
2832
@index = index

0 commit comments

Comments
 (0)