OpenAPI/Swagger file has invalid JSON pointer syntax
/label Type: Bug Status: Need triage
Steps to reproduce
- Go to https://apitools.dev/swagger-parser/online/
- Attempt validation using https://docs.funkwhale.audio/swagger/swagger.yml
- Error happens
What happens?
An error occurs.
Invalid $ref pointer "OAuthApplication". Pointers must begin with "#/"
Error: Invalid $ref pointer "OAuthApplication". Pointers must begin with "#/"
at o (https://apitools.dev/swagger-parser/online/js/bundle.min.js:1:73766)
at https://apitools.dev/swagger-parser/online/js/bundle.min.js:17:227596
SyntaxError: Invalid $ref pointer "OAuthApplication". Pointers must begin with "#/"
at Function.o [as syntax] (https://apitools.dev/swagger-parser/online/js/bundle.min.js:1:73766)
at Function.Pointer.parse (https://apitools.dev/swagger-parser/online/js/bundle.min.js:1:23112)
at Pointer.resolve (https://apitools.dev/swagger-parser/online/js/bundle.min.js:1:22228)
at $Ref.resolve (https://apitools.dev/swagger-parser/online/js/bundle.min.js:1:23871)
at $Refs._resolve (https://apitools.dev/swagger-parser/online/js/bundle.min.js:1:26088)
at dereference$Ref (https://apitools.dev/swagger-parser/online/js/bundle.min.js:1:13257)
at crawl (https://apitools.dev/swagger-parser/online/js/bundle.min.js:1:12993)
at crawl (https://apitools.dev/swagger-parser/online/js/bundle.min.js:1:13070)
at crawl (https://apitools.dev/swagger-parser/online/js/bundle.min.js:1:13070)
at crawl (https://apitools.dev/swagger-parser/online/js/bundle.min.js:1:13070)
What is expected?
Successful validation
Context
I'm attempting to create a bridge between my Sonos set up at home and my Funkwhale installation. I've already got a semi-working set up using Funkwhale's implementation of the Subsonic API however Funkwhale's API appears to be a better API to use, especially as the Subsonic API lacks pagination.
However, the swagger.yml file (and its dependencies) have incorrect JSON pointers, causing errors:
Example:
- $ref: "./api/definitions.yml#OAuthApplication"
Should be:
- $ref: "./api/definitions.yml#/OAuthApplication"
Funkwhale version(s) affected: Latest?