fork of hey-api/openapi-ts because I need some additional things
1openapi: 3.0.3
2info:
3 title: writeOnly repro
4 version: 1.0.0
5paths:
6 /items:
7 post:
8 operationId: item_create
9 requestBody:
10 required: true
11 content:
12 application/json:
13 schema:
14 $ref: '#/components/schemas/CreateItemRequest'
15 responses:
16 '201':
17 description: Created
18components:
19 schemas:
20 CreateItemRequest:
21 type: object
22 required:
23 - payload
24 properties:
25 payload:
26 $ref: '#/components/schemas/Payload'
27 Payload:
28 type: object
29 required:
30 - kind
31 - encoded
32 properties:
33 kind:
34 type: string
35 enum: [jpeg]
36 encoded:
37 type: string
38 writeOnly: true
39 description: Data required on write