elements icon indicating copy to clipboard operation
elements copied to clipboard

Invalid JSON pointer when using model reference

Open dingyaguang117 opened this issue 1 year ago • 3 comments

When I switch to an API which include model reference, the model doesn't display, and got "Invalid JSON pointer". It can display normally when the API page is the first page I visit (input the URL and press Enter).

image

When I use elements 7.6.4, I got "Error: Invalid JSON pointer" as well, but after a while, the model will display. Maybe elements 7.6.4 will re-render after reference was loaded.

Steps to Reproduce

  1. Open any API
  2. Switch to an API include model reference. This error will come.

Environments

Elements: 8.3.3

dingyaguang117 avatar Jul 22 '24 11:07 dingyaguang117

@dingyaguang117 Can we get the OpenAPI + JSON Schema files with the structure you're using that cause this issue?

And just to clarify which version are you getting this error on?

mnaumanali94 avatar Aug 09 '24 11:08 mnaumanali94

@dingyaguang117 Any update here?

mnaumanali94 avatar Aug 16 '24 11:08 mnaumanali94

demo.zip

@mnaumanali94
This is the demo, Thanks!

dingyaguang117 avatar Aug 16 '24 11:08 dingyaguang117