Skip to content

discussions Search Results · repo:acacode/swagger-typescript-api language:JavaScript

58 results
 (65 ms)

58 results

inacacode/swagger-typescript-api (press backspace or delete to remove)

Hi and Thank s a lot for any help! - have external swagger To generate/convert openapi to api methods I use command: npx swagger-typescript-api generate --path http://localhost/blabla/api-docs -o projects/api/__generated__ ...

[SOLVED] Turns out when catching error from Api class, now the error is in other place const payload = e?.error; // it will hold the parsed JSON which usually is in axios response s body const status ...

I mean fragments like this % const { config } = it; % This name is way confusing and Cmd-Click refers to Jest s it() function what can potentially cause tests problems. A name like context or ctx or ...

How to request Axios to be provided by me when generating, that is, I provide the path and he can call it? Because business projects have a large number of request interception configurations

I wanna migrate from 12.0.4 to 13.2.8 version, but I cannot find the alternative for primitiveTypeConstructs option. I have this code: primitiveTypeConstructs: (constructs) = ({ ...constructs, string: ...

Just wanted to have more attention on this one https://github.com/acacode/swagger-typescript-api/issues/1321 It is possible to inject javascript in generated code. I would like to have a proper fix on ...

Hi, I see you have removed the documentation from the README file but from what I can see you haven t provided an alternative? Are you planning to post it somewhere?

image Can I generate an interface name based on the interface path and request method? For example, if my interface is a post request and the path is [/anyTenant/registerAndInitByEmail], the generated ...

How do I change the enum types generated from native enums to basic string unions? The generated code looks like, export enum SomeEnum { Value1 = value1 , Value2 = value2 } I instead need, export ...

What option could I set in the config to get this output: export type Test = { name: string; age: number } Instead of this export interface Test { name: string; age: number }