12 lines
351 B
Python
12 lines
351 B
Python
from typing import Protocol
|
|
|
|
from app.domain.models import AttributeDefinition, AttributeStatement
|
|
|
|
|
|
class Normalizer(Protocol):
|
|
version: str
|
|
|
|
def validate(self, definition: AttributeDefinition, statement: AttributeStatement) -> AttributeStatement:
|
|
"""Validate an already normalized statement. Must not parse free text."""
|
|
...
|