connexion icon indicating copy to clipboard operation
connexion copied to clipboard

Generate examples in MockResolver with JSF library

Open mjp4 opened this issue 1 year ago • 3 comments

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"

mjp4 avatar Feb 09 '24 17:02 mjp4

@RobbeSneyders I hope that you will be happy to merge this in based on https://github.com/spec-first/connexion/pull/1718#issuecomment-1628662131

Let me know if you have any questions or comments.

mjp4 avatar Feb 09 '24 17:02 mjp4

You'll need to bump the jsonschema version to >=4.17.3 to fix the pipeline.

Can you also add this to the CLI docs?

RobbeSneyders avatar Feb 13 '24 22:02 RobbeSneyders

You'll need to bump typing-extensions to >=4.6.1 as well.

RobbeSneyders avatar Feb 15 '24 13:02 RobbeSneyders