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
{{ message }}
Repository navigation
Enumerate model properties in Filter/Where schema #1748
The pull request #1679 is adding getFilterJsonSchemaFor API for obtaining a JSON/OpenAPI schema of a filter argument. The initial implementation is generic and does not describe the actual model properties in the schema. Let's fix that!
LB4 models are strict by default (extra properties are not allowed).
It's possible to create a LB4 model that allows additional properties, Filter schema needs to detect and support this case.
Besides model properties, where object can contain operators like and, or, inq. See their full list in our docs: Where filter: Operators.
Besides where condition, model properties are used by fields property too.
Activity
ghsamm commentedon Jan 12, 2019
Hello @bajtos, I'm working on this as my first open-source commit.
Here is how I made it work for fields:
I can follow the same principle for other properties if you think I'm going in the right direction.
Here is my pull request: #2241
I am very excited to start contributing to such a great project. Please tell me if there is something I can improve to get my PRs accepted.
bajtos commentedon Feb 8, 2019
Closing as done via #2241