Skip to main content

Crate commonmeta_schema

Crate commonmeta_schema 

Source

Constants§

COMMONMETA_SCHEMA_V1_0
Embedded Commonmeta schema v1.0. Records stamp schema_version as https://commonmeta.org/commonmeta_v1.0.json.

Statics§

FIXTURES
The complete tree of Commonmeta conformance fixtures, embedded at compile time. Organized as <format>/<name>.<ext> (e.g. commonmeta/journal_article.json, crossref/journal_article.json, orcid/0000-0002-0068-716X.xml).

Functions§

fixture_bytes
Return an embedded fixture’s raw bytes by relative path, e.g. fixture_bytes("commonmeta/journal_article.json").
fixture_str
Return an embedded fixture’s UTF-8 contents by relative path, e.g. fixture_str("crossref/journal_article.json"). Returns None if the file is absent or not valid UTF-8.
schema
Return an embedded schema by Commonmeta version string.