forked from loafle/openapi-generator-original
* Upgrade erlang-server code generation and fix is_authorized crashes * Introduce structured logging * Improve general formatting * Update generated files * Enable erlang server on CI * Add echo-server testing to CI * Require OTP27 explicitly in the generated rebar.config file * Rework handler and API With this work, json validation becomes optional, fully implemented in the `_api` module as it was before, but without being forcibly called by the `_handler`. It is instead left as optional for the user to take advantage of the exposed callbacks. Jesse also chooses draft-06 as a default, but these can be chosen manually by the user too, as long as jesse implements them. `_handler` also becomes lighter, it now handles all mime types transparently by forwarding to a user-given module that must implement `accept_callback/4` and `provide_callback/4` as described in the `_logic_handler` callbacks. These will simply be the return values of cowboy_rest's `content_types_accepted` and `content_types_provided` respectively, and should simply comply with their defined APIs. They only get two parameters extending the behaviour, so that the user-given callback can pattern-match on them: the path prefix of the logic handler, and the operationID of the call. * Fix return types for provide_callbacks * Upgrade jesse to incur no dependencies The less dependencies the built code requires the better. * Fix dialyzer errors in the generated code * Apply stronger dialyzer checks
24 lines
1.0 KiB
Plaintext
24 lines
1.0 KiB
Plaintext
# OpenAPI Generator Ignore
|
|
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
|
|
# Use this file to prevent files from being overwritten by the generator.
|
|
# The patterns follow closely to .gitignore or .dockerignore.
|
|
|
|
# As an example, the C# client generator defines ApiClient.cs.
|
|
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
#ApiClient.cs
|
|
|
|
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
#foo/*/qux
|
|
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
|
|
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
#foo/**/qux
|
|
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
|
|
# You can also negate patterns with an exclamation (!).
|
|
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
#docs/*.md
|
|
# Then explicitly reverse the ignore rule for a single file:
|
|
#!docs/README.md
|