VEuPathDB / EdaSubsettingService

A REST service to provide data and subsetting in the Exploratory Data Analysis Workspace
Apache License 2.0
0 stars 0 forks source link

Variable checks for null values (and no longer provide default if wrong format) #38

Closed ryanrdoherty closed 3 years ago

ryanrdoherty commented 3 years ago

Add checks for required values (with typing where appropriate), which were previously missing.

@d-callan, hopefully once Jay reloads all the studies, this can be merged and 'released' to QA. Can just hit the

GET /studies/<studyId>

endpoint for each study to see if it is compliant. Will get a 500 if not.

d-callan commented 3 years ago

added the variable id to the existing messaging, for convenience in debugging.

also switched Long().parseLong() to BigDecimal().longValueExact() in order to support values reported in scientific notation.