Skip to content

Could not resolve reference: JSON Pointer evaluation failed while evaluating token "components" against an unexpected Element #10191

@florianmartens

Description

@florianmartens

General:

  • MacOs
  • Browser: Chrome, Safari, Firefox
  • Method of installation: pnpm
  • Swagger-UI version: 5.17.14 (swagger-ui-react)
  • Swagger/OpenAPI version: 3.1.0

Content & configuration

Whenever I try to resolve a component schema:

Screenshot 2024-11-05 at 00 26 48

Describe the bug you're encountering

In my current app, swagger-ui it not able to resolve references whenever an escape sequence is present in my apps query parameters (not in the spec).

This is a dublicate of #9304 . The fix in the issue does not seem to work. Api-dom is locked on version 1.0.0-alpha.10 (after the supposed fix)

To reproduce...

  • Install react (with vite or similar)
  • Render swagger-ui-react with any valid spec
  • Add query params to your url e.g. ?activeElement=%7B"type"%3A"create_client"%7D
  • Refresh browser
  • You now see the errors

What I have tried

  • Swagger-ui instead of swagger-ui-react

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions