Release 0.0.4
hmusavi
released this
17 May 13:36
·
56 commits
to master
since this release
- Config.ini changes
- Added
metadata.request
elements to config.ini - Eliminated the Path option in config.ini because the section keys have to be unique and there
is always a possibility that two keys at different structures be named the same. SO now the section key
has to be the ful path of the field name. - Took advantage of python configuration file variable dereferencing
config.ini
then_part
can now be an empty array or completely missing which would mean that the field is
optional if theif_part
condition is met.- The
fieldValue
of theifPart
can also be eliminated which would mean that the if the field identified by
thefieldName
of theifPart
exists, the field has to be validated. If it the field doesn't exist,
it is considered optional and no validation error is issued. - Fields can now be specified to allow empty value by setting
AllowEmpty = True
. Currently only
elevation
is allowed to be empty.
- Added
- Added field info to
FieldValidationResult
(renamed from ValidationResult) objects - Added serialId to the
RecordValidationResult
(NEW) object. This replaces RecordID. Field, FieldValidationResult and RecordValidationResult
objects now have__str__()
method
which allows them to be serialized for printing purposes.- Test files
good.json
andbad.json
were updated with new tests for Broadcast TIM