api-spec-converter
Version:
Convert API descriptions between popular formats such as OpenAPI(fka Swagger), RAML, API Blueprint, WADL, etc.
33 lines (31 loc) • 504 B
YAML
definitions:
Foo:
properties:
bar: {}
type: object
OtherBar:
properties:
other:
type: string
type: object
SomeBar:
type: string
info:
title: test
version: 0.0.1
paths:
/foo:
get:
operationId: getFoo
parameters: []
produces:
- application/hal+json
responses:
'200':
description: Foo
schema:
$ref: '#/definitions/Foo'
tags:
- Foos
swagger: '2.0'
x-components: {}