Skip to content

Add a mechanism for controllers to dynamically introspect a device API and validate it against statically defined attributes #124

@GDYendell

Description

@GDYendell

Controllers that dynamically create attributes but also use them explicitly in the code currently have to rely on the statically defined attribute being replaced with a dynamic attribute that has a handler to communicate with the device. Instead of just overwriting the attributes they should instead call a a new method to validate against the static type definition (e.g. do the underlying types match) and then update / replace the attribute with the full metadata from the device. If it does not match then it should raise an exception to terminate the application.

Acceptance Criteria

  • A method exists to validate an introspected API against a statically defined attribute to ensure type correctness at runtime

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions