Redocly / redocly-vs-code

Redocly VS Code extension
35 stars 6 forks source link

info fields for cursor context form not working #22

Open adamaltman opened 2 years ago

adamaltman commented 2 years ago

What happened?

  1. Start with an API definition without any info.contact or info.license sections.
  2. Open cursor context
  3. Go to info
  4. Fill contact and license fields.
  5. Error: (YAML didn't change -- the sections already exist, then they do change, but it doesn't create the sections when they are filled out)

See the screenshot below.

What should have happened instead?

The YAML should change with the contact and license information.

openapi: 3.1.0
info:
  description: Document the EU API quickly
  title: EU Documents
  version: '1.0'
  contact:
    name: Test
    email: test@example.com
    url: https://redocly.com
  license:
    name: Test
    url: license.com

Minimal reproducible OpenAPI snippet

https://gist.github.com/adamaltman/66a0dacbc3ff769304db3d04456b5a47

Screenshots

image

Additional context

The key part is when there are no contact and license nodes to begin with...