Files
fastapi-openapi-to-postman/test/data/toBundleExamples/properties/root.yaml
Erik Mendoza 446e8651e5 Resolving properties as a reusable component
Resolve each property as a different schema instead of inline
2022-06-08 18:15:03 -05:00

23 lines
671 B
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"