Add tests for schema which references to another schema file
[integration/csit.git] / tests / dcaegen2 / testcases / assets / test_schemas / externalRepo / 3gpp / rep / sa5 / MnS / blob / SA88-Rel16 / OpenAPI / comDefs.yaml
1 openapi: 3.0.1
2 info:
3   title: Common Type Definitions
4   version: 16.5.0
5   description: >-
6     OAS 3.0.1 specification of common type definitions in the Generic NRM
7     © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC).
8     All rights reserved.
9 externalDocs:
10   description: 3GPP TS 28.623 V16.5.0; Generic NRM, Common Type Definitions
11   url: http://www.3gpp.org/ftp/Specs/archive/28_series/28.623/
12 paths: {}
13 components:
14   schemas:
15     Long:
16       type: number
17       format: long
18     Float:
19       type: number
20       format: float
21     DateTime:
22       type: string
23       format: date-Time
24     Dn:
25       type: string
26     DnList:
27       type: array
28       items:
29         $ref: '#/components/schemas/Dn'
30     Mcc:
31       type: string
32       pattern: '^[0-9]{3}$'
33     Mnc:
34       type: string
35       pattern: '^[0-9]{2,3}$'
36     Fqdn:
37       type: string
38     Uri:
39       type: string
40     Ipv4Addr:
41       type: string
42       pattern: '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$'
43       example: '198.51.100.1'
44     Ipv6Addr:
45       type: string
46       allOf:
47         - pattern: '^((:|(0?|([1-9a-f][0-9a-f]{0,3}))):)((0?|([1-9a-f][0-9a-f]{0,3})):){0,6}(:|(0?|([1-9a-f][0-9a-f]{0,3})))$'
48         - pattern: '^((([^:]+:){7}([^:]+))|((([^:]+:)*[^:]+)?::(([^:]+:)*[^:]+)?))$'
49       example: '2001:db8:85a3::8a2e:370:7334'
50     Ipv6Prefix:
51       type: string
52       allOf:
53         - pattern: '^((:|(0?|([1-9a-f][0-9a-f]{0,3}))):)((0?|([1-9a-f][0-9a-f]{0,3})):){0,6}(:|(0?|([1-9a-f][0-9a-f]{0,3})))(\/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))$'
54         - pattern: '^((([^:]+:){7}([^:]+))|((([^:]+:)*[^:]+)?::(([^:]+:)*[^:]+)?))(\/.+)$'
55       example: '2001:db8:abcd:12::0/64'
56     AdministrativeState:
57       type: string
58       enum:
59         - LOCKED
60         - UNLOCKED
61     OperationalState:
62       type: string
63       enum:
64         - ENABLED
65         - DISABLED
66     UsageState:
67       type: string
68       enum:
69         - IDEL
70         - ACTIVE
71         - BUSY
72     AttributeNameValuePairSet:
73       type: object
74       minProperties: 1
75     AttributeValueChangeSet:
76       description: >-
77         The key in this map is the attribute name. The value of each key is an array.
78         When only one item is present in the array, it carries the new attribute
79         value. If two items are present, then the first item carries the old value
80         and the second item the new value. The items can be of any type including null.
81       type: object
82       additionalProperties:
83         type: array
84         minItems: 1
85         maxItems: 2
86         items:
87           nullable: true
88     Filter:
89       type: string
90     SystemDN:
91       type: string
92     NotificationId:
93       type: integer
94     NotificationType:
95       oneOf:
96         - $ref: 'faultMnS1.yaml#/components/schemas/AlarmNotificationType'
97         # more to be added
98     NotificationHeader:
99       description: >-
100         Header used for all notifications types
101       type: object
102       required:
103         - uri
104         - notificationId
105         - notificationType
106         - eventTime
107         - systemDN
108       properties:
109         uri:
110           $ref: '#/components/schemas/Uri'
111         notificationId:
112           $ref: '#/components/schemas/NotificationId'
113         notificationType:
114           $ref: '#/components/schemas/NotificationType'
115         eventTime:
116           $ref: '#/components/schemas/DateTime'
117         systemDN:
118           $ref: '#/components/schemas/SystemDN'
119     ErrorResponse:
120       description: >-
121         Default schema for the response message body in case the request
122         is not successful.
123       type: object
124       properties:
125         error:
126           type: object
127           properties:
128             errorInfo:
129               type: string