Skip to content

@hdoupe hdoupe released this Jan 27, 2020

  • Add a warnings distinction to validators. By default, validators throw errors, but you may specify that they emit warnings instead (#86):

    "range": {"min": 0, "max": 10, "level": "warn"}
  • Adds a new when validator, that allows you to specify complex conditional validation logic. Here's an example using Tax-Cruncher's social security parameter (#81):

    {
        "when": {
            "param": "spouse_age",
            "is": {"less_than": 65},
            "then": {
                "when": {
                    "param": "primary_age",
                    "is": {"less_than": 65},
                    "then": { "range": {"min": 0, "max": 0} },
                    "otherwise": { "range": {"min": 0, "max": 9e99} }
                }
            },
            "otherwise": { "range": {"min": 0, "max": 9e99} }
        }
    }
  • A bug fix for the sort_values method and its usage in dump. (#87)

Assets 2
You can’t perform that action at this time.