-
Notifications
You must be signed in to change notification settings - Fork 8
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
Inconsistent error reporting between planners #35
Comments
I'd like to start a discussion on the appropriate location of such an issue (and I agree, it's an issue worth fixing). If you check the call string, the enhsp-2020 planner just spits out the plan to stdout. There is no upper-level plan parser checking in on things, so it's an issue that resides either with PaaS (this repo), planutils (where the package is included), or with enhsp directly (if it even has a repo). What are your thoughts on the appropriate location? |
If we are talking about plan parsing, and which component should have the responsibility... Reading the description of the planutils repo "tools for developing, testing and validating", it belongs there. But the issue is about consistency in error reporting. The OpenAPI description should standardize that. |
Ya, I think what this project (PaaS) can ensure is a stated "you must follow this spec if you want to be included in the online service" set of rules. For those packages that aren't destined for remote hosting by the official PaaS deploy, they're welcome to do whatever they'd like. |
Here is how enhsp reports parsing errors: in the
result.output.plan
element:Plus you may notice the stderr polluted by some unrelated internal errors.
The topk planner returns this json body:
...that is without the
status
orresult
element.The
status
element should be mandatory in the returned payload.The text was updated successfully, but these errors were encountered: