Releases: marle3003/mokapi
Releases · marle3003/mokapi
v0.27.1
v0.27.0
🚀 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
v0.25.3
🚀 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
🚀 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
v0.25.0
v0.24.1
v0.24.0
🚀 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
🐞 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.