Releases: mattpolzin/jsonapi-openapi-test-server
CLI Improvements
- swap out Vapor command for ArgumentParser library.
- Also clean up and document command arguments a bit better.
- Don't bother formatting code that is not being dumped.
- Offer a good interface for switching between fast and stable JSON parsing.
- Allow the user to specify the location to dump files if desired.
The --dump-files
CLI argument used to be a flag but now it requires the location to dump files as its value. You can specify "./out"
to get the same behavior as the flag used to trigger.
Improved messages for network failures
When an API Test fails due to a network error, the error is printed out much more clearly now and the test case exits early instead of hitting other errors that are really just because the network failure prevented anything useful from happening in the test.
Message Tweaks
A few message tweaks including noting the number of warnings/errors at the end of test building prior to running tests.
Non-JSON:API body parsing
This release adds fallback parsing of JSON:API request or response payloads as "generic JSON structures."
Concurrency Wins
Fixes #7.
Makes concurrent test handling much better.
- Handle tests as part of a jobs queue.
- Support jobs queue in-process, but recommend as its own service.
- Add docker-compose file including queues service setup.
- Don't hold onto and re-use the same Database for the duration of the long-lived testing process; instead recreate a database once per status update as if handling new requests each time.
- Put blocking tasks in test running process on packthread threads using the NIO thread pool.
0.4.0
- Log info messages.
- Improve warnings for JSON:API resource swift gen failures.
- Add test names to output of context for tests when available.
- Fix numerous edge cases around API interpretation by using new resolved (canonical) types from OpenAPIKit.
Fix bugs with source and properties creation
Fix bugs where source and property creation resulted in duplicate database records even though there's no reason to have dupes. Fix bug with database field for URL being a TEXT whereas Fluent expected a JSON field.
Add options to command line tool.
Add --openapi-file
and --override-server
command line options to APITest
test
command. These allow you to specify the input file (alternative to API_TEST_IN_FILE
environment variable) and override the server specified by the OpenAPI documentation for test requests.
Update for JSONAPI v4 release.
0.3.0 Update for JSONAPI v4 release
Error logging bug fix
Was not logging request errors.