Canadian-Geospatial-Platform / geoview

Canadian Geospatial Platform Viewer / Visualiseur de la Plateforme Géospatiale Canadienne
Other
22 stars 32 forks source link

Input and internal config validation #2288

Closed ychoquet closed 3 months ago

ychoquet commented 3 months ago

The configuration validator can now validate two types of schema (input and internal). To achieve this, the JSON file describing the schema contains conditional instructions to select the type of validation to be performed according to the presence of attributes in the JSON to be processed. The input and internal schemas differ for only two structures, and only for localized strings. The current implementation uses two different properties to activate internal validation.

To unify this selection process, we want it to use a single property (useInternalSchema). This change will simplify the description and understanding of the code performing this task.