This is a temporary fix to avoid having invalid query
parameters documented in the request schemas.
Also, this change makes the yaml file names match the
controller name instead of using the first part of
the url, since so many of our endpoints start with
/accounts.
test plan:
- Run `OPENAPI=1 rspec spec/controllers/lti/registrations_controller_spec.rb`
- See that a file was created in spec/openapi/lti/registrations.yaml
- It would have been in spec/openapi/accounts.yaml without this change
- See that the word "bad" does not show up in the yaml file (several tests
use "bad" as an example of an invalid query parameter)
Change-Id: Ib7c0093bc8b36fc42bdbb13edb910c61449359f5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/352231
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Tucker Mcknight <tmcknight@instructure.com>
Reviewed-by: Xander Moffatt <xmoffatt@instructure.com>
QA-Review: Xander Moffatt <xmoffatt@instructure.com>