Handle swagger “required” properly.
(don’t emit it if empty, add all elements not tagged omitempty to it)