fix validation error serializer
use the correct formats for swagger