pub fn validate_capabilities(
caps: &CapabilitiesDocument,
) -> Result<(), AcdpError>Expand description
Validate a acdp_types::CapabilitiesDocument against the
runtime constraints listed in RFC-ACDP-0007 §3.
The JSON schema enforces types; this validator enforces the constraints the schema cannot express:
acdp_versionmatches^\d+\.\d+\.\d+$.registry_didis a v0.1.0did:webDID.supported_signature_algorithmsMUST contain"ed25519".supported_did_methodsMUST contain"did:web".profilesMUST contain"acdp-registry-core".limits.max_embedded_bytesMUST equal exactly 65536.- If
supports_idempotency_keyistrue,limits.idempotency_key_ttl_secondsMUST be present and in86400..=604800. limits.max_payload_bytesMUST be at least 1024 bytes.
Wired into acdp::client::RegistryClient::capabilities and
acdp::client::CrossRegistryResolver::resolve.