Documentation Language: Swift

Method

validate(_:)

Validate an object against its constraints.

func validate(_ object: any EObject) async throws -> [ECoreValidationError]

Parameters

object

The object to validate

Return Value

Array of validation errors (empty if valid)

Discussion