Registry entry schema
One file per tool in registry/<name>.yaml. Check an entry with relgap registry lint. The schema is served at /schemas/registry-v1.json, and editors that read the yaml-language-server comment check an entry as you type.
yaml
# yaml-language-server: $schema=https://relgap.sasskovacs.dev/schemas/registry-v1.json| Key | Type | Required | Allowed | Description |
|---|---|---|---|---|
aliases | list of strings | Other names that resolve to this tool, such as tf or KUBECTL_VERSION. | ||
bin | list of strings | pattern ^[A-Za-z0-9._-]+$ | Executable names that outdated --binaries looks for. Empty means the tool name. | |
breaking_markers | list of strings | Regular expressions; an entry whose text matches one is breaking, such as ACTION REQUIRED. | ||
eol | object | |||
min_relgap | string | pattern ^[0-9]+\.[0-9]+\.[0-9]+$ | Oldest relgap version that understands this entry. | |
name | string | yes | pattern ^[a-z0-9][a-z0-9._-]*$ | Canonical tool name; must match the file name. |
osv | list of objects | |||
repo | string | yes | pattern ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$ | GitHub owner/repo. |
sources | list of objects | Changelog sources, tried and merged in order. Empty means auto-discovery. | ||
version | object |
eol
| Key | Type | Required | Allowed | Description |
|---|---|---|---|---|
eol.cycle | string | Cycle template such as {major}.{minor}. | ||
eol.product | string | yes | endoflife.date product. |
osv
| Key | Type | Required | Allowed | Description |
|---|---|---|---|---|
osv[].ecosystem | string | yes | OSV ecosystem such as Go, npm, PyPI or crates.io. GIT takes the repository URL as name and queries the version's tag. | |
osv[].name | string | yes |
sources
Changelog sources, tried and merged in order. Empty means auto-discovery.
| Key | Type | Required | Allowed | Description |
|---|---|---|---|---|
sources[].anchor | string | web-doc: id of a version's element on the page, with the path_template placeholders, such as go{version}. | ||
sources[].content | string | web-doc: selector (tag, #id and .class without spaces) of the element to convert. Default main, else body. | ||
sources[].content_dir | string | changelog-file: the Hugo content directory in the repository, such as website/content/en. Default: the path up to the last content/ directory, plus a language directory after it. | ||
sources[].from_heading | string | Heading whose section holds the upgrade notes. | ||
sources[].heading | string | Regular expression for a version's heading; {version} is replaced first. | ||
sources[].ignore_sections | list of strings | Headings, or heading paths joined with " › ", whose entries are dropped. A heading matches when it equals the item or starts with it and a space. | ||
sources[].json | object | structured-json: how each JSON document becomes entries. | ||
sources[].json.heading | string | Field whose value groups entries under a heading, such as type. | ||
sources[].json.items | string | Dotted path to the array of entries; empty means the document is the array. | ||
sources[].json.link | string | Field holding a URL for the entry. | ||
sources[].json.text | string | yes | Entry text with {field} placeholders, such as {category}: {description}. | |
sources[].kind | string | yes | gh-release, changelog-file, structured-json, web-doc, upgrade-guide, upgrade-notes | |
sources[].path_template | string | File path in the repo. Placeholders: {version}, {major}, {minor} (the minor number alone) and {tag}; upgrade-guide also has {prev_minor} (such as 3.5) and {prev_major}. | ||
sources[].ref | string | Git ref; may be a template such as v{major}.{minor}. | ||
sources[].site_url | string | pattern ^https:// | changelog-file: base URL of the project's Hugo site. Hugo ref and relref links in the file point at its pages; without it they keep their text and lose the link. | |
sources[].strip | list of strings | web-doc: selectors of elements dropped before converting, such as a.headerlink. | ||
sources[].url_template | string | pattern ^https:// | https URL on a host relgap allows (go.dev, docs.python.org, api.adoptium.net); same placeholders as path_template. |
Each source kind needs these keys:
| Kind | Required keys |
|---|---|
gh-release | none besides kind |
changelog-file | path_template |
structured-json | json, and one of path_template or url_template |
web-doc | url_template |
upgrade-guide | one of path_template or url_template |
upgrade-notes | from_heading |
version
| Key | Type | Required | Allowed | Description |
|---|---|---|---|---|
version.exclude | string | Regular expression on the tag; matching tags are ignored. | ||
version.extract | string | Regular expression for scheme regex; capture groups are joined with dots. | ||
version.line | string | none, major, minor | Default release line for the end of a range. | |
version.scheme | string | semver, loose, calver, python, regex | How tags are parsed and ordered. Default loose. | |
version.tag_prefix | string or list of strings | Stripped from tags before parsing; tags without it are ignored. A list names every prefix the tags have used, newest first: the longest one a tag starts with is stripped, and "" takes unprefixed tags. | ||
version.universe | string | releases, tags | What defines the versions in a range. Default releases. |