scalar-property-missing-example
Requires string, integer, number, and boolean properties in schemas to define example.
| Attribute | Value |
|---|---|
| Category | Examples |
| Maturity | Silver |
| Starter–Recommended | Off |
| Strict | Warning |
| Complete | Error |
See it fail
type: object
properties:
amount:
type: number
Fix it
type: object
properties:
amount:
type: number
example: 12.5
Nearby: no-invalid-schema-examples.