swagger-editor icon indicating copy to clipboard operation
swagger-editor copied to clipboard

Auto-suggest for `$ref` values causes errors in console and doesn't load completion values

Open frantuma opened this issue 2 years ago • 0 comments

Q&A (please complete the following information)

  • OS: Linux Mint
  • Browser: Chrome
  • Version: Version 95.0.4638.69 (Official Build) (64-bit)
  • Method of installation: editor.swagger.io
  • Swagger-Editor version: ?
  • Swagger/OpenAPI version: OAS 3.0.0

Content & configuration

Example Swagger/OpenAPI definition: petstore

Swagger-Editor configuration options: editor.swagger.io

Describe the bug you're encountering

Auto-suggest for $ref values causes errors in console and doesn't load completion values

To reproduce...

Steps to reproduce the behavior:

  1. Open editor.swagger.io (Load petstore yaml if not loaded)
  2. ctrl-space within a $ref value, e.g. at the beginning of the value
  3. See error in console, and empty completion list

Expected behavior

Completion list appears and no errors in console

Screenshots

image

frantuma avatar Nov 03 '21 13:11 frantuma