STARIONGROUP / COMET-WebServices-Community-Edition

The Concurrent Design Platform Web Services that are compliant with ECSS-E-TM-10-25 Annex A and Annex C
https://www.stariongroup.eu
Other
11 stars 5 forks source link

Implement validation of ParameterValueSets to make sure only correct values can be posted #335

Closed samatstariongroup closed 8 months ago

samatstariongroup commented 8 months ago

Prerequisites

Description

Currently the server accepts all strings for the various values of a ParameterValueSet. This is now causing issues since some implementations use the long name of an Enumeration instead of the shortname.

Therefore the server cannot trust the API users to send the correct data and validation needs to occur. The following rules apply:

The CDP4-SDK already has the algorithm to check correctness (used in the IME), investigate how this is to be reused

Steps to Reproduce

System Configuration

antoineatstariongroup commented 8 months ago

@samatrhea Should we also validate all ParameterType used in Compound and SampledFunction ParameterType ?