Skip to content

Conversation

bradschwartz
Copy link

closes #678

@@ -86,7 +87,9 @@ defmodule OpenApiSpex.ExportSpec do
dir -> Mix.Generator.create_directory(dir, quiet: opts.quiet)
end

Mix.Generator.create_file(opts.filename, content, force: true, quiet: opts.quiet)
with true <- Mix.Generator.create_file(opts.filename, content, force: true, quiet: opts.quiet) do
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i found it easier to update here on successful writes to return the new filename, instead of having the new task have to explicitly be aware of the :filename switch for the json task. Happy to go with that if preferable tho

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature request: Generate Static Files From Spec via Mix Task for Static Docs
1 participant