-
Notifications
You must be signed in to change notification settings - Fork 60
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
Update qod api documentation to 0.8.0 #71
Update qod api documentation to 0.8.0 #71
Conversation
Fine by me |
@tlohmar Thanks for the swift answer. I suppose that currently the documentation is correctly reflecting the error codes within the YAML (v0.8.0). Any further PRs should change the YAML and the documentation at the same time. |
Co-authored-by: tlohmar <Thorsten.Lohmar@ericsson.com>
Co-authored-by: tlohmar <Thorsten.Lohmar@ericsson.com>
Co-authored-by: tlohmar <Thorsten.Lohmar@ericsson.com>
Co-authored-by: tlohmar <Thorsten.Lohmar@ericsson.com>
Co-authored-by: tlohmar <Thorsten.Lohmar@ericsson.com>
Co-authored-by: tlohmar <Thorsten.Lohmar@ericsson.com>
Further minor changes
Co-authored-by: tlohmar <Thorsten.Lohmar@ericsson.com>
Thanks a lot to @tlohmar for your extensive and detailed review. We have incorporated as many suggestions as possible and especially fixed the points where something was wrong on the documentation side. There are some comments open:
Said this, I propose that we try to merge this update as the base for further improvements |
Looks good. I dont have an "approve" button. |
|1 |400 | INVALID_INPUT | "Expected property is missing: ueId.msisdn" | | ||
|2 |400 | INVALID_INPUT | "Expected property is missing: ueId.ipv4addr" | | ||
|3 |400 | INVALID_INPUT | "Expected property is missing: ueId.ipv4addr or ueId.ipv6addr" | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Errors 1, 2 & 3 don't make sense in the context of the UeId schema definition. The API definition requires that at least 1 UeId property is specified, but if the API caller has not specified any, how can we possibly know which one they have forgotten to specify? All we can say is that an insufficient number of properties have been specified, but we cannot say that a particular one is missing.
In addition, we need to consider:
- that more than one UeId property is specified, but they are inconsistent
- a property has been specified but is either not a valid value or is incorrectly formatted
- that the property (or properties) specified are valid but do not identify a valid UE or flow. For example, the MSISDN specified might not be a customer of the API provider. Or the public IP might not currently be in use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eric-murray I agree that the error definition are not the right ones for all implementations. But:
- The commented errors are currently the ones as examples within the YAML file. We should change them in both locations together (together with other error infos). I will open an issue for that and collect the respective comments.
- Some of the errors can make sense depending on the implementation. E.g. if the communication service provider expects either ipv4addr or ipv6addr then he error 3 would make sense (it doesn't matter if there are further ones provided by the API invoker)
My proposal is that operators adapt this part according to their implementation for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hdamker
OK, I agree that the documentation can be updated when the examples themselves are also updated. They are just examples, after all, not mandatory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestion
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
@tlohmar: you should have an approve button now (added you to the reviewers) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can see we are done and ready to merge this PR. Editorial PR to split the long line 99 will follow.
No description provided.