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

unable to validate JSON response schema validation #40

Open
araushan2010143 opened this issue Dec 11, 2022 · 1 comment
Open

unable to validate JSON response schema validation #40

araushan2010143 opened this issue Dec 11, 2022 · 1 comment
Assignees

Comments

@araushan2010143
Copy link

{
"headers": {
"normalizedNames": {},
"lazyUpdate": null
},
"status": 429,
"statusText": "OK",
"url": "https://api.jsonschema.net/v1:deduceGraph?key=AIzaSyCFCGe0Ypcl1WjJkCLa6kFQiRX7aaLx-N8",
"ok": false,
"name": "HttpErrorResponse",
"message": "Http failure response for https://api.jsonschema.net/v1:deduceGraph?key=AIzaSyCFCGe0Ypcl1WjJkCLa6kFQiRX7aaLx-N8: 429 OK",
"error": {
"code": 8,
"message": "grpc: received message larger than max (317108 vs. 262144)"
}
}

@jackwootton
Copy link
Contributor

Hi @araushan2010143. It looks like the resulting JSON schema exceeds the maximum length. Was the JSON document very large? Here are a few things you could try

  • Remove the examples keyword (this keyword dramatically increases the size of the resulting schema).
  • Try our API directly (without using www.jsonschema.net)
  • Try our CLI

@jackwootton jackwootton self-assigned this Dec 11, 2022
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

2 participants