Skip to content

Simplify object notation for single-filter usage #27

New issue

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

Closed
wol-soft opened this issue Jan 28, 2021 · 0 comments
Closed

Simplify object notation for single-filter usage #27

wol-soft opened this issue Jan 28, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@wol-soft
Copy link
Owner

Currently the library forces the user to define a list when using filter options even if only a single filter is applied:

{
    "type": "object",
    "properties": {
        "created": {
            "type": "string",
            "filter": [
                {
                    "filter": "dateTime",
                    "denyEmptyValue": true
                }
            ]
        }
    }
}

Instead of the list allow the direct usage of an object to define a single filter with options:

{
    "type": "object",
    "properties": {
        "created": {
            "type": "string",
            "filter": {
                "filter": "dateTime",
                "denyEmptyValue": true
            }
        }
    }
}

The above currently crashes with a message unsupported filter denyEmptyValues which is not helpful.

@wol-soft wol-soft added the enhancement New feature or request label Feb 3, 2021
@wol-soft wol-soft self-assigned this Feb 5, 2021
@wol-soft wol-soft added this to the 0.20.0 milestone Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant