File: allof_with_description_only.yaml

package info (click to toggle)
python-datamodel-code-generator 0.45.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,052 kB
  • sloc: python: 29,621; makefile: 15
file content (17 lines) | stat: -rw-r--r-- 379 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
openapi: "3.0.0"
info:
  title: Test API
  version: "1.0.0"
paths: {}
components:
  schemas:
    MyModel:
      type: object
      description: A model that has a description.
      properties:
        name:
          type: string
    MyOtherModel:
      allOf:
        - $ref: "#/components/schemas/MyModel"
      description: Another model that should also have a description.