Skip to content

Releases: tmizuma/openapi-test-data-generator

Release v3.1.1

22 Oct 13:01
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Run program under a space-containing directory throw Error "no such file or directory (#7)

❤️ Contributions
Thank you, contributors 🥰!

Release v3.1.0

04 Mar 03:51
Compare
Choose a tag to compare

⚡️ Features and Enhancements

  • Add support for JSON test data format (#3)
# Example usage:
$ otdgen generate -i example-openapi.yaml -o output/ -ext .json -ai true -api-key <Your API KEY>

Please refer to our README
NPM Package: https://www.npmjs.com/package/otdgen

Release v3.0.0 OpenAI integration🎉 🎉

26 Feb 22:46
Compare
Choose a tag to compare

⚡️ Features and Enhancements
We're thrilled to announce our latest release, which brings powerful integration with OpenAI to our platform! 🎉
This new feature will revolutionize the way you develop front-end applications by providing test data that closely mimics actual data, without the need to wait for back-end implementation to be completed.

Using our OpenAPI schema file in YAML format and an API key for OpenAI, you can easily generate appropriate test data from property names with just a few simple commands. After creating an output folder for your test data, use the following command to generate your data:

$ otdgen generate -i example-openapi.yaml -o output/ -ai true -api-key <Your API KEY>

The output data will include generated fields like address and hobby, created by OpenAI to closely resemble the actual data. Here's an example:

export const profile = {
	family_name: 'Smith', // generated by OpenAI!!
	age: 38, // random value between minimum and maximum
	address: '123 Main Street, Anytown, USA', // generated by OpenAI!!
	birthdate: '2002-07-23', // random value
	sex: 'MALE', // random value from enum definition
	hobby: ['Playing the guitar', 'Painting', 'Gardening'] // generated by OpenAI!!
};

Please refer to our README
NPM Package: https://www.npmjs.com/package/otdgen

We hope this new feature will be a game-changer for your development process, and we can't wait to see what you create with our platform's OpenAI integration!