pub fn validate_type_kind<S, 'a>(
    context: &SchemaContext,
    type_kind: &TypeKind<<S as CustomSchema>::CustomTypeKind<LocalTypeId>, LocalTypeId>
) -> Result<(), SchemaValidationError>
where S: CustomSchema,