Skip to content

Json Validator webservice to relaxed #29

@FabianMauz

Description

@FabianMauz

Hi EnzymeML team

i may faced an issue with your online json validator at: https://enzymeml.org/validation/

I have a very simple document:

{  "version" : "2.0",
  "name" : "Example Document",
  "creators" : [ ],
  "vessels" : [ {
    "id" : "v-1",
    "name" : "Vessel-001",
    "volume" : 40.0,
    "unit" : {
      "id" : "mg",
      "name" : "milligram",
      "baseUnits" : [ {"kind" : "GRAM","exponent" : 0.0,"multiplier" : 0.0, "scale" : -3.0 } ]
    },
    "constant" : true
  }]}

There are two issues with that snippet: the base units are labeld with baseUnit instead of base_units and the kind is GRAM instead of gram. While i could understand that upper and lowercase is not an issue in the validator but the camelcase vs. snakecase should trigger an validation error.

When i am validating the document against the shema at https://www.jsonschemavalidator.net/ it will throw the expected errors.

Thank you

Fabian

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