Skip to content

New builtin schema: compose-spec #513

@edgarrmondragon

Description

@edgarrmondragon

Would it make sense to add the schema for docker-compose.yml files?

I think the regex for these files is something like

^([\.a-zA-Z0-9_-]*docker-)?compose(\.[\.a-zA-Z0-9_-]*)?\.(yml|yaml)$

at least following VSCode's filename patterns1

        "filenamePatterns": [
          "compose.yml",
          "compose.yaml",
          "compose.*.yml",
          "compose.*.yaml",
          "*docker*compose*.yml",
          "*docker*compose*.yaml"
        ],

The spec lives in https://github.com/compose-spec/compose-spec/blob/main/schema/compose-spec.json and seems to be well-maintained.

EDIT: Forgot to mention the schema is also in schemastore but just references the one in compose-spec repo.

Happy to work on a PR following the contrib doc if you're open to it.

Thanks for your work on this project!

Footnotes

  1. https://github.com/microsoft/vscode/blob/37249cba4aaffc7ea0ec2a9e7c2ae2ccb595a485/extensions/yaml/package.json#L23-L30

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions