API Reference > ecschema-metadata > 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 core/ecschema-metadata/src/Validation/ECRules.ts Line 612 Last Updated: 12 June, 2024