Forum Discussion
ponelat
2 years agoStaff
The 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/
Related Content
Recent Discussions
- 6 hours agonoob_Vibes