The `operations` array is a required field on the `api` object. It can be empty though, so maybe if I move that above the validator check and only push in the spec if it validates.