json-logic-js icon indicating copy to clipboard operation
json-logic-js copied to clipboard

Suggestion: Wiki page to collect custom operations

Open deinspanjer opened this issue 6 years ago • 3 comments

I'm curious, what do you think about setting up a wiki page on this repo to collect various operations people come up with? I noticed that there are a few different pull requests where people have offered things, but you haven't opted to put them into the core library. If we had a wiki page where they were all listed, it would be discoverable by new users and if we made some sort of process to vote on them or say whether you were using one, then maybe it would be easier to determine if one should become core eventually?

deinspanjer avatar Jul 14 '17 17:07 deinspanjer

Oh, wow, I like that idea a LOT.

jwadhams avatar Jul 14 '17 18:07 jwadhams

Getting started: https://github.com/jwadhams/json-logic-js/wiki/Custom-Operations

jwadhams avatar Jul 14 '17 19:07 jwadhams

I'd also be excited to talk about how jsonLogic can support plugins, like taking those two temp variable functions and making them a standard "chuck it in your project.json and go nuts" addition for people who want it. One of the limitations of moving a function into "core" is coordinating matching functionality in the PHP and Ruby implementations, having an ecosystem of plugins makes that less crucial -- it's could be more or less up to the plugin author to provide matching implementations and unit tests.

jwadhams avatar Jul 14 '17 20:07 jwadhams