HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Vanilla Version 3.3 Problem Accessing APIv2 in dashboard
nithi0105
New
Hi I am trying to run Version 3.3 and when I go to Dashboard --> Settings --> Technical --> APIv2 I get this parser error
Unable to render this definition
The provided definition does not specify a valid version field.
Please indicate a valid Swagger or OpenAPI version field. Supported version fields are swagger: "2.0"
and those that match openapi: 3.0.n
(for example, openapi: 3.0.0
).
I have tried the endpoint http://domain_name/api/v2/open-api/v3 and i am able to access this page but I don't know how to fix this error on my localhost.
0
Comments
Did you update from a previous version of vanilla? The OpenApiApiController was moved at some point so the file may be duplicated in which case you will have to delete the one in vanilla/applications/dashboard/controllers.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
When I deleted the OpenApiApiController it wasn't able to find the API definition at all, there was no duplicated file.
Is there another way for me to update the API definition to http://domain_name/api/v2/open-api/v3?
Having the same problem after upgrade to 2021.003
@nithi0105 Do you have YAGA installed?
There is a parser issue with openapi that is going to be resolved in the next release. I fixed by deleting then restoring files yaga-best-users.yml and yaga-best-users.yml in plugins>yaga>openapi
@somerandomfellow i don't have YAGA installed, thank you for offering help though.