clarin-eric / component-registry-rest

Component Registry back end
GNU General Public License v3.0
2 stars 1 forks source link

Expand components before validation #18

Closed twagoo closed 7 years ago

twagoo commented 8 years ago

https://trac.clarin.eu/ticket/496

Some of validation in the general component schema (through schematron rules) can only be carried out properly on fully expanded components (specifically the constraint on sibling names, not allowing duplicate names on one level). Therefore the expanded version of a component needs to be sent to the validator on save or import (consider validating first in its unexpanded state, then its expanded state).

twagoo commented 7 years ago

Fixed as of 779630b Changes also include quite some refactoring in the area of validation.