Files
fastapi-openapi-to-postman/test/data/validationData/issues/issue#478/path-variable-does-not-match-spec.yaml
Erik Mendoza 7005ff538e Fix the naming and extracting function to commonUtils
Renaming some variables and extracting a method to common utils
2022-03-14 11:33:02 -06:00

65 lines
1.3 KiB
YAML

openapi: "3.0.0"
info:
version: 1.0.0
title: Swagger Petstore
license:
name: MIT
servers:
- url: http://petstore.swagger.io/v1
paths:
/pets/{peterId}:
get:
summary: Info for a specific pet
operationId: showPetById
tags:
- pets
parameters:
- name: peterId
in: path
required: true
description: The id of the pet to retrieve
schema:
type: string
responses:
'200':
description: Expected response to a valid request
content:
application/json:
schema:
$ref: "#/components/schemas/Pet"
default:
description: unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
components:
schemas:
Pet:
type: object
required:
- id
- name
properties:
id:
type: integer
format: int64
name:
type: string
tag:
type: string
Pets:
type: array
items:
$ref: "#/components/schemas/Pet"
Error:
type: object
required:
- code
- message
properties:
code:
type: integer
format: int32
message:
type: string