discussions Search Results · repo:acacode/swagger-typescript-api language:JavaScript
Filter by
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__ ...
tepmehatopposted
on Sep 18- 0
:
[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 ...
403-htmlposted
on Sep 12- 0
:
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 ...
LazzyLizzardposted
on Aug 19- 0
:
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
chengjunjian2020posted
on Mar 9- 2
:
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: ...
StasTelnovposted
on Aug 14- 1
:
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 ...
FDiskasposted
on Aug 8- 0
:
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?
iemi111posted
on May 14- 8
:
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 ...
9yuesposted
on Jun 29- 1
:
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 ...
CodeSmith32posted
on Jul 10- 1
:
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
}
Armadillidiidposted
on Jul 19, 2024- 4