Date: January 2, 2019 | Updated: January 13, 2019
OpenAPI Generator Integration
OpenAPI Generator is now integrated into Senya Editor. It can be accessed through the Generate context menu or the Code menu item in the top toolbar. It allows you to run, configure, save and load one or multiple generator configurations at a time.
One or more generators can be added at a time. The filter field can be used to quickly find the generators you’re looking for. You can filter by type, language, framework and status. Filters can be combined to make the query more specific, e.g. “JAX-RS server”
Each generator has its own set of configuration options. When you hover over an option’s label or one of its combobox items, a tooltip is shown with extra information. Options are grouped where applicable for a better overview.
More advanced options like type mappings and reserved keywords are currently not configurable through the GUI.
You can load one or more OpenAPI Generator configurations. A JSON file containing either a JSON object or JSON array is expected. It is fully compatible with existing OpenAPI Generator configurations. Some parts of the configuration are currently not displayed in the GUI (e.g. type mappings, reserved keywords), but those parts are still passed to OpenAPI Generator when you hit the generate button.
You can save one or more OpenAPI Generator configurations as a JSON file. A single configuration is stored as a JSON object. It uses the same configuration properties as OpenAPI Generator, so that you can use the saved configuration directly with OpenAPI Generator CLI or the OpenAPI Generator Gradle plugin.
Single File Specification
A single file specification is generated for each input specification, so that OpenAPI Generator is able to process the specification. This means that all JSON references that point to other files are localized and the schema it points to is added to the specification. In the idea.log file you can find the path to the generated single file specifications in case an error has occurred.
OpenAPI Generator’s output is displayed in the run tool window. The output for each generator is shown in a separate console.
Removed functionality that made it possible to use header definitions as parameters, because header definitions can only be used for response headers.
– Fixed resolving circular JSON references when generating single file specification.
– Fixed NullPointerException and IllegalStateException when the plugin is activated and deactivated multiple times.
With the 1.0.0 version release, Senya Editor is becoming a paid plugin.
Renewable trial keys that were introduced in version 0.18.0 convert to a 15 day free trial. New users get a 3 day free trial.
In the next upcoming releases you can expect:
– More informative error messages for all validations.
– Extra quick fixes for all validations.
– Improved completion templates.