odcs 0.9.1

Reference implementation of the Open Data Contract Standard (ODCS)
Documentation
1
2
3
4
5
6
7
8
9
10
//! Version handling for ODCS documents.

/// Supported upstream ODCS `apiVersion` values for this implementation.
pub const SUPPORTED_API_VERSIONS: &[&str] = &["v3.1.0"];

/// Returns `true` when the API version is supported by this crate.
#[must_use]
pub fn is_supported_api_version(api_version: &str) -> bool {
    SUPPORTED_API_VERSIONS.contains(&api_version)
}