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

Open API Verify spec for CreateVerificationCheck has incorrect response code. #117

Open
mavtron-andrewrusso opened this issue Aug 8, 2024 · 0 comments

Comments

@mavtron-andrewrusso
Copy link

Issue Summary

The response code for the CreateVerificationCheck should be a 200 but in the open API spec it has it listed as a 201, which does not match how the API calls respond,

Steps to Reproduce

Go to the open API spec and observe line 9079

https://github.com/twilio/twilio-oai/blob/df28b6ca4a6a77e46d7bb38b88b1ea7af3474973/spec/json/twilio_verify_v2.json#L9078C9-L9101C21

Code Snippet

"responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verify.v2.service.verification_check"
                },
                "examples": {
                  "verificationChecks": {
                    "value": {
                      "sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                      "service_sid": "VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                      "to": "+15017122661",
                      "channel": "sms",
                      "status": "approved",
                      "valid": true,
                      "amount": null,
                      "payee": null,
                      "sna_attempts_error_codes": [],
                      "date_created": "2015-07-30T20:00:00Z",
                      "date_updated": "2015-07-30T20:00:00Z"
                    }
                  },

Exception/Log

Technical details:

  • twilio-oai version: 2.0.2
  • open version: 3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant