TypeScript HTTP Framework focusing on e2e type-safety, easy setup, performance & great developer experience
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] over 1 year ago
#363
85bd174
Thanks @ardatan! - Fix the bug happening when there is no successful
response defined in the OpenAPI spec but only default
;
For example;
{
// No 2xx response defined.
"responses": {
"400": {
"description": "Bad Request"
//...
},
"default": {
"description": "Successful response"
//...
}
}
}
Then feTS should take the default
response as the successful response.
const response = await client['/user'].post({
json: { name: 'John' },
});
if (!res.ok) {
// 400 should be here
} else {
// default should be here
}
#360
098806a
Thanks @ardatan! - Fix the bug happening when there are multiple
request bodies are defined in a single operation.
For example;
If the following exists in the OpenAPI spec,
{
"requestBody": {
"application/json": "...",
"multipart/form-data": "...",
"required": true
}
}
feTS shouldn't take both json
and formData
required;
client['/user'].post({
// Both shouldn't be required because only one of them is enough.
json: { name: 'John' },
formData: { name: 'John' },
});
#363
85bd174
Thanks @ardatan! - Add comments to the types and fields
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
#316
9f25175
Thanks @ardatan! - dependencies updates:
ts-toolbelt@^9.6.0
↗︎dependencies
)#316
9f25175
Thanks @ardatan! - - Support parameters
in the OpenAPI Path
objects
components.schemas
names#309
663d2e0
Thanks @ardatan! - Make requestParams
required only if any params
are required, otherwise keep it optional
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
bb0b70b
NormalizeOAS
to normalizePublished by github-actions[bot] over 1 year ago
#258
a28661e
Thanks @renovate! - dependencies updates:
@whatwg-node/server@^0.9.0
↗︎^0.8.7
, in dependencies
)#279
951483c
Thanks @ardatan! - Support response schemas for Swagger 2.0
#278
82d3bef
Thanks @ardatan! - Automatically fix definitions with properties
but missing type: object
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
#251
7979639
Thanks @ardatan! - Client;
servers.url
in createClient
optionsServer;
requestBody
is now required in the generated OAS#251
7979639
Thanks @ardatan! - dependencies updates:
openapi-types@^12.1.0
↗︎ (fromdependencies
)Published by github-actions[bot] over 1 year ago
Published by ardatan over 1 year ago
Published by ardatan over 1 year ago
Published by ardatan over 1 year ago
49a7320
@whatwg-node/fetch@^0.9.3
↗︎ (from^0.9.0
, in dependencies
)@whatwg-node/server@^0.8.6
↗︎^0.8.1
, in dependencies
)