Closed katyatitkova closed 2 weeks ago
Great catch!
My current tooling sets nullable items to strings by default, but I should update that functionality.
This is a great PR, I'm going to make a small change later and merge this in. Thank you!
Hi @LukeHagar! I checked plexgo v0.10.0 and it looks like this change isn't reflected there (as well as #31). Is it intentional, or did I forget to make some other changes that are required?
Could be a CI/Automation issue, I'll take a look.
The current type is definitely generated correctly
https://github.com/LukeHagar/plexgo/blob/main/models/operations/getpin.go#L179
Can you validate it updated successfully?
Hmm, it looks like I experienced some kind of a caching issue with Github. Before I posted here, go get
seemingly fetched v0.9.0 while showing that it fetched v0.10.0, and Github showed old code when I was choosing either main
branch or v0.10.0 tag. I see the new code now here on Github, and re-running go get
fetched the correct version with the changes included. Thank you for checking and sorry for bothering!
Maybe that was simpler than the cashing issue as I found another newRegistration
field that still wasn't bool
, so maybe I saw the code for this endpoint when I first experienced problems. (I checked for #31 as well, but might have wrongly understood that as well.) #32 fixes it.
I'm using the Go SDK, and whenever I tried to get the token, I was getting the following error:
Error: error unmarshalling json response body: json: cannot unmarshal bool into Go value of type string
. I downloaded the SDK code and changed theNewRegistration
type to bool, and it works now. I assume it's the place where the type should be changed.