Investigate If The Model Extension Definition Validation Done In The Editor Can Be Done
Using XSD Validation
------------------------------------------------------------------------------------------------------------
Key: TEIIDDES-1144
URL:
https://issues.jboss.org/browse/TEIIDDES-1144
Project: Teiid Designer
Issue Type: Task
Components: Editors
Affects Versions: 7.6
Reporter: Dan Florian
Assignee: Dan Florian
Fix For: 8.0
The validation being done as the user is editing a MED is done using the
ModelExtensionDefinitionValidator (MEDValidator). This validator tries to recreate in code
what the MED XSD does when the MED file is parsed. The MEDValidator should use XSD
validation libraries to perform validation to guarantee that MED problem markers agree
with those reported in the editor.
Looking into this a bit I found that XSD validation libraries only validate entire
documents. So to validate just an element value or simple type value does not seem
possible. One possible way around this might be to create XML fragments to match the
smaller sections of that document that require validation. Research still needs to be done
on the feasibility of this idea.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira