Skip to content

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
KeyTypeRequiredAllowedDescription
aliaseslist of stringsOther names that resolve to this tool, such as tf or KUBECTL_VERSION.
binlist of stringspattern ^[A-Za-z0-9._-]+$Executable names that outdated --binaries looks for. Empty means the tool name.
breaking_markerslist of stringsRegular expressions; an entry whose text matches one is breaking, such as ACTION REQUIRED.
eolobject
min_relgapstringpattern ^[0-9]+\.[0-9]+\.[0-9]+$Oldest relgap version that understands this entry.
namestringyespattern ^[a-z0-9][a-z0-9._-]*$Canonical tool name; must match the file name.
osvlist of objects
repostringyespattern ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$GitHub owner/repo.
sourceslist of objectsChangelog sources, tried and merged in order. Empty means auto-discovery.
versionobject

eol ​

KeyTypeRequiredAllowedDescription
eol.cyclestringCycle template such as {major}.{minor}.
eol.productstringyesendoflife.date product.

osv ​

KeyTypeRequiredAllowedDescription
osv[].ecosystemstringyesOSV ecosystem such as Go, npm, PyPI or crates.io. GIT takes the repository URL as name and queries the version's tag.
osv[].namestringyes

sources ​

Changelog sources, tried and merged in order. Empty means auto-discovery.

KeyTypeRequiredAllowedDescription
sources[].anchorstringweb-doc: id of a version's element on the page, with the path_template placeholders, such as go{version}.
sources[].contentstringweb-doc: selector (tag, #id and .class without spaces) of the element to convert. Default main, else body.
sources[].content_dirstringchangelog-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_headingstringHeading whose section holds the upgrade notes.
sources[].headingstringRegular expression for a version's heading; {version} is replaced first.
sources[].ignore_sectionslist of stringsHeadings, 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[].jsonobjectstructured-json: how each JSON document becomes entries.
sources[].json.headingstringField whose value groups entries under a heading, such as type.
sources[].json.itemsstringDotted path to the array of entries; empty means the document is the array.
sources[].json.linkstringField holding a URL for the entry.
sources[].json.textstringyesEntry text with {field} placeholders, such as {category}: {description}.
sources[].kindstringyesgh-release, changelog-file, structured-json, web-doc, upgrade-guide, upgrade-notes
sources[].path_templatestringFile 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[].refstringGit ref; may be a template such as v{major}.{minor}.
sources[].site_urlstringpattern ^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[].striplist of stringsweb-doc: selectors of elements dropped before converting, such as a.headerlink.
sources[].url_templatestringpattern ^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:

KindRequired keys
gh-releasenone besides kind
changelog-filepath_template
structured-jsonjson, and one of path_template or url_template
web-docurl_template
upgrade-guideone of path_template or url_template
upgrade-notesfrom_heading

version ​

KeyTypeRequiredAllowedDescription
version.excludestringRegular expression on the tag; matching tags are ignored.
version.extractstringRegular expression for scheme regex; capture groups are joined with dots.
version.linestringnone, major, minorDefault release line for the end of a range.
version.schemestringsemver, loose, calver, python, regexHow tags are parsed and ordered. Default loose.
version.tag_prefixstring or list of stringsStripped 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.universestringreleases, tagsWhat defines the versions in a range. Default releases.