Closed kopackiw closed 5 years ago
Prerequisites:
Action:
Problem:
index.json
yarn run v1.12.3 $ /Users/wko/Programming/multi-file-swagger-example/node_modules/.bin/multi-file-swagger index.yaml { "swagger": "2.0", "info": { "version": "0.0.0", "title": "Simple API" }, "paths": { "/foo": { "get": { "responses": { "200": { "description": "OK" } } } }, "/bar": { "get": { "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/User" } } } } } }, "definitions": { "User": { "type": "object", "properties": { "name": { "type": "string" } } } } } Done in 0.25s.
compiled.yaml
$ /Users/wko/Programming/multi-file-swagger-example/node_modules/.bin/multi-file-swagger -o yaml index.yaml swagger: '2.0' info: version: 0.0.0 title: Simple API paths: /foo: get: responses: '200': description: OK /bar: get: responses: '200': description: OK schema: $ref: '#/definitions/User' definitions: User: type: object properties: name: type: string Done in 0.28s.
Prerequisites:
Action:
Problem:
the output of yarn console is attached to those files
index.json
compiled.yaml