UNPKG

api-spec-converter

Version:

Convert API descriptions between popular formats such as OpenAPI(fka Swagger), RAML, API Blueprint, WADL, etc.

51 lines (49 loc) 918 B
definitions: ImageFormat: enum: - gif - jpeg - png type: string x-ms-enum: modelAsString: true name: ImageType info: title: test version: 0.0.1 paths: /foo: post: consumes: - multipart/form-data operationId: getFoo parameters: - in: formData name: name type: string - enum: - gif - jpeg - png in: formData name: format type: string x-ms-enum: modelAsString: true name: ImageType - format: binary in: formData name: image required: true type: string produces: - application/json responses: '200': description: Foo schema: type: object tags: - Foos swagger: '2.0' x-components: {}