Skip to content
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

Brought back previously reverted changes to elementToStructure() throwing when invoked for an element that allows $text"" #11239

Conversation

oleq
Copy link
Member

@oleq oleq commented Feb 8, 2022

Internal (engine): elementToStructure() should throw when invoked for an element that allows $text. Closes #11163.


For the record, we decided to bring back the error thrown by elementToStructure() when downcasting an element that allows $text but at the same time, we got rid of the warning (validation) in elementToElement() which now works as a workaround for people who cannot use elementToStructure due to the error. This is not perfect but OTOH it is hard to predict how many integrations downcast model elements to structures with text so let's give them some error&warning-free solution.

@oleq oleq marked this pull request as ready for review February 8, 2022 16:19
@oleq oleq merged commit 2a237b7 into ck/10294/reconversion Feb 8, 2022
@oleq oleq deleted the revert-11233-revert-11229-ck/11163-disallowed-text-in-element-to-structure branch February 8, 2022 16:22
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