blob: d8ec689701a488de1c8fd5ae8f376e78c37e6f1e [file] [log] [blame]
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -07001// Copyright 2014 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "buffet/commands/schema_constants.h"
6
7namespace buffet {
8namespace commands {
9
10namespace errors {
Alex Vakulenko66ec2922014-06-17 15:30:22 -070011const char kDomain[] = "command_schema";
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070012
Alex Vakulenko66ec2922014-06-17 15:30:22 -070013const char kOutOfRange[] = "out_of_range";
14const char kTypeMismatch[] = "type_mismatch";
15const char kPropTypeChanged[] = "param_type_changed";
16const char kUnknownType[] = "unknown_type";
17const char kInvalidPropDef[] = "invalid_parameter_definition";
18const char kInvalidPropValue[] = "invalid_parameter_value";
19const char kNoTypeInfo[] = "no_type_info";
20const char kPropertyMissing[] = "parameter_missing";
21const char kUnknownProperty[] = "unexpected_parameter";
22const char kInvalidObjectSchema[] = "invalid_object_schema";
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070023} // namespace errors
24
25namespace attributes {
Alex Vakulenko66ec2922014-06-17 15:30:22 -070026const char kType[] = "type";
27const char kDisplayName[] = "displayName";
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070028
Alex Vakulenko66ec2922014-06-17 15:30:22 -070029const char kNumeric_Min[] = "minimum";
30const char kNumeric_Max[] = "maximum";
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070031
Alex Vakulenko66ec2922014-06-17 15:30:22 -070032const char kString_MinLength[] = "minLength";
33const char kString_MaxLength[] = "maxLength";
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070034
Alex Vakulenko66ec2922014-06-17 15:30:22 -070035const char kOneOf_Enum[] = "enum";
36const char kOneOf_Metadata[] = "metadata";
37const char kOneOf_MetaSchema[] = "schema";
38
39const char kObject_Properties[] = "properties";
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070040} // namespace attributes
41
42} // namespace commands
43} // namespace buffet