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.

chore: update comments for ie

Lubos 139d39e4 2b9c9cd6

+16 -16
+1 -1
docs/openapi-ts/integrations.md
··· 87 87 #### `GITHUB_TOKEN` 88 88 89 89 This variable will be available inside your workflow by default. It's used to 90 - fetch information about your repository, i.e. default branch. 90 + fetch information about your repository, i.e., default branch. 91 91 92 92 ## Generate Clients 93 93
+1 -1
packages/custom-client/src/utils.ts
··· 300 300 mergedHeaders.append(key, v as string); 301 301 } 302 302 } else if (value !== undefined) { 303 - // assume object headers are meant to be JSON stringified, i.e. their 303 + // assume object headers are meant to be JSON stringified, i.e., their 304 304 // content value in OpenAPI specification is 'application/json' 305 305 mergedHeaders.set( 306 306 key,
+4 -4
packages/json-schema-ref-parser/src/bundle.ts
··· 92 92 }; 93 93 94 94 /** 95 - * Inventories the given JSON Reference (i.e. records detailed information about it so we can 95 + * Inventories the given JSON Reference (i.e., records detailed information about it so we can 96 96 * optimize all $refs in the schema), and then crawls the resolved value. 97 97 */ 98 98 const inventory$Ref = <S extends object = JSONSchema>({ ··· 214 214 215 215 const newEntry: InventoryEntry = { 216 216 $ref, // The JSON Reference (e.g., {$ref: string}) 217 - circular: pointer.circular, // Is this $ref pointer DIRECTLY circular? (i.e. it references itself) 217 + circular: pointer.circular, // Is this $ref pointer DIRECTLY circular? (i.e., it references itself) 218 218 depth, // How far from the JSON Schema root is this $ref pointer? 219 - extended, // Does this $ref extend its resolved value? (i.e. it has extra properties, in addition to "$ref") 219 + extended, // Does this $ref extend its resolved value? (i.e., it has extra properties, in addition to "$ref") 220 220 external, // Does this $ref pointer point to a file other than the main JSON Schema file? 221 221 file, // The file that the $ref pointer resolves to 222 222 hash, // The hash within `file` that the $ref pointer resolves to ··· 570 570 } 571 571 572 572 // Keep internal refs internal. However, if the $ref extends the resolved value 573 - // (i.e. it has additional properties in addition to "$ref"), then we must 573 + // (i.e., it has additional properties in addition to "$ref"), then we must 574 574 // preserve the original $ref rather than rewriting it to the resolved hash. 575 575 if (!entry.external) { 576 576 if (!entry.extended && entry.$ref && typeof entry.$ref === 'object') {
+1 -1
packages/json-schema-ref-parser/src/dereference.ts
··· 226 226 } 227 227 228 228 if (directCircular) { 229 - // The pointer is a DIRECT circular reference (i.e. it references itself). 229 + // The pointer is a DIRECT circular reference (i.e., it references itself). 230 230 // So replace the $ref path with the absolute path from the JSON Schema root 231 231 dereferencedValue.$ref = pathFromRoot; 232 232 }
+1 -1
packages/openapi-ts-tests/main/test/custom/client/utils.ts
··· 289 289 mergedHeaders.append(key, v as string); 290 290 } 291 291 } else if (value !== undefined) { 292 - // assume object headers are meant to be JSON stringified, i.e. their 292 + // assume object headers are meant to be JSON stringified, i.e., their 293 293 // content value in OpenAPI specification is 'application/json' 294 294 mergedHeaders.set( 295 295 key,
+1 -1
packages/openapi-ts/src/plugins/@hey-api/client-angular/bundle/utils.ts
··· 296 296 mergedHeaders = mergedHeaders.append(key, v as string); 297 297 } 298 298 } else if (value !== undefined) { 299 - // assume object headers are meant to be JSON stringified, i.e. their 299 + // assume object headers are meant to be JSON stringified, i.e., their 300 300 // content value in OpenAPI specification is 'application/json' 301 301 mergedHeaders = mergedHeaders.set( 302 302 key,
+1 -1
packages/openapi-ts/src/plugins/@hey-api/client-axios/bundle/utils.ts
··· 190 190 mergedHeaders[key] = [...(mergedHeaders[key] ?? []), v as string]; 191 191 } 192 192 } else if (value !== undefined) { 193 - // assume object headers are meant to be JSON stringified, i.e. their 193 + // assume object headers are meant to be JSON stringified, i.e., their 194 194 // content value in OpenAPI specification is 'application/json' 195 195 mergedHeaders[key] = typeof value === 'object' ? JSON.stringify(value) : (value as string); 196 196 }
+1 -1
packages/openapi-ts/src/plugins/@hey-api/client-core/bundle/utils.ts
··· 124 124 return hasSerializedBody ? options.serializedBody : null; 125 125 } 126 126 127 - // not all clients implement a serializedBody property (i.e. client-axios) 127 + // not all clients implement a serializedBody property (i.e., client-axios) 128 128 return options.body !== '' ? options.body : null; 129 129 } 130 130
+1 -1
packages/openapi-ts/src/plugins/@hey-api/client-fetch/bundle/utils.ts
··· 202 202 mergedHeaders.append(key, v as string); 203 203 } 204 204 } else if (value !== undefined) { 205 - // assume object headers are meant to be JSON stringified, i.e. their 205 + // assume object headers are meant to be JSON stringified, i.e., their 206 206 // content value in OpenAPI specification is 'application/json' 207 207 mergedHeaders.set( 208 208 key,
+1 -1
packages/openapi-ts/src/plugins/@hey-api/client-next/bundle/utils.ts
··· 311 311 mergedHeaders.append(key, v as string); 312 312 } 313 313 } else if (value !== undefined) { 314 - // assume object headers are meant to be JSON stringified, i.e. their 314 + // assume object headers are meant to be JSON stringified, i.e., their 315 315 // content value in OpenAPI specification is 'application/json' 316 316 mergedHeaders.set( 317 317 key,
+1 -1
packages/openapi-ts/src/plugins/@hey-api/client-nuxt/bundle/utils.ts
··· 286 286 } 287 287 } else if (value !== undefined) { 288 288 const v = unwrapRefs(value); 289 - // assume object headers are meant to be JSON stringified, i.e. their 289 + // assume object headers are meant to be JSON stringified, i.e., their 290 290 // content value in OpenAPI specification is 'application/json' 291 291 mergedHeaders.set(key, typeof v === 'object' ? JSON.stringify(v) : (v as string)); 292 292 }
+1 -1
packages/openapi-ts/src/plugins/@hey-api/client-ofetch/bundle/utils.ts
··· 233 233 mergedHeaders.append(key, v as string); 234 234 } 235 235 } else if (value !== undefined) { 236 - // assume object headers are meant to be JSON stringified, i.e. their 236 + // assume object headers are meant to be JSON stringified, i.e., their 237 237 // content value in OpenAPI specification is 'application/json' 238 238 mergedHeaders.set( 239 239 key,
+1 -1
packages/shared/src/getSpec.ts
··· 35 35 mergedHeaders.append(key, v as string); 36 36 } 37 37 } else if (value !== undefined) { 38 - // assume object headers are meant to be JSON stringified, i.e. their 38 + // assume object headers are meant to be JSON stringified, i.e., their 39 39 // content value in OpenAPI specification is 'application/json' 40 40 mergedHeaders.set( 41 41 key,