Skip to content

throw error when non-batch grammarToJson endpoints fail#595

Merged
pierredebelen merged 2 commits intofinos:masterfrom
akphi:parsef
Mar 23, 2022
Merged

throw error when non-batch grammarToJson endpoints fail#595
pierredebelen merged 2 commits intofinos:masterfrom
akphi:parsef

Conversation

@akphi
Copy link

@akphi akphi commented Mar 14, 2022

This applies to non-batch grammarToJson endpoints:

  • /grammarToJson/model
  • /grammarToJson/valueSpecification
  • /grammarToJson/lambda
  • /grammarToJson/graphFetch
  • /grammarToJson/relationalOperationElement

When there's a parsing error, these endpoint return 200 with the return body as the error. We should throw this error instead and I opt for using error code 400: Bad Request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments