You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your great plugin!
Does it support convert Swagger2.0(https://swagger.io/specification/v2/)?
I tried to run kulala-fmt convert swagger.json to covert a swagger json file to http file.
Although it can get http file successfully, it lacks of request body.
For example:
From:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for your great plugin!
Does it support convert Swagger2.0(https://swagger.io/specification/v2/)?
I tried to run
kulala-fmt convert swagger.jsonto covert a swagger json file to http file.Although it can get http file successfully, it lacks of request body.
For example:
From:
{ "schemes": [], "swagger": "2.0", "info": { "description": "", "title": "Swagger Test API", "contact": {}, "version": "0.1" }, "host": "", "basePath": "/api/v1", "paths": { "/account/test": { "post": { "description": "test-v1", "consumes": ["application/json"], "produces": ["application/json"], "tags": ["Account"], "summary": "test-v1", "parameters": [ { "type": "string", "description": "token", "name": "Authorization", "in": "header", "required": true }, { "description": "JSON", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/Demo.TestReq" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Demo.TestResp" } } } } } }, "definitions": { "Demo.TestReq": { "type": "object", "properties": { "user_id": { "type": "integer" } } } } }To:
I expect this result:
Beta Was this translation helpful? Give feedback.
All reactions