I am trying to use this package for some tables that have constraints.
I will randomly get constraint violations during LoadScenario().
This is because yaml.Unmarshal() does not preserve order by default. So it ends up returning the data in a different order than what is specified in the scenario. This can be resolved by using yaml.MapSlice which would preserve the order.
I don't know what the status of this project is. If you're open for accepting PRs I wouldn't mind spending some time on fixing this.
I am trying to use this package for some tables that have constraints.
I will randomly get constraint violations during
LoadScenario().This is because
yaml.Unmarshal()does not preserve order by default. So it ends up returning the data in a different order than what is specified in the scenario. This can be resolved by usingyaml.MapSlicewhich would preserve the order.I don't know what the status of this project is. If you're open for accepting PRs I wouldn't mind spending some time on fixing this.