openapi-sampler icon indicating copy to clipboard operation
openapi-sampler copied to clipboard

Specify default value for the integer example

Open hverlin opened this issue 4 years ago • 1 comments

This is a feature request.

Would it be possible to change the default example value for the integer type? Right now the default is 0, but since an integer is usually an id, it often makes more sense to use 1 in the examples.

Right now, the workaround is to specify the example every time an integer type is defined.

Not sure if this feature request would make sense for other types as well?

hverlin avatar Jan 27 '20 13:01 hverlin

This makes sense. PR would be appreciated!

RomanHotsiy avatar Jun 27 '20 15:06 RomanHotsiy