plantbreeding / IPK-BrAPI-Validator

MIT License
4 stars 3 forks source link

Incorrect 'wrong status code' for Server Info #81

Open matthijsbrouwer opened 3 months ago

matthijsbrouwer commented 3 months ago

I encountered an issue when testing my flask-restx based BrAPI server. Accessing the URL results in a "wrong status code" error for the /serverinfo endpoint.

Server Info (0/1)
GET /serverinfo (wrong status code)
Test: Status code should be 200

Upon investigating the log files from the BrAPI server, I found a request to:

GET /my-location/brapi/serverinfo?json=

On my server this request does not return a 200 status code and instead results in an error due to the unknown json parameter. Shouldn't the json parameter be omitted by the validator?