Skip to content

Code completion in referenced files #314

@hcomnetworkers

Description

@hcomnetworkers

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions