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.

Merge pull request #716 from hey-api/docs/migration-0-48-0

docs: add migration notes for v0.48.0

authored by

Lubos and committed by
GitHub
3bad0a51 41cca181

+19
+19
docs/openapi-ts/migrating.md
··· 50 50 51 51 This config option is deprecated and will be removed. 52 52 53 + ## v0.48.0 54 + 55 + ### Changed `methodNameBuilder()` signature 56 + 57 + The `services.methodNameBuilder()` function now provides a single `operation` argument instead of multiple cherry-picked properties from it. 58 + 59 + ```js 60 + import { createClient } from '@hey-api/openapi-ts'; 61 + 62 + createClient({ 63 + input: 'path/to/openapi.json', 64 + output: 'src/client', 65 + services: { 66 + methodNameBuilder: (service, name) => name, // [!code --] 67 + methodNameBuilder: (operation) => operation.name, // [!code ++] 68 + }, 69 + }); 70 + ``` 71 + 53 72 ## v0.46.0 54 73 55 74 ### Tree-shakeable services