summaryrefslogtreecommitdiff
path: root/static/redfish/v1/JsonSchemas/redfish-error/redfish-error.json
blob: a4b699d0609cf836fb9d20b449c41a5c7b2c690b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
    "$id": "http://redfish.dmtf.org/schemas/v1/redfish-error.v1_0_0.json",
    "$ref": "#/definitions/RedfishError",
    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
    "copyright": "Copyright 2014-2018 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
    "definitions": {
        "RedfishError": {
            "additionalProperties": false,
            "description": "Contains an error payload from a Redfish Service.",
            "longDescription": "This type, as described by the Redfish Specification, shall contain an error payload from a Redfish Service.",
            "properties": {
                "error": {
                    "$ref": "#/definitions/RedfishErrorContents",
                    "description": "Contains properties used to describe an error from a Redfish Service.",
                    "longDescription": "This property, as described by the Redfish Specification, shall contain properties used to describe an error from a Redfish Service."
                }
            },
            "required": [
                "error"
            ],
            "type": "object"
        },
        "RedfishErrorContents": {
            "additionalProperties": false,
            "description": "Contains properties used to describe an error from a Redfish Service.",
            "longDescription": "This type, as described by the Redfish Specification, shall contain properties used to describe an error from a Redfish Service.",
            "properties": {
                "code": {
                    "description": "A string indicating a specific MessageId from the message registry.",
                    "longDescription": "This property shall be a string indicating a specific MessageId from the message registry.",
                    "readonly": true,
                    "type": "string"
                },
                "message": {
                    "description": "A human-readable error message corresponding to the message in the message registry.",
                    "longDescription": "This property shall be a human-readable error message corresponding to the message in the message registry.",
                    "readonly": true,
                    "type": "string"
                },
                "@Message.ExtendedInfo": {
                    "description": "An array of message objects describing one or more error message(s).",
                    "longDescription": "This property shall be an array of message objects describing one or more error message(s).",
                    "type": "array",
                    "items": {
                        "$ref": "http://redfish.dmtf.org/schemas/v1/Message.json#/definitions/Message"
                    }
                }
            },
            "required": [
                "code",
                "message"
            ],
            "type": "object"
        }
    },
    "owningEntity": "DMTF",
    "title": "redfish-error.v1_0_0"
}