Obtain validation information.
Validation may run against the type alone or with a specific instance of the behavior. The latter option allows for per-instance specialization.
the behavior type to analyze
Optional
instance: Behavioroptional concrete instance of the behavior
Analyzes a ClusterBehavior implementation to ensure it conforms to the Matter specification.
As this API is accessible via vanilla JavaScript, validation includes tests for errors that TypeScript otherwise prevents.
Records elements supported and a list of errors if validation fails.