update deps; make apis more type safe
This commit is contained in:
parent
9518ede41c
commit
292dcf5b49
46 changed files with 26911 additions and 550 deletions
17
automation/fetchSchemas.ts
Normal file
17
automation/fetchSchemas.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { $ } from 'utils/shellUtils';
|
||||
|
||||
async function fetchSchema() {
|
||||
// https://docs.api.jikan.moe/
|
||||
await $('bun openapi-typescript https://raw.githubusercontent.com/jikan-me/jikan-rest/master/storage/api-docs/api-docs.json -o ./src/api/schemas/MALAPI.ts');
|
||||
|
||||
// https://www.giantbomb.com/forums/api-developers-3017/giant-bomb-openapi-specification-1901269/
|
||||
await $('bun openapi-typescript ./src/api/schemas/GiantBomb.json -o ./src/api/schemas/GiantBomb.ts');
|
||||
|
||||
// https://www.omdbapi.com/swagger.json
|
||||
await $('bun openapi-typescript ./src/api/schemas/OMDb.json -o ./src/api/schemas/OMDb.ts');
|
||||
|
||||
// https://github.com/internetarchive/openlibrary-api/blob/main/swagger.yaml
|
||||
await $('bun openapi-typescript ./src/api/schemas/OpenLibrary.json -o ./src/api/schemas/OpenLibrary.ts');
|
||||
}
|
||||
|
||||
await fetchSchema();
|
||||
Loading…
Add table
Add a link
Reference in a new issue