blob: 6579c63dfc814b791aa714c06dd4e06fb65be1ea [file] [log] [blame]
Eiichi Aikawaaf0e0f42014-03-17 18:31:07 +09001# Copyright 2014 NEC Corporation. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15version = {
16 'status_code': [200],
17 'response_body': {
18 'type': 'object',
19 'properties': {
20 'version': {
21 'type': 'object',
22 'properties': {
23 'id': {'type': 'string'},
24 'links': {
25 'type': 'array',
26 'items': {
27 'type': 'object',
28 'properties': {
29 'href': {'type': 'string', 'format': 'uri'},
30 'rel': {'type': 'string'},
31 'type': {'type': 'string'}
32 },
33 'required': ['href', 'rel']
34 }
35 },
36 'media-types': {
37 'type': 'array',
38 'items': {
39 'type': 'object',
40 'properties': {
41 'base': {'type': 'string'},
42 'type': {'type': 'string'}
43 },
44 'required': ['base', 'type']
45 }
46 },
47 'status': {'type': 'string'},
Ken'ichi Ohmichi2b96d402015-04-15 01:50:44 +000048 'updated': {'type': 'string', 'format': 'date-time'},
49 'version': {'type': 'string'},
50 'min_version': {'type': 'string'}
Eiichi Aikawaaf0e0f42014-03-17 18:31:07 +090051 },
Ken'ichi Ohmichi2b96d402015-04-15 01:50:44 +000052 # NOTE: version and min_version have been added since Kilo,
53 # so they should not be required.
Eiichi Aikawaaf0e0f42014-03-17 18:31:07 +090054 'required': ['id', 'links', 'media-types', 'status', 'updated']
55 }
56 },
57 'required': ['version']
58 }
59}