Currently there is no way to communicate that parameters field in spki::AlgorithmIdentifier must not be specified. This is useful for e.g. Ed25519 keys where the algorithm OID contains all information needed and the RFC specifies that:
the parameters MUST be absent.
Source: https://datatracker.ietf.org/doc/html/rfc8410#section-3