Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code completion in referenced files #314

Open
hcomnetworkers opened this issue Aug 31, 2020 · 0 comments
Open

Code completion in referenced files #314

hcomnetworkers opened this issue Aug 31, 2020 · 0 comments

Comments

@hcomnetworkers
Copy link

Is there any way to enable code-completion for a yaml-file that only contains e.g. schemas?

For example, I have a Foo.yml with:

openapi: 3.0.0
components:
  schemas:
    foo:
      type: object
      properties:
        id:
          $ref: './Common.yml#/uuid'

And a Common.yml with:

uuid:
  type: string
  pattern: '^[A-F0-9]{32}$'

The code-completion works great in Foo.yml, but surely not in Common.yml because that file proably does not look like anything for the intellij-swagger-plugin.

Is there maybe an annotation that could be used to enable code-completion? For example, by putting an #language=openapi-schema-definitions in the first line of Common.yml?

If not, please see this as a feature request :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant