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
exportdeclareclassV1HTTPGetAction{
...
/** * Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. */'port': object;
...
As you can see, the port type is object. However, the comments in the class is indicating it should be a Name or number.
When I look at the Kubernetes documentation, it seems that port are provided by either a string or a number:
livenessProbe:
httpGet:
path: /healthz
port: liveness-port <--- either a string indicating port name, or a number for the port
I'm wondering should port be type of number | string instead? Or let me know if I'm missing anything else. If somebody else can confirm this understanding is correct, I can create a PR for this.
** I'm using the latest version 0.11.2.
The text was updated successfully, but these errors were encountered:
This is a duplicate of #370, I've been trying to figure out what happened, there's something in the representation of an IntOrString in the swagger spec that doesn't work right with the code generator.
The typing of
port
seems to be incorrect:As you can see, the
port
type isobject
. However, the comments in the class is indicating it should be a Name or number.When I look at the Kubernetes documentation, it seems that
port
are provided by either a string or a number:I'm wondering should
port
be type ofnumber | string
instead? Or let me know if I'm missing anything else. If somebody else can confirm this understanding is correct, I can create a PR for this.** I'm using the latest version
0.11.2
.The text was updated successfully, but these errors were encountered: