inbo / whip

✅ Human and machine-readable syntax to express specifications for data
MIT License
7 stars 0 forks source link

Handling integers inside schema definition #22

Open stijnvanhoey opened 6 years ago

stijnvanhoey commented 6 years ago

Consider the following example:

coordinateUncertaintyInMeters:
  empty: true
  if:
    - verbatimCoordinateSystem:
        allowed: UTM 1km
      numberformat: x
      allowed: 707
    - verbatimCoordinateSystem:
        allowed: UTM 5km
      numberformat: x
      allowed: 3536

Where the allowed values are somteimes integers (parsing this with default yaml-libraries). The question is how to handle this: