publish: Fixed validation problems

generated from commit 8102a2d6b2f585325340b7e0eda03102e9ad61d7