/
lib.yaml
47 lines (44 loc) · 956 Bytes
/
lib.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
%YAML 1.2
---
openapi: 3.0.0
info:
title: Library
description: Collection of reusable standard definitions.
version: 2.0.0
paths: {}
components:
schemas:
Error:
type: object
properties:
error:
type: string
maxLength: 1
error_description:
type: string
maxLength: 1
status_code:
type: string
test:
$ref: ./URIError.yaml#/components/schemas/Foo
NotFound:
oneOf:
- $ref: '#/components/schemas/DoesntExist'
- $ref: '#/components/schemas/JustCantFindIt'
DoesntExist:
type: object
properties:
id:
type: string
JustCantFindIt:
type: object
properties:
name:
type: string
responses:
NotFoundResponse:
description: Not Found.
content:
application/json:
schema:
$ref: '#/components/schemas/NotFound'