Forum Discussion

meaton78's avatar
meaton78
Occasional Visitor
6 years ago

Ensure API definition does not contain non-UTF-8 characters

We are looking for a way to validate that our API definition only contains UTF-8 characters.  Certain special characters break functionality when deploying to our API platform.  Is there any way that this can be validated in SwaggerHub while creating the API?

1 Reply

  • Hi,

     

    There is nothing in the SwaggerHub editor which will detect non UTF-8 characters and flag them as invalid.  It may be better for you to copy your spec and put it in a UTF-8 check tool to flag any characters that are not UTF-8 encoded.  See the one below which may help.

     

    https://onlineutf8tools.com/validate-utf8

     

     

    Regards,

    Marcus

    SmartBear Support