Skip to content

Check that data_file has file extension .yaml or .json #57

@GraemeWatt

Description

@GraemeWatt

Other data file extensions than .yaml and .json are currently accepted by the validator (e.g. .yalm) but these data files are then not included in the tarfile prepared by the hepdata-converter-ws-client package (see this line). Consequently, file conversion fails with a FileNotFoundError error message from this line of the hepdata-converter package. An example is https://www.hepdata.net/record/85727?version=2 (data files with extension .yalm) fixed in https://www.hepdata.net/record/85727?version=3 (data files with extension .yaml).

A "pattern": "^.+\\.(yaml|json)$" should be specified for data_file in the JSON schema:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions