Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add constants for error codes #716

Merged
merged 1 commit into from
Aug 28, 2019
Merged

Conversation

ob-stripe
Copy link
Contributor

r? @brandur-stripe @remi-stripe
cc @stripe/api-libraries

Add constants for possible values of the code attribute in the ErrorCode class.

Also fixes a few unrelated PHPDoc blocks.

Replaces #616.

Relatedly, I'm trying to add the error codes to the OpenAPI spec to make maintaining the list up-to-date easier. I'm running into a few issues but hopefully nothing blocking.

Copy link
Contributor

@brandur brandur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I looked through the list of codes and couldn't see any errors.

And yep — having these generated from OpenAPI would be great.

@ob-stripe
Copy link
Contributor Author

Thanks Brandur!

@ob-stripe ob-stripe merged commit 1a08a98 into integration-v7 Aug 28, 2019
@ob-stripe ob-stripe deleted the ob-error-code-values branch August 28, 2019 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants