Skip to content

Releases: mattpolzin/jsonapi-openapi-test-server

CLI Improvements

20 Jul 02:06
451e482
Compare
Choose a tag to compare
CLI Improvements Pre-release
Pre-release
  • 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.

⚠️ Breaking Changes ⚠️
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

18 Jul 08:28
Compare
Choose a tag to compare
Pre-release

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

18 Jul 01:28
Compare
Choose a tag to compare
Message Tweaks Pre-release
Pre-release

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

12 Jul 20:43
372c35b
Compare
Choose a tag to compare
Pre-release

This release adds fallback parsing of JSON:API request or response payloads as "generic JSON structures."

Concurrency Wins

11 Jul 23:29
20fe722
Compare
Choose a tag to compare
Concurrency Wins Pre-release
Pre-release

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

04 Jul 03:10
Compare
Choose a tag to compare
0.4.0 Pre-release
Pre-release
  • 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

10 Jun 03:27
Compare
Choose a tag to compare

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.

07 Jun 23:26
Compare
Choose a tag to compare
Pre-release

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.

01 Jun 07:10
Compare
Choose a tag to compare
Pre-release
0.3.0

Update for JSONAPI v4 release

Error logging bug fix

27 May 06:59
Compare
Choose a tag to compare
Error logging bug fix Pre-release
Pre-release

Was not logging request errors.