fork of hey-api/openapi-ts because I need some additional things
1openapi: 3.0.3
2info:
3 title: readOnly response test
4 version: 1.0.0
5paths:
6 /items:
7 get:
8 operationId: item_list
9 responses:
10 '200':
11 description: Success
12 content:
13 application/json:
14 schema:
15 $ref: '#/components/schemas/ItemListResponse'
16components:
17 schemas:
18 ItemListResponse:
19 type: object
20 required:
21 - items
22 properties:
23 items:
24 type: array
25 items:
26 $ref: '#/components/schemas/Item'
27 Item:
28 type: object
29 required:
30 - id
31 - name
32 properties:
33 id:
34 type: string
35 readOnly: true
36 description: Server-generated ID
37 name:
38 type: string
39 created_at:
40 type: string
41 format: date-time
42 readOnly: true
43 description: Server-generated timestamp