safer conversion of grape accepted types to swagger types