-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ogma-core
: Spec2Copilot translator does not sanitize handler names
#127
Comments
Change Manager: Confirmed that the issue exists. |
Technical Lead: Confirmed that the issue should be addressed. |
Technical Lead: Issue scheduled for fixing in Ogma 1.3. Fix assigned to: @ivanperez-keera. |
The Spec to Copilot translator is not sanitizing handler names. This causes the Copilot generated code not to compile if the property identifiers have a hyphen. This commit modifies the handler association in the trigger definitions in the generated Copilot code so that the handler names are sanitized.
Implementor: Solution implemented, review requested. |
Change Manager: Verified that:
|
Change Manager: Implementation ready to be merged. |
Description
The Spec to Copilot translator is not sanitizing handler names. This causes the Copilot generated code not to compile if the property identifiers have a hyphen.
Type
Additional context
None.
Requester
Method to check presence of bug
Compiling a specification with a hyphen in a requirement name produces Copilot code that does not compile:
Expected result
The execution above should produce a Copilot specification that can be compiled and where
-
has been converted to an underscore.Desired result
The execution above should produce a Copilot specification that can be compiled and where
-
has been converted to an underscore.Proposed solution
Modify the Spec translator to sanitize handler names the same way that the ROS backend does.
Further notes
None.
The text was updated successfully, but these errors were encountered: