[
https://issues.jboss.org/browse/TEIIDDES-1144?page=com.atlassian.jira.plu...
]
Dan Florian updated TEIIDDES-1144:
----------------------------------
Assignee: Barry LaFond (was: Dan Florian)
Not sure if these issues are still valid or not. Assigning to Barry to edit and reassign.
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
Security Level: Public(Everyone can see)
Components: Editors
Affects Versions: 7.6
Reporter: Dan Florian
Assignee: Barry LaFond
Fix For: Future
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 was sent by Atlassian JIRA
(v6.2.6#6264)