You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In CreateSession, 400 error response the following example is provided.
UePortsRequired:
summary: uePorts is required
value:
code: INVALID_INPUT
message: "Expected property is missing: uePorts"
This meant to say that uePorts is a required param. However, the CreateSession definition mentiones uePorts as optional param.
Which one is correct?
Same way in the below example, it is mentioned port ranges are not allowed for uePorts. However, uePorts is of type PortSpec and there is no restriction on specifying ranges.
UePortsRangesNotAllowed:
summary: Ranges at uePorts are not allowed
value:
code: INVALID_INPUT
message: "Ranges not allowed: uePorts"
If these examples are not upto date, could we please remove them?
The text was updated successfully, but these errors were encountered:
@sfnuser yes, some of the error response examples are not consistent and make no sense within v0.8.0. We had some other examples during the review of the documentation (cf for example #71 (comment)). Luckily they are only examples and need not to be implemented. And yes, we should be more consistent here in the upcoming version.
If I'm not mistaken the two error responses you mentioned are both related to the initial thought that the uePort is needed if a public IPv4 address should to be resolved to identify an UE. In this case the uePort is needed in addition to the IPv4 address and it can't be a range. My current hope is that @eric-murray plans to clean up the error message examples in his planned PR for #34. It should then also be clearer in the spec what is expected from the API caller.
Beyond that: if an operator does not implement a certain parameter or option of the spec, the 501 code "Not Implement" might be more appropriate. As we want to use this error code I will open up a new issue to introduce it into the spec.
In
CreateSession
,400
error response the following example is provided.This meant to say that
uePorts
is a required param. However, theCreateSession
definition mentionesuePorts
as optional param.Which one is correct?
Same way in the below example, it is mentioned port ranges are not allowed for
uePorts
. However,uePorts
is of typePortSpec
and there is no restriction on specifying ranges.If these examples are not upto date, could we please remove them?
The text was updated successfully, but these errors were encountered: