JSON Schema: Date_field_query

URI Template

Properties

- (string) comparator

- (string) field

- (date) value

- (boolean) negated

- (string) precision

View Source


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'common/schemas/date_field_query.rb', line 1

{
  :schema => {
    "$schema" => "http://www.archivesspace.org/archivesspace.json",
    "version" => 1,
    "type" => "object",
    "properties" => {

      "comparator" => {"type" => "string", "enum" => ["greater_than", "lesser_than", "equal", "empty"]},
      "field" => {"type" => "string", "ifmissing" => "error"},
      "value" => {"type" => "date"},
      "negated" => {"type" => "boolean", "default" => false},
      "precision" => {"type" => "string", "enum" => ["day", "month", "year"]},
    },
  },
}

Plain Text Version