You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With recent changes to the way Mojolicious routes for requests with format parameters the editor no longer retrieves data from the api but instead errors with a TypeError: items is undefined at /yancy/app.js:693.
[Fixed]
- Fixed issues with `format` changes in Mojolicious 9.11. Thanks
@kiwiroy for reporting and fixing these issues! [Github #131,
#132, #133]
- Reorganized documentation into Guides, more like Mojolicious. This
is a work-in-progress, so there's lot more to do.
- Removed fallback template rendering from standalone app. The
standalone app is going to evolve into a base class for starting
new Yancy apps, and this feature does not fit well.
With recent changes to the way Mojolicious routes for requests with
format
parameters the editor no longer retrieves data from the api but instead errors with aTypeError: items is undefined
at/yancy/app.js:693
.As mentioned on IRC:
Yancy/lib/Mojolicious/Plugin/Yancy/resources/public/yancy/app.js
Line 682 in 4211183
could be changed to.
Without this, the request headers are
Accept: */*
andjson
is never selected as a format inYancy::Controller#list
($c->respond_to
).However, Yancy goes to lengths to set the
format
tojson
for api routes inYancy/lib/Yancy/Plugin/Editor.pm
Lines 420 to 457 in 4211183
Mojolicious::Plugin::OpenAPI
reverses this byundef
ingformat
when configuring the route https://github.com/jhthorsen/mojolicious-plugin-openapi/blob/master/lib/Mojolicious/Plugin/OpenAPI.pm#L232-L233M::P::OpenAPI could be patched, but I'll open a PR for a local fix.
The text was updated successfully, but these errors were encountered: