Any violation of this article which occurs with the knowledge, express or implied, of a party to a contract or sale shall render such contract or sale voidable at the option of the city council.