autorest/Samples/test/error-behavior/openapi-yaml-bad-reference/tiny.yaml

38 строки
675 B
YAML

swagger: '2.0'
info:
description: This is a sample.
version: 1.0.0
title: Cowbell Factory
host: localhost
schemes:
- https
consumes:
- application/json
produces:
- application/json
paths:
"/cowbell":
post:
description: A good description.
operationId: Cowbell_Add
parameters:
- in: body
name: body
required: true
schema:
$ref: '#/definitions/Cowball'
responses:
'200':
description: Cowbell was added.
definitions:
Cowbell:
required:
- name
properties:
id:
type: integer
format: int64
name:
type: string
description: A cowbell.