Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • funkwhale funkwhale
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 407
    • Issues 407
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • funkwhalefunkwhale
  • funkwhalefunkwhale
  • Issues
  • #1171
Closed
Open
Issue created Jul 06, 2020 by David Weston@Westie

OpenAPI/Swagger file has invalid JSON pointer syntax

/label Type: Bug Status: Need triage

Steps to reproduce

  1. Go to https://apitools.dev/swagger-parser/online/
  2. Attempt validation using https://docs.funkwhale.audio/swagger/swagger.yml
  3. 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?

Assignee
Assign to
Time tracking