File: max_min_number.yaml

package info (click to toggle)
python-datamodel-code-generator 0.35.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,408 kB
  • sloc: python: 19,888; makefile: 15
file content (30 lines) | stat: -rw-r--r-- 649 bytes parent folder | download
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
openapi: 3.0.3
info:
  title: Product API
  version: 1.0
paths:
  /product:
    post:
      operationId: createProduct
      description: Create new product
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/product'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/product'
components:
  schemas:
    product:
      type: object
      properties:
        price:
          type: number
          minimum: -999999.999999
          maximum: 999999.999999