Closed utf4 closed 6 years ago
I can see from the stacktrace that the default MarkdownWriter
is being used, but it might be an older version, because the function Bureaucrat.MarkdownWriter.write_example/2
isn't on line 43 in the current master, it's now starting on line 54
If you would like Bureaucrat to use :operation_id
to merge test examples with a swagger file, you need to switch to the SwaggerSlateMarkdownWriter
.
Eg:
Bureaucrat.start(
env_var: "DOC",
writer: Bureaucrat.SwaggerSlateMarkdownWriter,
default_path: "doc/source/index.html.md",
swagger: "priv/static/swagger.json" |> File.read!() |> Poison.decode!())
I am facing the following error when passing
:operation_id
indoc()
.My Environment: $ mix -v Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:10] [hipe] [kernel-poll:false] Mix 1.4.4