openPMD / openPMD-validator

:ballot_box_with_check: Validator and Example Scripts
ISC License
4 stars 8 forks source link

Path: End in Separator #44

Closed ax3l closed 6 years ago

ax3l commented 6 years ago

Enforce path attributes end in separator.

This will throw a clean formatting error.

Related to #43

RemiLehe commented 6 years ago

The PR is OK ; however this will typically print:

Error: Attribute meshesPath in some_file.h5 does not satisfy format ('meshes' should be in format '^.*\/$')!"

To most users (not used to regex), this might look strange...

Any easy suggestion to improve this?

ax3l commented 6 years ago

Yes! We could generally add a hand-written error message for such places! :) #46