mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-02 21:57:17 +00:00
Rswag doesn't look for specs in engines by default. We haven't added any Rswag specs in the dfc_provider engine yet but that will come. The generated API schema has some superfluous whitespace removed due to a fix in the rswag gems.
7 lines
246 B
Bash
Executable File
7 lines
246 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# Generate the API documentation based on our specs.
|
|
#
|
|
# The PATTERN argument is adding engines to the search path.
|
|
exec ./bin/rake rswag PATTERN="spec/requests/api/**/*_spec.rb,engines/dfc_provider/spec/requests/**/*_spec.rb"
|