Files
fastapi-openapi-to-postman/test/data/toBundleExamples/schema_collision_from_responses/root.yaml
Erik Mendoza 9441394461 Handling collisions
- Handle external collisions generated from the naming strategy
- Handle local collisions generated by a same named component in local components objects and a new key generated from bundle
2022-06-21 20:23:58 -05:00

43 lines
1.1 KiB
YAML

openapi: 3.0.0
info:
title: Sample API
description: Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML.
version: 0.1.9
servers:
- url: http://api.example.com/v1
description: Optional server description, e.g. Main (production) server
- url: http://staging-api.example.com
description: Optional server description, e.g. Internal staging server for testing
paths:
/users/{userId}:
get:
summary: Get a user by ID
responses:
200:
description: A single user.
content:
application/json:
schema:
$ref: "./schemas__/user.yaml"
/users/weird:
get:
summary: Get a user by ID
responses:
200:
description: A single user.
content:
application/json:
schema:
$ref: "./schemas_/_user.yaml"
/users/other:
get:
summary: Get a user by ID
responses:
200:
description: A single user.
content:
application/json:
schema:
$ref: "./schemas/__user.yaml"