fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at feat/use-query-options 115 lines 2.6 kB view raw
1{ 2 "openapi": "3.0.0", 3 "info": { 4 "title": "Test Paginated Response", 5 "version": "1.0.0" 6 }, 7 "components": { 8 "schemas": { 9 "PaginatedResponse": { 10 "type": "object", 11 "properties": { 12 "meta": { 13 "type": "object", 14 "properties": { 15 "page": { 16 "type": "number" 17 }, 18 "limit": { 19 "type": "number" 20 }, 21 "total": { 22 "type": "number" 23 }, 24 "totalPages": { 25 "type": "number" 26 } 27 } 28 } 29 } 30 }, 31 "RepositorySecret": { 32 "type": "object", 33 "properties": { 34 "id": { 35 "type": "number" 36 }, 37 "name": { 38 "type": "string" 39 }, 40 "createdAt": { 41 "format": "date-time", 42 "type": "string" 43 }, 44 "updatedAt": { 45 "format": "date-time", 46 "type": "string" 47 } 48 }, 49 "required": ["id", "name", "createdAt", "updatedAt"] 50 } 51 } 52 }, 53 "paths": { 54 "/secrets": { 55 "get": { 56 "operationId": "listSecrets", 57 "responses": { 58 "200": { 59 "description": "OK", 60 "content": { 61 "application/json": { 62 "schema": { 63 "title": "PaginatedResponseRepositorySecret", 64 "allOf": [ 65 { 66 "$ref": "#/components/schemas/PaginatedResponse" 67 }, 68 { 69 "properties": { 70 "data": { 71 "type": "array", 72 "items": { 73 "$ref": "#/components/schemas/RepositorySecret" 74 } 75 } 76 } 77 } 78 ] 79 } 80 } 81 } 82 } 83 } 84 } 85 }, 86 "/secrets/{id}": { 87 "post": { 88 "operationId": "createSecret", 89 "responses": { 90 "201": { 91 "description": "Created", 92 "content": { 93 "application/json": { 94 "schema": { 95 "$ref": "#/components/schemas/RepositorySecret" 96 } 97 } 98 } 99 } 100 } 101 } 102 } 103 }, 104 "servers": [ 105 { 106 "url": "{protocol}://specs", 107 "variables": { 108 "protocol": { 109 "default": "https", 110 "enum": ["http", "https"] 111 } 112 } 113 } 114 ] 115}