validate_version_supported

Function validate_version_supported 

Source
pub fn validate_version_supported(
    version: &SchemaVersion,
    span: Span,
) -> Result<(), ParseError>
Expand description

Validate that a parsed version is supported by this framework.

§Arguments

  • version - Parsed version to validate
  • span - Source location for error reporting

§Returns

Ok(()) if the version is supported, Err(ParseError) if the version is newer than MAX_SUPPORTED_VERSION.