We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0: error processing invalid filters (value instead of val)
value
val
[ { "name": "meta", "op": "eq", "val": {"foo": "bar"} } ]
You'll get an error here:
FastAPI-JSONAPI/fastapi_jsonapi/data_layers/filtering/sqlalchemy.py
Line 254 in 3e68db5
1: error processing json
Try creating a filter like this:
The problem is here:
Lines 199 to 201 in 3e68db5
The text was updated successfully, but these errors were encountered:
можно взять как отправную точку вот такую переделку. Но надо ещё списки обрабатывать
fields = { schema_field.name: (schema_field.outer_type_, schema_field.field_info), } class Config: arbitrary_types_allowed = True # Create the model using create_model ValidationModel = pydantic.create_model( "ValidationModel", **fields, __config__=Config, ) validated = ValidationModel.parse_obj({schema_field.name: value}) val = getattr(validated, schema_field.name) return getattr(model_column, operator)(val)
Sorry, something went wrong.
CosmoV
No branches or pull requests
0: error processing invalid filters (
value
instead ofval
)You'll get an error here:
FastAPI-JSONAPI/fastapi_jsonapi/data_layers/filtering/sqlalchemy.py
Line 254 in 3e68db5
1: error processing json
Try creating a filter like this:
The problem is here:
FastAPI-JSONAPI/fastapi_jsonapi/data_layers/filtering/sqlalchemy.py
Lines 199 to 201 in 3e68db5
The text was updated successfully, but these errors were encountered: