utils.validate_fields_in_model()
Checks that all provided fields are present in the dto_model.
Usage
utils.validate_fields_in_model(
*,
model,
fields,
)Raises IndexFieldsInvalidError otherwise.
Fields which start with $ are excluded from consideration. For fields with dot notation, only the top-level field will be validated.