What should I wear?

The short answer

Shoulders and knees covered.

The medina is a residential neighbourhood — you're walking through streets where families live, children play, and elderly residents sit in doorways. Covering up is about respect for the community, not the law.