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
# Fix naming conflict in generated code (field HasChildren vs method HasChildren)
# Rename the HasChildren() method that checks Children array to ChildrenIsSet()
if [ -f "./client/model_public_comment.go" ]; then
sed -i 's/func (o \*PublicComment) HasChildren() bool {/func (o *PublicComment) ChildrenIsSet() bool {/' ./client/model_public_comment.go
sed -i 's/\/\/ HasChildren returns a boolean if a field has been set\.$/\/\/ ChildrenIsSet returns a boolean if a field has been set./' ./client/model_public_comment.go
echo "Applied naming conflict fix to model_public_comment.go"