-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Erlang][Server] Add two options: packageName and openAPISpecName #1303
Conversation
@feihongmeilian the change looks good to me. cc @tsloughter |
@@ -69,6 +69,6 @@ prepare_validator() -> | |||
|
|||
get_openapi_path() -> | |||
{ok, AppName} = application:get_application(?MODULE), | |||
filename:join({{packageName}}_utils:priv_dir(AppName), "openapi.json"). | |||
filename:join({{packageName}}_utils:priv_dir(AppName), "{{openAPISpecName}}.json"). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use {{{openAPISpecName}}}
instead to obtain the original value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (the Travis CI failure is not related to this PR)
@feihongmeilian thanks for the PR, which is included in the v3.3.2 release: https://twitter.com/oas_generator/status/1057649626101112832 |
…penAPITools#1303) * Implement the ability to read packageName and openAPISpecName from a json file * Replace '{{openAPISpecName}}' with '{{{openAPISpecName}}}' * Update erlang-petstore-server
packageName : Specify the prefix to the erl file that generate by openapi-generator.
openAPISpecName : Specify the json file name generated by yaml file