Swagger API : should not accept Null I have added the following to the swagger definition for the api.