Skip to content

Conversation

settermjd
Copy link

@settermjd settermjd commented Aug 21, 2025

The original Prompt tag's attribute mapping resulted in the "for" attribute being serialised incorrectly as "for_". According to the Voice Prompt documentation this is incorrect. It must be serialised as "for".

This change corrects the serialisation of the verb to correctly serialise the attribute.

Resolves: #298

Fixes

A short description of what this PR does.

Checklist

  • I acknowledge that all my contributions will be made under the project's license
  • I have made a material change to the repo (functionality, testing, spelling, grammar)
  • I have read the Contribution Guidelines and my PR follows them
  • I have titled the PR appropriately
  • I have updated my branch with the main branch
  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary documentation about the functionality in the appropriate .md file
  • I have added inline documentation to the code I modified

If you have questions, please file a support ticket, or create a GitHub Issue in this repository.

The original Prompt tag's attribute mapping resulted in the "for"
attribute being serialised incorrectly as "for_". According to the Voice
Prompt documentation this is incorrect. It must be serialised as "for".

This change corrects the serialisation of the verb to correctly
serialise the attribute.

Resolves: twilio#298
Signed-off-by: Matthew Setter <matthew@matthewsetter.com>
@settermjd settermjd changed the title Fix: Bug serialising TwiML Voice Prompt verb's for attribute fix: Bug serialising TwiML Voice Prompt verb's for attribute Aug 21, 2025
@settermjd
Copy link
Author

I've not added inline documentation to the code I modified, as there didn't seem to be value in doing so. However, if this is incorrect, please let me know. I'm more than happy to do so if need be.

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.

Problem serialising VoicePrompt structs to XML
1 participant