Skip to content

validation of bioEntity response

this response causes problems:

``` { "id": 63221, "model": 174, "glyph": null, "submodel": null, "compartment": null, "elementId": "sa1", "x": 281.0, "y": 140.5, "z": 1, "width": 90.0, "height": 25.0, "fontSize": 12.0, "fontColor": { "alpha": 255, "rgb": -16777216 }, "fillColor": { "alpha": 255, "rgb": -39322 }, "borderColor": { "alpha": 255, "rgb": -16777216 }, "visibilityLevel": "0", "transparencyLevel": "0", "notes": "", "symbol": null, "fullName": null, "abbreviation": null, "formula": null, "name": "antiRNa_Glyph1", "nameX": 281.0, "nameY": 140.5, "nameWidth": 90.0, "nameHeight": 25.0, "nameVerticalAlign": "MIDDLE", "nameHorizontalAlign": "CENTER", "synonyms": [], "formerSymbols": [], "activity": false, "lineWidth": 1.0, "complex": null, "initialAmount": 0.0, "charge": null, "initialConcentration": null, "onlySubstanceUnits": false, "homodimer": 1, "hypothetical": null, "boundaryCondition": false, "constant": false, "substanceUnits": null, "modificationResidues": [ { "id": 63826, "idModificationResidue": "tr1", "name": "", "x": 281.0, "y": 135.5, "z": 2, "width": 20.25, "height": 10.0, "species": 63221, "borderColor": { "alpha": 255, "rgb": -16777216 }, "fillColor": { "alpha": 255, "rgb": -1 }, "fontSize": 10.0, "sboTerm": "SBO:0000335", "size": 202.5, "elementId": "tr1" } ], "references": [], "sboTerm": "SBO:0000334", "compartmentName": null, "complexName": null } ```
_app-79e2add18ed69869.js:13 Error on parsing data ZodError: [
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": [
      "stringType"
    ],
    "message": "Required"
  }
]
    at get error (_app-79e2add18ed69869.js:30:42573)
    at r (_app-79e2add18ed69869.js:13:124560)
    at _app-79e2add18ed69869.js:13:33563