Home Schema Example JSON Schema

Filter Settings

Type: object

Schema for storing filter settings.

No Additional Properties

Type

Type: const

The type of this element.

Specific value: "expression"

Expression

Type: object

Expression of filter.

No Additional Properties

Operator


Operator of expressions.

Type: object
No Additional Properties

Type

Type: enum (of string)

The type of this element.

Must be one of:

  • "and"
  • "or"
  • "not"
Type: object
No Additional Properties

Type

Type: const

The type of this element.

Specific value: "at_least"

At least

Type: object

An operator that filters any data where at least N of the conditions are true

No Additional Properties

Number of data

Type: integer

Number of data where condition is true.

Value must be greater or equal to 1

Expressions

Type: array

Expressions of data

No Additional Items

Each item of this array must be:


Filter Settings

Type: object

Schema for storing filter settings.

Same definition as Filter Settings
Type: object
No Additional Properties

Type

Type: const

The type of this element.

Specific value: "condition"

Type: object
No Additional Properties

Type

Type: const

The type of this element.

Specific value: "Q"

Query


Django ORM query

No Additional Properties

Type: object

The following properties are required:

  • key
  • string
Type: object

The following properties are required:

  • key
  • boolean
Type: object

The following properties are required:

  • key
  • string_array
Type: object

The following properties are required:

  • key
  • number
Type: object

The following properties are required:

  • key
  • datetime

Query key

Type: string

Must be at least 1 characters long

String

Type: string

Must be at least 1 characters long

Number

Type: integer

Value must be greater or equal to 0

String Array

Type: array

Must contain a minimum of 1 items

No Additional Items

Datetime

Type: stringFormat: date-time

To exclude data which matches expression in filter_queryset

Type: boolean