Forum Discussion
ponelat
Staff
3 years agoThe short answer is to add `default: 42` (or whatever number you'd like) in the same place that `id` is defined.
Eg:
id:
type: number
description: A simple ID
example: 42
For more details on examples, see: https://swagger.io/docs/specification/adding-examples/