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.

Update test snapshots with server configuration

Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>

+60 -14
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transformers-allof-response-wrapper/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 3 export type ClientOptions = { 4 - baseUrl: `${string}://specs` | (string & {}); 4 + baseUrl: '{protocol}://specs' | (string & {}); 5 5 }; 6 6 7 7 export type PaginatedResponse = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transformers-allof-response-wrapper/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 3 export type ClientOptions = { 4 - baseUrl: `${string}://specs` | (string & {}); 4 + baseUrl: '{protocol}://specs' | (string & {}); 5 5 }; 6 6 7 7 export type PaginatedResponse = {
+47 -12
specs/3.0.x/transformers-allof-response-wrapper.json
··· 12 12 "meta": { 13 13 "type": "object", 14 14 "properties": { 15 - "page": { "type": "number" }, 16 - "limit": { "type": "number" }, 17 - "total": { "type": "number" }, 18 - "totalPages": { "type": "number" } 15 + "page": { 16 + "type": "number" 17 + }, 18 + "limit": { 19 + "type": "number" 20 + }, 21 + "total": { 22 + "type": "number" 23 + }, 24 + "totalPages": { 25 + "type": "number" 26 + } 19 27 } 20 28 } 21 29 } ··· 23 31 "RepositorySecret": { 24 32 "type": "object", 25 33 "properties": { 26 - "id": { "type": "number" }, 27 - "name": { "type": "string" }, 28 - "createdAt": { "format": "date-time", "type": "string" }, 29 - "updatedAt": { "format": "date-time", "type": "string" } 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 + } 30 48 }, 31 49 "required": ["id", "name", "createdAt", "updatedAt"] 32 50 } ··· 44 62 "schema": { 45 63 "title": "PaginatedResponseRepositorySecret", 46 64 "allOf": [ 47 - { "$ref": "#/components/schemas/PaginatedResponse" }, 65 + { 66 + "$ref": "#/components/schemas/PaginatedResponse" 67 + }, 48 68 { 49 69 "properties": { 50 70 "data": { 51 71 "type": "array", 52 - "items": { "$ref": "#/components/schemas/RepositorySecret" } 72 + "items": { 73 + "$ref": "#/components/schemas/RepositorySecret" 74 + } 53 75 } 54 76 } 55 77 } ··· 69 91 "description": "Created", 70 92 "content": { 71 93 "application/json": { 72 - "schema": { "$ref": "#/components/schemas/RepositorySecret" } 94 + "schema": { 95 + "$ref": "#/components/schemas/RepositorySecret" 96 + } 73 97 } 74 98 } 75 99 } 76 100 } 77 101 } 78 102 } 79 - } 103 + }, 104 + "servers": [ 105 + { 106 + "url": "{protocol}://specs", 107 + "variables": { 108 + "protocol": { 109 + "default": "https", 110 + "enum": ["http", "https"] 111 + } 112 + } 113 + } 114 + ] 80 115 }
+11
specs/3.1.x/transformers-allof-response-wrapper.json
··· 4 4 "title": "Test Paginated Response", 5 5 "version": "1.0.0" 6 6 }, 7 + "servers": [ 8 + { 9 + "url": "{protocol}://specs", 10 + "variables": { 11 + "protocol": { 12 + "default": "https", 13 + "enum": ["http", "https"] 14 + } 15 + } 16 + } 17 + ], 7 18 "components": { 8 19 "schemas": { 9 20 "PaginatedResponse": {