API Reference > ecschema-editing > Validation > validateCustomAttributeInstance validateCustomAttributeInstance Function Validates a custom attribute instance and yields EC-500, EC-501, and EC-502 rule violations. validateCustomAttributeInstance(container: CustomAttributeContainerProps, customAttribute: CustomAttribute): AsyncIterable<CustomAttributeContainerDiagnostic<any[]>> Parameter Type Description container CustomAttributeContainerProps customAttribute CustomAttribute Returns - AsyncIterable<CustomAttributeContainerDiagnostic<any[]>> Defined in ecschema-editing/src/Validation/ECRules.ts Line 595 Last Updated: 11 June, 2024