team-telnyx / telnyx-mock

telnyx-mock is a mock HTTP server that responds like the real Telnyx API. It can be used to make test suites integrating with Telnyx faster and less brittle.
MIT License
15 stars 5 forks source link

Number Orders returns error #7

Closed lonnylot closed 4 years ago

lonnylot commented 4 years ago

I am receiving an error while using the cURL example for Retrieve Multiple Number Order

curl -X GET \
  --header "Content-Type: application/json" \
  --header "Accept: application/json" \
  --header "Authorization: Bearer KEYSUPERSECRET" \
  --globoff "http://localhost:12111/v2/number_orders?filter[phone_numbers.phone_number][]=%2B18665552368"
{
  "error": {
    "message": "Request validation error: validator 0xc000387770 failed: additional properties are not allowed: filter",
    "type": "invalid_request_error"
  }
}
lucasassisrosa commented 4 years ago

@lonnylot thanks for spotting the error. That's a telnyx-mock related problem regarding using query params to test. We're working on it and will provide a fix soon. https://apidev.telnyx.com/v2 should work fine though