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

Stoplight mock server returns data out of schema #72

Open
CollinDietz opened this issue Sep 24, 2023 · 0 comments
Open

Stoplight mock server returns data out of schema #72

CollinDietz opened this issue Sep 24, 2023 · 0 comments

Comments

@CollinDietz
Copy link

CollinDietz commented Sep 24, 2023

Attempting to use https://stoplight.io/mocks/spacetraders/spacetraders/96627693 to test my API implementation, but some of the data returned is not parse-able in general, and definitely not parse-able if I want to apply stricter parsing

https://spacetraders.stoplight.io/docs/spacetraders/86ed6bbe4f5d7-register-new-agent

Register responds with this in the agent block

      "agent": {
         "accountId": "string",
         "symbol": "string",
         "headquarters": "string",
         "credits": -9223372036854776000, <-- does not fit in an i64 (-9223372036854775808: int64 min)
         "startingFaction": "string",  <-- not one of the faction enum values
         "shipCount": 0
      },

I see a few other places that do not conform to enum standards, I haven't made it much futher then register at the moment since it is hard to write unit tests around.

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