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

error decoding spec: json: cannot unmarshal number 0.0 into Go struct field Components.components.schemas of type int #29

Open dsdenes opened 2 years ago

dsdenes commented 2 years ago

I'm trying to run telnyx-mock in Docker:

docker pull telnyx/telnyx-mock
docker run telnyx/telnyx-mock

Output:

$ docker run telnyx/telnyx-mock
telnyx-mock 0.8.17
Downloading API spec file from: https://raw.githubusercontent.com/team-telnyx/openapi/master/openapi/spec3.json
error decoding spec: json: cannot unmarshal number 0.0 into Go struct field Components.components.schemas of type int
ScriptHound commented 1 year ago

Looks like this issue comes from the fact, that openapi yml from https://github.com/team-telnyx/openapi was translated into json without taking into account that jsonschema and openapi yml spec arent compatible