Adds OpenAPI artifacts containing v2 API endpoints
What’s new
New versions of Stripe’s OpenAPI specifications have been added to the stripe/openapi repository, covering all endpoints and events in the v1 and v2 API namespaces in a single file. The new files are available in two directories:
/latest/— The latest generally available (GA) release, with public specs (openapi.) and SDK specs (spec3. * openapi.)sdk. spec3. * /preview/— The latest public preview release, with SDK specs only (openapi.)sdk. spec3. *
All files are available in JSON and YAML formats. The SDK specs contain additional OpenAPI Extensions that Stripe uses internally.
OpenAPI files in /openapi/, which contain only v1 endpoints and events, will continue to be updated as usual with each new API version.
Impact
Developers of third-party SDKs and custom Stripe clients that are powered by the OpenAPI specifications in stripe/openapi can use the new unified files to power their code generation. Users and developers who don’t consume these files aren’t affected by this change.