Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate examples with jsf #1891

Merged
merged 9 commits into from
Mar 20, 2024

Conversation

mjp4
Copy link
Contributor

@mjp4 mjp4 commented Feb 21, 2024

Fixes #1719 .

Builds on work of #1718, pulling in external library to provide the fake data from JSON schema.

Changes proposed in this pull request:

  • Use JSF library to generate sample data for mocking APIs without examples.
  • Add this as a new extra dependency "mock"

See discussion on #1870

@coveralls
Copy link

coveralls commented Mar 20, 2024

Coverage Status

coverage: 94.197% (-0.1%) from 94.309%
when pulling a33d69a on mjp4:generate-examples-with-jsf
into ee399fb on spec-first:main.

docs/cli.rst Outdated Show resolved Hide resolved
Copy link
Member

@RobbeSneyders RobbeSneyders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mjp4!

@RobbeSneyders RobbeSneyders merged commit e6ceb1f into spec-first:main Mar 20, 2024
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MockResolver should generate valid example data if no example is provided by the schema.
3 participants