News for hackers. Stuff that matters.
Re:JsonLogic by contravariant on Thursday May 27, 2021 @04:50PM (#27308344)
What about:

    ["if", ["or", ["===", ["var", "credentialData.rapidSarsCov2PCRTest.testResult"  ], "negative"],
                  ["===", ["var", "credentialData.covid19Vaccination.hasVaccination"],  true     ] ],
           "valid",
           "invalid"]

?
Re:JsonLogic by sebmellen on Thursday May 27, 2021 @04:52PM (#27308375)
That's nice, I like it! We don't really need anything more than this.

It's hard to gauge whether or not it's better to go with an existing, possibly inferior standard, or to create a new one, like this...

https://xkcd.com/927/

Re:JsonLogic by contravariant on Thursday May 27, 2021 @04:54PM (#27308399)
I mean it is just lisp denoted in javascript lists, but sure we can call it a new standard if you like.
Re:JsonLogic by sebmellen on Thursday May 27, 2021 @05:03PM (#27308523)
If this works out we'll either be adopting a previous standard or defining a new one for these evaluation matrices!

But yes, does look like other people have grazed this idea as well: https://www.i-programmer.info/programming/javascript/2380-ja....