apity icon indicating copy to clipboard operation
apity copied to clipboard

A typed fetch client for openapi-typescript for use with SvelteKit

Results 10 apity issues
Sort by recently updated
recently updated
newest added

# Description If you have a response that sets [directives](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type#directives) in the `Content-Type` header, this breaks the response parsing in version `v0.0.5`. For example, if you specify `charset` (`"application/json; charset=UTF-8"`),...

The Apity global singleton cannot be reconfigured after the first config along with defined operations. The reconfiguration does not take any effect. Say we have configure apity and defined some...

Disclaimer: I'm new to Svelte and not too familiar with TypeScript. I'm following the README but adapting it along the way for my own project. The API endpoint I'm calling...

support [array](https://github.com/sindresorhus/query-string?tab=readme-ov-file#arrayformat) format in url search params. A future direction may be to support more array format. ```typescript {foo: ['1', '2', '3']} //=> 'foo[]=1&foo[]=2&foo[]=3' ``` This has not made into...

Great project so far, works perfectly for my projects. Only feature it's missing is a middleware provider. I've noticed there's a config to apply middleware, yet it's unused as far...

https://petstore3.swagger.io/#/pet/uploadFile has an `application/octet-stream` payload in request body. Currently it's not typed correctly (no query or path params are shown), and the request will probably fail cause the `body` won't...

enhancement

Currently the library is built for JSON APIs. It can't handle other types of data, for example `application/x-www-form-urlencoded`. We need to consider adding support of it. Example of the spec:...

enhancement

Currently `fetchUrl` function throws away information about occurred exception: https://github.com/cocreators-ee/apity/blob/main/src/svelte/fetcher.ts#L51 We should probably save it somehow, so it's possible to programmatically access it later

enhancement

It would be nice if requests with the same URL + params combination were cached until you explicitly call `reload()` or such, plus having an indicator whether your data is...

enhancement