Skip to content

Comments

Improvements to interface name validation#2785

Open
jstone-lucasfilm wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
jstone-lucasfilm:dev_interface_validate
Open

Improvements to interface name validation#2785
jstone-lucasfilm wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
jstone-lucasfilm:dev_interface_validate

Conversation

@jstone-lucasfilm
Copy link
Member

This changelist improves the validation of interface name attributes in ValueElement::validate, including the following specific changes:

  • Replace getAncestorOfType<NodeGraph> with getAncestorOfType<GraphElement>, allowing interface names to be validated within any graph scope, including the document scope.
  • When a value element is a direct child of a graph element, resolve its interface name against the parent graph rather than the containing graph, fixing validation of nodegraph inputs that reference document-level inputs.
  • When no declaration is found for a graph element, fall back to the graph element itself as the declaration scope.

Collectively, these improvements address issue #1832.

This changelist improves the validation of interface name attributes in `ValueElement::validate`, including the following specific changes:

- Replace `getAncestorOfType<NodeGraph>` with `getAncestorOfType<GraphElement>`, allowing interface names to be validated within any graph scope, including the document scope.
- When a value element is a direct child of a graph element, resolve its interface name against the parent graph rather than the containing graph, fixing validation of nodegraph inputs that reference document-level inputs.
- When no declaration is found for a graph element, fall back to the graph element itself as the declaration scope.

Collectively, these improvements address issue AcademySoftwareFoundation#1832.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant