metrumresearchgroup / yspec

Data Specification for Pharmacometrics
https://metrumresearchgroup.github.io/yspec
5 stars 2 forks source link

Fix/non atomic values #108

Closed kylebaron closed 2 years ago

kylebaron commented 2 years ago

Summary

Basically, when values are coded like this:

values: [ male: 1, female: 2]

yaml returns a list of lists; the correct coding is

values: {male: 1, female: 2}

This PR implements a check for values to make sure they are atomic and generates an error when not.