DEV: Fix several type issues with the api docs (PR #14016)

nullable is no longer a valid type, and types also can’t be an empty string, so just bringing a number of issues with types in compliance with the openapi spec.

GitHub