elixir-cloud-aai / drs-filer

Lightweight, flexible Flask/Gunicorn-based GA4GH DRS implementation
Apache License 2.0
5 stars 8 forks source link

Raise 400 error if any additional properties are passed in the POST/PUT request #19

Closed sarthakgupta072 closed 3 years ago

sarthakgupta072 commented 3 years ago

Only allow data that conforms with the schema.

By default additionalProperties is set to true in OpenAPI. This also allows additional properties which are not specified in the schema.

The fix for this would be set that property to false in the POST/PUT schema