Closed wowasa closed 6 years ago
For a first attempt, make all fields mandatory.
Order of parameters should be fixed. Order of field definitions shouldn't.
I just replaced yesterday's issue_124 branch by a new one which doesn't take the path to the schema as a function parameter but reads the schema by classloader by default from resources in vlo-commons. Therefore only a modification in VloConfigMarshaller. In my view this makes more sense since the schema shouldn't be modified by end-users
I agree, the schema can be fixed. What we still need to define is the behaviour in case of a validation error - should this terminate the unmarshalling which effectively means no further processing will be possible as without VloConfig we cannot do much? I think it would be better to ljust og any errors at ERROR
level but try to continue unmarshalling. This behaviour can be defined by implementing and injecting a ValidationEventHandler
. As far as I know the default handler terminates on validation error.
good idea! I'm going to modify it in this way
merged into development (see #174)
Since fieldnames are configurable now via VloConfig.xml (see #112 ) we need a validation of the VloConfig to assure that...
The issue necessitates a code review since most mandatory keys exists due to the fact that we create ImmutableSets (f.e. in eu.clarin.cmdi.vlo.wicket.panels.search.AdvancedSearchOptionsPanel) which don't allow null values. Here we have the options: