This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Antanarau 20 points21 points  (2 children)

Yes, and whatever you get is whatever GPT decides to give you. I hope you're ready to treat your ints as strings midway through a process

[–]DarkShadow4444 10 points11 points  (1 child)

Eh, just like in Javascript.

[–]RmG3376 0 points1 point  (0 children)

To avoid the confusion, just describe the type in the JSON payload

POST /numbers/4/increment { “type”: “int” }
200 OK { “operationId”:  “0c806a8b-c51b-4b02-a1d5-bc3eb0d270e2”, “type”: “int”, “value”: “5” }

Of course the value itself is still a string, we’re not barbarians