mswjs / source

Generate MSW request handlers from various sources (HAR files, OpenAPI documents, etc).
https://source.mswjs.io
134 stars 5 forks source link

@yellow-ticket/seed-json-schema should use "example" if it is provided #50

Closed vchirikov closed 2 months ago

vchirikov commented 2 months ago

Hi, I found that @yellow-ticket/seed-json-schema only uses examples property of schema, but some of frameworks generate example property,

"commit": {
  "type": "string",
  "description": "Full git commit hash",
  "example": "80a3fb1345c65f324bb4d56e09b240ac183d9446"
}

It will be nice to have a check for the example property too.

kettanaito commented 2 months ago

Hi, @vchirikov. Thanks for raising this!

I made the repo for https://github.com/yellow-ticket/seed-json-schema public so we can discuss this issue there.