Skip to content

CDN for schema.json to enable autocompletion in YAML server #2162

@demula

Description

@demula

At the moment YAML completion can be achieved by adding the following on top of the package config files:

# yaml-language-server: $schema=https://github.com/chainguard-dev/melange/raw/refs/heads/main/pkg/config/schema.json
package:

It works as it is but it feels wrong to use Github repo content delivery as something that potentially have many download requests.

The proposal would be to move this file to a CDN with a domain that Chainguard might have for this purposes.

An example would be how the guys over go-task do it:

# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"

source

Since Melange is public, maybe a github-pages deployment would do the trick without having to provide your own CDN?

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