Tag: swagger-codegen

  1. Fixing "io.swagger.client.ApiException: Content type "text/plain" is not supported" problem

    Let's say we have a endpoint definition in swagger like this : /hello: post: summary: Say hello description: '' operationId: sayHello consumes: - text/plain produces: - application/json parameters: - in: body name: body required: false schema: type: string responses: '200': description: successful operation schema: $ref: '#/definitions/Hello' You…

    on swagger-codegen swagger java

  2. How to pretty print JSON in bash console

    Recently i was playing with Swagger Codegen tool and i needed to look at available configuration fields for java language. You can do it easily by running : curl -X GET --header 'Accept: application/json' 'https://generator.swagger.io/api/gen/clients/java' But, as an output, you'll get this : {"…

    on swagger-codegen javascript bash json prettyprint