Skip to content

Commit

Permalink
[docstring] generated_api.pyのdoctsringの_fromfromに変更した。 (#429)
Browse files Browse the repository at this point in the history
* update api.mustache

* openapig generatorのバージョンを変更

* update

* updat mustache
  • Loading branch information
yuji38kwmt committed Mar 15, 2022
1 parent 50b9fbd commit ad6f376
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
16 changes: 8 additions & 8 deletions annofabapi/generated_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ def get_input_data_list(
input_data_name (str): 入力データ名での部分一致検索で使用。1文字以上あれば使用します。最大文字列長300文字。大文字小文字は区別しません。
input_data_path (str): 入力データパスでの部分一致検索で使用。1文字以上あれば使用します。最大文字列長300文字。
task_id (str): 入力データが紐づくタスクIDの部分一致検索で使用。1文字以上あれば使用します。最大文字列長300文字。大文字小文字は区別しません。条件に合致した先頭100件のタスクに使われている入力データを検索します。
_from (str): 更新日時での範囲検索で使用(ISO 8601 拡張形式)
from (str): 更新日時での範囲検索で使用(ISO 8601 拡張形式)
to (str): 更新日時での範囲検索で使用(ISO 8601 拡張形式)
page (int): 検索結果のうち、取得したいページの番号(1始まり)
limit (int): 1ページあたりの取得するデータ件数
Expand Down Expand Up @@ -1766,7 +1766,7 @@ def get_organization_input_data_list(
input_data_name (str): 入力データ名での部分一致検索で使用。1文字以上あれば使用します。
input_data_path (str): 入力データパスでの部分一致検索で使用。1文字以上あれば使用します。
task_id (str): 入力データが紐づくタスクIDの部分一致検索で使用。1文字以上あれば使用します。条件に合致した先頭100件のタスクに使われている入力データを検索します。
_from (str): 更新日時での範囲検索で使用(ISO 8601 拡張形式)
from (str): 更新日時での範囲検索で使用(ISO 8601 拡張形式)
to (str): 更新日時での範囲検索で使用(ISO 8601 拡張形式)
page (int): 検索結果のうち、取得したいページの番号(1始まり)
limit (int): 1ページあたりの取得するデータ件数
Expand Down Expand Up @@ -2562,7 +2562,7 @@ def get_account_daily_statistics(
Args:
project_id (str): プロジェクトID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Expand Down Expand Up @@ -2593,7 +2593,7 @@ def get_inspection_daily_statistics(
Args:
project_id (str): プロジェクトID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Expand Down Expand Up @@ -2672,7 +2672,7 @@ def get_phase_daily_statistics(
Args:
project_id (str): プロジェクトID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Expand Down Expand Up @@ -2727,7 +2727,7 @@ def get_task_daily_statistics(
Args:
project_id (str): プロジェクトID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Expand Down Expand Up @@ -2758,7 +2758,7 @@ def get_worktime_daily_statistics(
Args:
project_id (str): プロジェクトID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Expand Down Expand Up @@ -2790,7 +2790,7 @@ def get_worktime_daily_statistics_by_account(
project_id (str): プロジェクトID (required)
account_id (str): アカウントID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Expand Down
12 changes: 6 additions & 6 deletions annofabapi/generated_api2.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def get_account_daily_statistics_v2(
Args:
project_id (str): プロジェクトID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Expand Down Expand Up @@ -423,7 +423,7 @@ def get_inspection_daily_statistics_v2(
Args:
project_id (str): プロジェクトID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Expand Down Expand Up @@ -484,7 +484,7 @@ def get_phase_daily_statistics_v2(
Args:
project_id (str): プロジェクトID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Expand Down Expand Up @@ -515,7 +515,7 @@ def get_task_daily_statistics_v2(
Args:
project_id (str): プロジェクトID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Expand Down Expand Up @@ -547,7 +547,7 @@ def get_worktime_daily_statistics_by_account_v2(
project_id (str): プロジェクトID (required)
account_id (str): アカウントID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Expand Down Expand Up @@ -578,7 +578,7 @@ def get_worktime_daily_statistics_v2(
Args:
project_id (str): プロジェクトID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Expand Down
2 changes: 1 addition & 1 deletion generate/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ docker run --rm -u `id -u`:`id -g` -v ${PWD}:/local -w /local -e JAVA_OPTS=${
--input-spec swagger/swagger-models.yaml \
${OPENAPI_GENERATOR_CLI_COMMON_OPTION} \
--template-dir /local/template \
--global-property ,models,modelTests=false,modelDocs=false \
--global-property models,modelTests=false,modelDocs=false \
--ignore-file-override=/local/.openapi-generator-ignore_v1

cat partial-header/models_partial_header_v1.py out/openapi_client/models/*.py partial-footer/models_partial_footer.py> ../annofabapi/models.py
Expand Down
2 changes: 1 addition & 1 deletion generate/template/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{{#hasQueryParams}}
query_params (Dict[str, Any]): Query Parameters
{{#queryParams}}
{{paramName}} ({{dataType}}): {{#description}} {{{description}}}{{/description}}{{#required}} (required){{/required}}{{#optional}}(optional){{/optional}}
{{baseName}} ({{dataType}}): {{#description}} {{{description}}}{{/description}}{{#required}} (required){{/required}}{{#optional}}(optional){{/optional}}
{{/queryParams}}
{{/hasQueryParams}}
{{#hasHeaderParams}}
Expand Down
3 changes: 1 addition & 2 deletions generate/template/model.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ class {{classname}}(Enum):

{{#allowableValues}}
{{#enumVars}}
{{name}} = {{{value}}}{{^-last}}
{{/-last}}
{{name}} = {{{value}}}
{{/enumVars}}
{{/allowableValues}}

Expand Down

0 comments on commit ad6f376

Please sign in to comment.