objectionary / eo-phi-normalizer

Command Line Normalizer and Rewriter of 𝜑-calculus Expressions (part of EOLANG family)
https://www.objectionary.com/eo-phi-normalizer/
MIT License
7 stars 2 forks source link

failed, key \"when\" not found" #482

Open yegor256 opened 1 month ago

yegor256 commented 1 month ago

In my YAML file with a rule, I don't have the when key, because I don't need it. However, I'm getting:

normalizer: AesonException "Error in $.rules[0]: parsing Language.EO.Phi.Rules.Yaml.Rule(Rule) failed, key \"when\" not found"

I believe, it's bug. Such situations must be ignored, as if I specified empty when.

P.S. The same happens when I don't specify tests.