juxt

Jakub Holý 2021-04-30T08:04:25.017600Z

Hello! I know the JUXT folks have built lot of APIs and used OpenAPI extensively so I wonder whether they might have some good solution for https://clojureverse.org/t/declarative-rules-for-relations-between-inputs/7623/2 ... 🙏

malcolmsparks 2021-04-30T10:43:01.017800Z

JSON Schema supports dependant types and these declarative rules across multiple inputs. My personal view @holyjak is that data, and arguably therefore schema over data, should be language agnostic, so I prefer JSON Schema, even though it is still technically in draft.

💯 1
👀 1
❤️ 1
ikitommi 2021-04-30T11:10:56.020600Z

Interesting. JSON Schema has property and schema dependencies, but does that work over value dependencies? e.g. “if field x value = y, then field z is allowed to be å“.

2021-05-02T17:16:51.021300Z

I believe so yes, but you would express it as a 'duplicate' property dependency which would have different restrictions to its sibling