Skip to content

Releases: marle3003/mokapi

v0.27.1

13 Oct 21:33
768f671
Compare
Choose a tag to compare

🐞 Bugfixes

  • fix data generator for (string) format: time

v0.27.0

11 Oct 17:02
07ce20a
Compare
Choose a tag to compare

🚀 Mokapi Release Notes

OpenAPI

  • Added support for OpenAPI 3.2, including:
    • QUERY and custom HTTP methods
    • Querystring parameters
  • Improved OpenAPI path table view in the dashboard
  • Fixed issue removing trailing slashes in server URLs
  • Added OpenAPI tags and filtering in the Web UI

Data Generator & JavaScript faker module

  • Added support for:
    • contains, minContains, and maxContains
    • additionalProperties
    • dependentRequired and dependentSchemas
    • patternProperties with predictable results
    • XML-based JSON Schema definitions
    • Credit card number generation
    • Introduced new CLI parameter: --data-gen-optionalProperties
    • Added consideration of schema $id and JSON pointer paths for more accurate data generation

JavaScript & Event Handling

  • Improved JavaScript event handler tracking when called console.log
  • Added JavaScript shared memory feature for storing and updating values across scripts

Improvements

  • Improved handling when schema type is missing
  • Enhanced generation for:
    • Arrays with prefixItems
    • Objects when required fields are missing in properties
    • Numeric types with default min/max values
    • Complex compositions (anyOf, allOf, oneOf) with objects
  • Adjusted probability for skipping optional properties from 0.7 → 0.85, now configurable via OptionalPropertiesProbability
  • Improved results when using schema IDs and $id references

Fixes

  • Object generation missing required fields
  • Pattern property parsing
  • JSON Schema parser for anyOf, allOf, oneOf, and objects with patternProperties
  • JSON pointer encoded characters (/ and ~)
  • Name generation consistency

Configuration & CLI

  • Fixed config watcher to correctly handle explicit reads while implicit parsing continues
  • Added --data-gen-optionalProperties CLI flag for better control of data generation behavior

Kafka

  • Changed Kafka segment creation to lazy initialization for improved performance

v0.25.4

16 Sep 21:00
9735c88
Compare
Choose a tag to compare

🚀 Changes

  • Improved config loading process

v0.25.3

15 Sep 20:06
2a0ebe6
Compare
Choose a tag to compare

🚀 Changes

  • Added support for light mode in the dashboard.

🐞 Bugfixes

  • Resolved a race condition where config listeners could run before the config was fully parsed.
  • Resolved a missing JSON support issue for Kafka bindings.
  • Fixed handling of confluent.key.schema.validation in Kafka settings.
  • Fixed page buffer handling in the Kafka protocol.

v0.25.2

27 Aug 07:03
2f68197
Compare
Choose a tag to compare

🚀 Changes

  • Improved log messages for HTTP/HTTPS servers, making it easier to diagnose configuration and connection issues.

🐞 Bugfixes

  • Resolved an issue with path parameters when routes had a trailing slash.
  • Fixed file reference handling so listeners are now triggered when reading a file from a reference before the main file.
  • Fixed a deadlock race condition in the ConfigWatcher.
  • Fixed logs and dashboard display when an HTTP request does not match any API.

v0.25.1

25 Aug 11:39
44dcad0
Compare
Choose a tag to compare

🚀 Changes

  • Improved error message when the request's content type does not match any of the specified content types

🐞 Bugfixes

  • Fixed HTTP parameter resolution when the API uses a server URL with a base path

v0.25.0

24 Aug 19:00
78572f9
Compare
Choose a tag to compare

🚀 Changes

  • Improved HTTP routing to better resolve ambiguous paths
  • Enhanced error handling in HTTP routing for clearer diagnostics

🐞 Bugfixes

  • Fixed JSON parser to correctly handle boolean values

v0.24.1

17 Aug 19:49
da60cd9
Compare
Choose a tag to compare

🐞 Bugfixes

Fixed Kafka REST API naming and header

v0.24.0

16 Aug 12:27
d6124d2
Compare
Choose a tag to compare

🚀 Changes

  • Added Kafka REST API to retrieve cluster information, consume records, and produce records
  • Added Bruno collection for Kafka API
  • Always include Accept header in the JavaScript request event parameter
  • Added support for any content type with suffix +json

🐞 Bugfixes

  • Fixed an issue where reloading sometimes didn’t work when a file URL was resolved to file:/ or file:///

v0.23.1

12 Aug 11:34
66152bf
Compare
Choose a tag to compare

🐞 Bugfixes

  • Fixed Kafka CreateTopics API handling
  • Fixed Kafka Fetch response (v12) when no records are available
  • Fixed JavaScript Kafka produce function to correctly resolve the message configuration for the topic.
  • Fixed AsyncAPI 2 → 3 conversion when no operationId is defined.