swagger parameters code example
Example 1: query parameter swagger
parameters:
- in: query
name: offset
schema:
type: integer
description: The number of items to skip before starting to collect the result set
- in: query
name: limit
schema:
type: integer
description: The numbers of items to return
Example 2: swagger query parameter
parameters:
- in: query
name: limit
schema:
type: integer
required: false
description: The numbers of items to return
Example 3: swagger parameters oneof
# Correct
oneOf:
- type: string
- type: integer