Skip to content

Remote-matching parser tolerates misformed requests #33

Description

@buske

The parsing appears to be tolerant of deviations from the MME API in two ways:

  1. Trailing commas appears to be tolerated, e.g.:
"features": [{...}, {...}, ]
                         ^
  1. the "genes" property is allowed to be a string, rather than enforcing it as an object. E.g., the following is currently tolerated:
    {"gene": "SRCAP"}

while the following is currently required by the v1.0 spec:
{"gene": {"id": "SRCAP"}}

This caused confusion while trying to test a request against another service. It validated against localhost, but caused errors against the other service.

(see #34)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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