You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'v already written Schemas for the Value-Filters but struggle to assemble them in a tree-like structure in combination with "or", "and" & "not"-Filters.
lazy is not currently supported by variant. I will investigate if it is possible and useful to change this. In the meantime, you can switch to union. See this playground.
I'm currently trying to implement a Schema for the following data structure.
I'v already written Schemas for the Value-Filters but struggle to assemble them in a tree-like structure in combination with "or", "and" & "not"-Filters.
Example
Im generally not sure, if I structured things right - how would a schema for such a recursivly nested data structure look like?
It seems be currently not possible to use
![image](https://private-user-images.githubusercontent.com/2717384/332835146-e6cdf4f4-ffc5-4647-ae11-d576f4796bd3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4ODc2ODQsIm5iZiI6MTcxODg4NzM4NCwicGF0aCI6Ii8yNzE3Mzg0LzMzMjgzNTE0Ni1lNmNkZjRmNC1mZmM1LTQ2NDctYWUxMS1kNTc2ZjQ3OTZiZDMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjBUMTI0MzA0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmUwN2QwNDI3YWIyMjBiY2Y2MmRkZjc1ZjUzZTlmMTNhY2Y1YTZjYmFjMzc5NmU0ZjIwM2I0NWE0Y2I2OTA1NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.mYgstLjQwckNnMnx9avOp417qBPcHV2-GJY1ekU9Z3U)
lazy
withinvariant
:Also
GenericSchema
does not seem to satisfy the requirements forvariant()
either.Maybe someone has some suggestions how I could improve things.
Thank you very much in advance 🌟
The text was updated successfully, but these errors were encountered: