blob: deeba60d8cd7b88d675074ea4a8531bf9bd0b4f5 [file] [log] [blame]
Ed Tanous683f7272018-07-26 12:47:19 -07001{
2 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.v1_2_0.json",
3 "title": "#Message.v1_0_5",
4 "definitions": {
5 "Message": {
6 "type": "object",
7 "patternProperties": {
8 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
9 "type": [
10 "array",
11 "boolean",
12 "number",
13 "null",
14 "object",
15 "string"
16 ],
17 "description": "This property shall specify a valid odata or Redfish property."
18 }
19 },
20 "additionalProperties": false,
21 "properties": {
22 "MessageId": {
23 "type": "string",
24 "readonly": true,
25 "description": "This is the key for this message which can be used to look up the message in a message registry.",
26 "longDescription": "This property shall be a key into message registry as described in the Redfish specification."
27 },
28 "Message": {
29 "type": [
30 "string",
31 "null"
32 ],
33 "readonly": true,
34 "description": "This is the human readable message, if provided.",
35 "longDescription": "This property shall contain an optional human readable message."
36 },
37 "RelatedProperties": {
38 "type": "array",
39 "items": {
40 "type": "string"
41 },
42 "readonly": true,
43 "description": "This is an array of properties described by the message.",
44 "longDescription": "This property shall contain an array of JSON Pointers indicating the properties described by the message, if appropriate for the message."
45 },
46 "MessageArgs": {
47 "type": "array",
48 "items": {
49 "type": "string"
50 },
51 "readonly": true,
52 "description": "This array of message arguments are substituted for the arguments in the message when looked up in the message registry.",
53 "longDescription": "This property shall contain the message substitution arguments for the specific message referenced by the MessageId and shall only be included if the MessageId is present."
54 },
55 "Severity": {
56 "type": [
57 "string",
58 "null"
59 ],
60 "readonly": true,
61 "description": "This is the severity of the errors.",
62 "longDescription": "The value of this property shall be the severity of the error, as defined in the Status section of the Redfish specificaiton."
63 },
64 "Resolution": {
65 "type": [
66 "string",
67 "null"
68 ],
69 "readonly": true,
70 "description": "Used to provide suggestions on how to resolve the situation that caused the error.",
71 "longDescription": "This property shall contain an override of the Resolution of the message in message registry, if present."
72 },
73 "Oem": {
74 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
75 "description": "Oem extension object.",
76 "longDescription": "This object represents the Oem property. All values for resources described by this schema shall comply to the requirements as described in the Redfish specification."
77 }
78 },
79 "required": [
80 "MessageId"
81 ],
82 "description": "This type describes a Message returned by the Redfish service.",
83 "longDescription": "This type shall define a Message as described in the Redfish specification."
84 }
85 },
86 "copyright": "Copyright 2014-2017 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright"
87}