qecx.DecoderConfigValidator¶
- class qecx.DecoderConfigValidator¶
Bases:
ABCBase for decoder-specific validation of one decoder’s config body.
A concrete validator knows what a single reserved decoder slug requires of its config body (which tags must be present and what type their values carry) and reports those decoder-specific findings. The findings use the generic rule ids
DECODER_REQUIRED_TAGandDECODER_TAG_TYPEowned here, with the decoder named in the path and message, so the rule-id set does not grow as decoders are added.- Variables:
- abstractmethod validate(body, data, *, json_path)¶
Validate one decoder’s config body against its requirements.
- Parameters:
- Returns:
The decoder-specific findings, using rule ids
DECODER_REQUIRED_TAGandDECODER_TAG_TYPE; empty when the body satisfies the decoder’s requirements.- Return type: