cameri / nostream

A Nostr Relay written in TypeScript
MIT License
729 stars 188 forks source link

[REQUEST] Filtering by tags with empty string value #259

Open heguro opened 1 year ago

heguro commented 1 year ago

Pledge 10000 sats

Is your feature request related to a problem? Please describe. I wanted to search for events having tag ["d", ""] by using the filter {"#d": [""]}. Currently this is rejected with the error invalid: "[2].#d[0]" is not allowed to be empty by this line (I think):

https://github.com/Cameri/nostream/blob/f23740073f6b59b230157528376a89ca44af3f27/test/unit/schemas/event-schema.spec.ts#L123

Describe the solution you'd like Support for filtering tag value by "".

Additional context