1.0.1 (2024-01-18)
- add examples to MediaTypeStruct (1eee799)
- examples object structure for value property, tests (453e6f6)
- lint errors, no-mixed-operators, no-trailing-spaces (27ac251)
- linting errors :( (a5baf6a)
- parse: solve remote and circular references (0391803)
- test for invalid schema in examples (525672c)
- Validation: Schema validator now accepts OpenAPI formats (1128a05), closes #19
- add prefer example implementation (02ecd77)
- add support to schema format (fefe0a5)
- Allow custom servers to be injected. (b909180)
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Added support for node 16 and 18
- Moved to new
@faker-js/faker@8
instead of old and nukedfaker
BREAKING CHANGE (See docs for migration) (#63) - The
x-faker
property now has priority overexample
when generating responses BREAKING CHANGE (#59)
- Dropped support for node 10 and 12
- Responses that are just a number are now properly generated (#56)
- Faker locale validation to avoid setting an invalid locale
- Locales without country modifier now work properly (solves docker error with faker) (#55)
null
examples are now allowed and used for response generation (#49)
- Response handling for different mime types (#48)
- Now
x-faker
extension takes precedence in response generation (#53)
- Faker now locale selection now works as expected (#50, #54)
- Now responses with enums pick a random element from the
enum
array - Now JSON request bodies can handle up to 10mb
- Dependencies updated to fix vulnerabilities
- In some cases
oneOf
,anyOf
andallOf
schemas reported an error that wasn't real. This doesn't happen any more - Response handling had an error since last release, which has now been fixed.
- Response header
x-powered-by
has now the correct value - Schema Object
pattern
property can be passed as a string (#35) - Refactor to improve code quality and maintainability (#37)
- Schemas with
oneOf
,anyOf
andallOf
now work properly and don't get wrong default values injected (#41) - Dependencies updated to fix vulnerabilities
quiet
(aliasq
) option to avoid printing every request and response (#24)- CLI: force-quit implemented by pressing
ctrl+c
twice - Added support for custom Server implementation for programmatic usage (#22)
- Added support for custom Schema loader implementation for programmatic usage (#27)
- Added advanced usage docs
- Schema loading and watch feature moved out of CLI layer
- Updated dependencies to fix vulnerabilities
- Huge refactor to improve code quality and separation of concerns (#26, #27)
x-faker
extension is now supported for response generationx-count
extension is now supported for responses with array types- Added support for more formats defined in the OpenAPI specs
- Unknown formats don't throw errors any more
Prefer
header with statusCode now works properly again- Git hooks are now run again with
husky@4
- Tests now run properly when local timezone is not UTC
- Removed CI/CD for node 8
- Support for response section when
examples
property is present usingPrefer
header - Support for more content-types:
application/x-www-form-urlencoded
,text/plain
andapplication/octet-stream
- Dependencies update
- Fixed exclusiveMinimum and exclusiveMaximum validation
- Changed YAML parsing library for better support (#10)
- Added support for path level parameters (#8)
- Path objects are now correctly as they can have extra standard and extended properties (#8)
- Support for every 3.x.x specification version (#6)
- Support for strings in schemas with format
"password"
- Empty response bodies are now handled properly
- Path parameters with underscores are now parsed correctly
- Paths with multiple parameters are now handled properly
- Added credentials in CORS configuration
- Travis deploy config fixed
- OpenAPI naming standarized
- Usage documentation improved
- Fix in header validation for case insensitive
- Added option to watch schema changes
- CORS configuration improved
- Package json repository links
- Security issues with dependencies
latest
docker image tag is now generated
- SIGINT handle improved
- NotFound response uris fixed
- Deployment dependencies fixed
- Installation using npm in README
- Npm and docker releases
- SIGINT handling