Skip to content

v0.33.0

Choose a tag to compare

@github-actions github-actions released this 06 Oct 01:25
· 111 commits to main since this release
a35af94

What changed for publishers

ovdb publisher check now understands a database descriptor (ovdb-database.json) listed in OVDB.md beside its manifest, and judges it as the OVDB Directory does. Before, the descriptor was judged as a second manifest and the repository was refused.

Accepted now

  • A repository that lists one manifest and one descriptor in publish, when the two agree with each other. Five of the six repositories registered in the Directory (adventureworks, chinook, northwind, pubs, sakila) now pass at their registered commits. The sixth (employees) is still refused for its CC-BY-SA-3.0 licence.
  • With a descriptor beside it, the manifest's discovery no longer has to be on the origin of its url.

Refused, each at the descriptor's own line

  • Invalid JSON, a wrong format, a missing or empty id, localId, serverId, serverDbBaseUrl or apiUrl.
  • id that is not the manifest's url; a localId outside the pattern; a server field on another host than serverId; a discovery that is not the manifest's.
  • More than one descriptor, or a descriptor beside more than one manifest (a limit of this check).

What a pass means, and does not mean
Exit 0 means the files in the repository agree with each other and with the rules that can be checked offline. It does not mean the Directory accepts the repository: the check cannot see the registry record, the hosted server, or other registered databases. In particular it assumes the registry record names the descriptor listed in OVDB.md.

Known gaps in this version (Go accepts, the Directory refuses)

  • A meaning file with no concepts list is accepted here; the Directory refuses it. A fix is in review (#63).
  • The check does not yet judge the contents of the meaning file beyond its id, license and models: concept shape, duplicate concept ids and the bindings of concepts to model entities and properties are checked by the Directory and not here. Porting them is planned.

For --json consumers

  • manifests now counts manifests only. A repository with a descriptor reports "manifests": 1, "descriptors": 1 where it reported "manifests": 2. descriptors is new and is omitted when zero.
  • New rule values: descriptor-json, descriptor-format, descriptor-required, descriptor-id, descriptor-local-id, descriptor-url, descriptor-origin, descriptor-discovery, repo-descriptor.
  • schema stays 1. Exit codes are unchanged.

Changelog

  • a35af94 feat: judge a database descriptor beside its manifest as the Directory does (#62)