blob: cd06b32fa41fb69fd19f1f67723676be6c2fbf7c [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 {
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -07008
9namespace errors {
Alex Vakulenko9ac962f2014-07-22 07:34:56 -070010namespace commands {
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 Vakulenko7c36b672014-07-16 14:50:58 -070023const char kDuplicateCommandDef[] = "duplicate_command_definition";
Alex Vakulenkofd448692014-07-22 07:46:53 -070024const char kInvalidCommandName[] = "invalid_command_name";
Alex Vakulenko8dc69af2014-08-07 10:29:42 -070025const char kCommandFailed[] = "command_failed";
Alex Vakulenko9ac962f2014-07-22 07:34:56 -070026} // namespace commands
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070027} // namespace errors
28
Alex Vakulenko9ac962f2014-07-22 07:34:56 -070029namespace commands {
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070030namespace attributes {
Alex Vakulenko66ec2922014-06-17 15:30:22 -070031const char kType[] = "type";
32const char kDisplayName[] = "displayName";
Alex Vakulenko2a17a532015-02-24 14:51:13 -080033const char kDefault[] = "default";
Alex Vakulenko29e64442015-03-20 13:59:19 -070034const char kItems[] = "items";
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070035
Alex Vakulenko66ec2922014-06-17 15:30:22 -070036const char kNumeric_Min[] = "minimum";
37const char kNumeric_Max[] = "maximum";
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070038
Alex Vakulenko66ec2922014-06-17 15:30:22 -070039const char kString_MinLength[] = "minLength";
40const char kString_MaxLength[] = "maxLength";
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070041
Alex Vakulenko66ec2922014-06-17 15:30:22 -070042const char kOneOf_Enum[] = "enum";
43const char kOneOf_Metadata[] = "metadata";
Alex Vakulenko66ec2922014-06-17 15:30:22 -070044
45const char kObject_Properties[] = "properties";
Alex Vakulenko45d255b2015-03-31 10:44:49 -070046const char kObject_AdditionalProperties[] = "additionalProperties";
Alex Vakulenko7c36b672014-07-16 14:50:58 -070047
Anton Muhin5191e812014-10-30 17:49:48 +040048const char kCommand_Id[] = "id";
Alex Vakulenko8dc69af2014-08-07 10:29:42 -070049const char kCommand_Name[] = "name";
Alex Vakulenko7c36b672014-07-16 14:50:58 -070050const char kCommand_Parameters[] = "parameters";
Anton Muhin71fb9d52014-11-21 22:22:39 +040051const char kCommand_Results[] = "results";
Vitaly Buka906d39e2015-03-24 10:08:26 -070052const char kCommand_State[] = "state";
53const char kCommand_Progress[] = "progress";
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070054} // namespace attributes
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070055} // namespace commands
Alex Vakulenko9ac962f2014-07-22 07:34:56 -070056
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070057} // namespace buffet