Skip to content

Usage with Multiple Schemas in a File? #1082

@mahyarmirrashed

Description

@mahyarmirrashed

Summary

I'm doing something like this:

apiVersion: apps/v1
kind: Deployment
metadata:
  ...
spec:
  ...
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  ...
spec:
  ...

I'm using schema-companion.nvim to dynamically set the schema.

I'm wondering what I would need to change in there so that we have proper schema matching when there is the --- document separator in the YAML files? Currently, the schema is being applied to the whole file, and that's not what I want.

I don't want to have to put modelines everywhere as well.

Suggestions or clarifications would be great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions