OpenPokéAPI
is an OpenAPI 3.1 spec for PokéAPI (GitHub).
In the openapi
folder, is the spec broken down into separate files for easier consumption. In the dist
folder is the spec "bundled" together into a single file for uses that can't handle an OpenAPI description spread across multiple file. The bundled file is generated using the Redocly CLI's bundle
command.
- Add
required
to everyobject
type in the spec 😭 - Add response examples from docs
- Refactor
PokemonSpritesVersions
to more modular types (keys areGeneration
names then eitherVersion
orVersionGroup
names) -
Add resuable schema component for response headers - Write tests (in Postman or Swift or something) that calls Resource List to get valid IDs for each endpoint, then run those values for validation.
- Finish fixing the GitHub Action that runs the Redocly CLI
bundle
command.- Maybe in same or different plugin, make code that automatically adds
required
field? - Once plugin below is finished, make sure this action uses it.
- Add plain
split
command to Action as well, and havebundle
command place bundled file in/bundled
folder, and thesplit
command place files in/split
folder. That way people can use both single-file and multi-file versions with the customx-
properties already expanded.
- Maybe in same or different plugin, make code that automatically adds
- Figure out how to standardize custom OpenAPI fields for specifying the endpoint each
NamedAPIResource
/NamedAPIResourceList
would point to.- This would normally would use
links
field onpath
objects. - Make a custom plugin for Redocly that looks at a custom
x-___
property onAPIReference
/NamedAPIReference
properties to automatically expands tolinks
fields on the operations.
- This would normally would use