PolicyEngine / openfisca-tools

Python tools for enhancing OpenFisca country packages.
1 stars 1 forks source link

Automatically list-ify single references #43

Open nikhilwoodruff opened 2 years ago

nikhilwoodruff commented 2 years ago

Often when writing parameter YAML files, we specify an object rather than a list of objects:

reference:
  title: x
  href: y

instead of

reference:
  - title: x 
    href: y

We should have a f: ParameterNode -> ParameterNode function that automatically applies this correction.