Closed k-yomo closed 3 months ago
Thanks for the PR!
If the published
field isn't returned than we should make it optional, e.g. nullable and not populate when we think we know what the value should be.
So let's just change published
to *bool
and no longer set it based on the published_at
value when parsing a response and we should be good to go.
@oliver006
Thanks for the review!
I fixed published
to *bool
as suggested!
This PR adds
Published
field to Page to make it possible to passpublished
parameter for create/update. Also not to let user confuse, the field will be consistent withpublished_at
when it's read.https://shopify.dev/docs/api/admin-rest/2024-07/resources/page#post-pages-examples