ngs icon indicating copy to clipboard operation
ngs copied to clipboard

[patterns] Support optional keys in Hash / objects

Open ilyash-b opened this issue 2 years ago • 1 comments

Given the hash h, check that either key k is not present or, if it is present, it matches the pattern p.

Right now there is no straightforward way to check the above. Use case: id and params in https://www.jsonrpc.org/specification

ilyash-b avatar May 28 '22 12:05 ilyash-b

Idea: {"key": IfExists(pattern)}

ilyash-b avatar Sep 24 '22 11:09 ilyash-b

In dev

ilyash-b avatar Feb 16 '23 07:02 ilyash-b