Forum Discussion

GT's avatar
GT
Occasional Visitor
2 months ago

How to not encode special HTML characters in SwaggerHub xml format

Hi,
i have an API with data body stored in "<" ,"![CDATA[]]" and ">" characters. But The UI transform it to HTML code.
How can i change that?

An exemple of what I need to send in the request body:

“    requestBody:

        content:

         

          application/xml:

            schema:

              $ref: '#/components/schemas/Candidat_POST'

            example:

              # Properties of the referenced object

              Candidat:

                numerosuccursale: "<![CDATA[SI]]>"

                identifiantcandidatpartenaire: '<![CDATA[12]]>'

                referenceposte: '<![CDATA[123589.25]]>'

                titre: '<![CDATA[1]]>'

                nom: '<![CDATA[Dupont]]>'

                prenom: '<![CDATA[Jacques]]>'

I have search in the SwaggerHub and YAML documentation, but i found nothing.

Thank you in advence for your help.

Best regards.

No RepliesBe the first to reply