Local was wrong
The local was wrong and had no authority to force you to wear a jacket.
Has OC always been the law in Indiana? Many years ago I was stopped by a local in Lebanon while wearing my shoulder holster and he made me put my jacket on stating I was required to conceal. This was driving, not walking around but he insisted so I didn't argue.
The local was wrong and had no authority to force you to wear a jacket.