Releases: ifroz/openapi-to-typescript
Releases · ifroz/openapi-to-typescript
v4.0.0
4.0.0 (2019-06-30)
Bug Fixes
- cli: Remove stores from cli code (2e1c256)
- cli.spec.ts: Do not rely on yarn due to CI behavior differences (c3e28e9)
- cli.ts: Pass apiSchema to FetchClientFormatter in order to generate valid API_URL (264af96)
Documentation
- README.md: Update docs to the new usage (dc2909b)
Features
- cli: Make the generate command default (568ed7a)
- cli.ts|fetch.ts: Make fetch client server url customizable (464f12a)
BREAKING CHANGES
- README.md: GenerateTypings now returns Promise
v3.2.1
v3.2.0
v3.1.0
v3.0.0
3.0.0 (2019-02-27)
Bug Fixes
- cli: Fix broken argv logic (2c3fe70)
- formatters/fetch: Fix reverse logicc (9d83ef2)
- formatters/request: Handle requestBody JSON schema.$ref as an alias (3560d55)
- formatters/request.ts: Generate empty request objects so that we can rely on their presence whe (af168d1)
Features
- 🎸 formatters/fetch (466eba8)
- cli: Add yargs cli to output the generated code to file (94bd227)
- formatters/fetch: Generate real fetch(url, options) signature (798c1b1)
- formatters/fetch: Handle query parameters in the generated actions (00a852a)
- formatters/fetch: Naive typings of a generic API client (b8ac739)
- GenerateTypings: Accept options as 2nd argument, with operationFormatters in it (c1b6758)
- GenerateTypings: Generate compilable client output by using renderBoilerplate and renderAction (8b1c781)
BREAKING CHANGES
- GenerateTypings: GenerateTypings now returns Promise<{ typeStore, clientStore }>
v2.1.1
v2.1.0
v2.0.0
v1.0.0
1.0.0 (2019-02-24)
Code Refactoring
- Expose entry point as GenerateTypings: GenerateTypings is a better name. (0122c60)
Features
- compile.ts: Add getSchemaName to determine property types in route.ts (84419b9)
- compile.ts: Use json-schema-to-typescript to generate type from components.schemas elements (0179cdd)
- formatters.ts: Generate OperationFallback type for default responses (5dc547c)
- formatters.ts: Handle multiple HTTP response codes (e0ebb99)
- formatters.ts: Handle the lowest HTTP status code with the default typeName() (7e1da57)
- index.ts: Generate OperationResult types (a3a84bf)
- index.ts: Generate typings for components.schemas (512744d)
- refs.ts: Add InternalRefRewriter (7649ae9)
- route.ts: Default route name to camelCase(
${method} ${pathName}) given no operationId (c8374d6) - route.ts: Request parameters type definition (b59dacd)
BREAKING CHANGES
- Expose entry point as GenerateTypings: Renamed GenerateTypes to GenerateTypings.