Skip to content

latest example .ort file does not validate against latest JSON schema #16

@bmaranville

Description

@bmaranville

I just uploaded a schema validator at https://www.reflectometry.org/projects/file_formats/tools/validator.html ... it is using the schema at https://raw.githubusercontent.com/reflectivity/orsopy/main/orsopy/fileio/schema/refl_header.schema.json

I used it to try to validate the example file at https://github.com/reflectivity/orsopy/blob/main/tests/test_example2.ort and it is finding errors with the date-time objects in the example header, all of which are missing timezone information (which is required for it to be a valid date-time string by RFC3339)

Do we want to require this specificity, or should we make a separate validation regex for the JSON schema that accepts dates without timezone information?

The experiment.date field is also failing, as it is a date range and not at all a date-time string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions