File: issue_2953.yaml

package info (click to toggle)
python-datamodel-code-generator 0.55.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,792 kB
  • sloc: python: 44,931; makefile: 22
file content (65 lines) | stat: -rw-r--r-- 2,212 bytes parent folder | download | duplicates (2)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
openapi: "3.0.0"
info:
    title: Issue 2953 Test
    version: "1.0.0"
components:
    schemas:
        Collection-Wrapper:
            description: Generic response wrapper containing a collection of items and pagination metadata.
            type: object
            required:
                - data
                - pagination
            properties:
                data:
                    description: Array of items in the collection.
                    type: array
                    items:
                        type: object
                pagination:
                    description: Pagination metadata for the collection.
                    $ref: "#/components/schemas/Metadata"
        DataType:
            type: object
            required:
                - id
            properties:
                property_1:
                    type: string
                    format: uuid
                    readOnly: true
                    description: Unique identifier for the installation.
                property_2:
                    type: string
                    description: Description of the installation.
                property_3:
                    type: string
                    format: date-time
                    readOnly: true
                    description: Timestamp when the installation was created.

        PaginatedDataTypeList:
            allOf:
                - properties:
                      data:
                          type: array
                          items:
                              $ref: "#/components/schemas/DataType"
                - $ref: "#/components/schemas/Collection-Wrapper"
        Metadata:
            type: object
            required:
                - limit
                - page
            properties:
                limit:
                    type: integer
                    minimum: 1
                    maximum: 100
                    description: Number of data types returned in this response
                    example: 20
                page:
                    type: integer
                    minimum: 1
                    description: The page number to retrieve
                    example: 2