Skip to content

Filters: datetime filter example not working #50

@Huuhailija

Description

@Huuhailija

When you define SQLalchemy model with:

kuva

and make schema according to:

kuva

Then you produce error at filter creation in sqlalchemy.py at line 86 trying to cast type(value) to datetime, when filter value is str format.

kuva

Seems like it's not intended to use datetime value in filtering. Changing schema to str will fix the error, but will result more problems later with ORM models which expects datetime matching column.

Using filter example in SwaggerUI as filter parameter.

kuva

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions