@typespec/http-client-python 0.4.4 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/dist/emitter/emitter.d.ts.map +1 -1
  2. package/dist/emitter/emitter.js +110 -24
  3. package/dist/emitter/emitter.js.map +1 -1
  4. package/dist/emitter/http.js +1 -1
  5. package/dist/emitter/http.js.map +1 -1
  6. package/dist/emitter/lib.d.ts +1 -0
  7. package/dist/emitter/lib.d.ts.map +1 -1
  8. package/dist/emitter/lib.js +1 -0
  9. package/dist/emitter/lib.js.map +1 -1
  10. package/dist/emitter/run-python3.d.ts +2 -0
  11. package/dist/emitter/run-python3.d.ts.map +1 -0
  12. package/dist/emitter/run-python3.js +19 -0
  13. package/dist/emitter/run-python3.js.map +1 -0
  14. package/dist/emitter/system-requirements.d.ts +17 -0
  15. package/dist/emitter/system-requirements.d.ts.map +1 -0
  16. package/dist/emitter/system-requirements.js +167 -0
  17. package/dist/emitter/system-requirements.js.map +1 -0
  18. package/emitter/src/emitter.ts +111 -23
  19. package/emitter/src/http.ts +1 -1
  20. package/emitter/src/lib.ts +2 -0
  21. package/emitter/src/run-python3.ts +20 -0
  22. package/emitter/src/system-requirements.ts +261 -0
  23. package/emitter/temp/tsconfig.tsbuildinfo +1 -1
  24. package/eng/scripts/Test-Packages.ps1 +1 -1
  25. package/eng/scripts/ci/regenerate.ts +20 -8
  26. package/eng/scripts/setup/__pycache__/venvtools.cpython-38.pyc +0 -0
  27. package/eng/scripts/setup/build.ts +16 -0
  28. package/eng/scripts/setup/build_pygen_wheel.py +40 -0
  29. package/eng/scripts/setup/install.py +9 -8
  30. package/eng/scripts/setup/install.ts +12 -0
  31. package/eng/scripts/setup/prepare.py +3 -1
  32. package/eng/scripts/setup/prepare.ts +11 -0
  33. package/eng/scripts/setup/run-python3.ts +1 -6
  34. package/generator/build/lib/pygen/__init__.py +107 -0
  35. package/generator/build/lib/pygen/_version.py +7 -0
  36. package/generator/build/lib/pygen/black.py +71 -0
  37. package/generator/build/lib/pygen/codegen/__init__.py +357 -0
  38. package/generator/build/lib/pygen/codegen/_utils.py +17 -0
  39. package/generator/build/lib/pygen/codegen/models/__init__.py +204 -0
  40. package/generator/build/lib/pygen/codegen/models/base.py +186 -0
  41. package/generator/build/lib/pygen/codegen/models/base_builder.py +118 -0
  42. package/generator/build/lib/pygen/codegen/models/client.py +435 -0
  43. package/generator/build/lib/pygen/codegen/models/code_model.py +237 -0
  44. package/generator/build/lib/pygen/codegen/models/combined_type.py +149 -0
  45. package/generator/build/lib/pygen/codegen/models/constant_type.py +129 -0
  46. package/generator/build/lib/pygen/codegen/models/credential_types.py +214 -0
  47. package/generator/build/lib/pygen/codegen/models/dictionary_type.py +127 -0
  48. package/generator/build/lib/pygen/codegen/models/enum_type.py +238 -0
  49. package/generator/build/lib/pygen/codegen/models/imports.py +291 -0
  50. package/generator/build/lib/pygen/codegen/models/list_type.py +143 -0
  51. package/generator/build/lib/pygen/codegen/models/lro_operation.py +142 -0
  52. package/generator/build/lib/pygen/codegen/models/lro_paging_operation.py +32 -0
  53. package/generator/build/lib/pygen/codegen/models/model_type.py +357 -0
  54. package/generator/build/lib/pygen/codegen/models/operation.py +509 -0
  55. package/generator/build/lib/pygen/codegen/models/operation_group.py +184 -0
  56. package/generator/build/lib/pygen/codegen/models/paging_operation.py +155 -0
  57. package/generator/build/lib/pygen/codegen/models/parameter.py +412 -0
  58. package/generator/build/lib/pygen/codegen/models/parameter_list.py +387 -0
  59. package/generator/build/lib/pygen/codegen/models/primitive_types.py +659 -0
  60. package/generator/build/lib/pygen/codegen/models/property.py +170 -0
  61. package/generator/build/lib/pygen/codegen/models/request_builder.py +189 -0
  62. package/generator/build/lib/pygen/codegen/models/request_builder_parameter.py +115 -0
  63. package/generator/build/lib/pygen/codegen/models/response.py +348 -0
  64. package/generator/build/lib/pygen/codegen/models/utils.py +21 -0
  65. package/generator/build/lib/pygen/codegen/serializers/__init__.py +574 -0
  66. package/generator/build/lib/pygen/codegen/serializers/base_serializer.py +21 -0
  67. package/generator/build/lib/pygen/codegen/serializers/builder_serializer.py +1533 -0
  68. package/generator/build/lib/pygen/codegen/serializers/client_serializer.py +294 -0
  69. package/generator/build/lib/pygen/codegen/serializers/enum_serializer.py +15 -0
  70. package/generator/build/lib/pygen/codegen/serializers/general_serializer.py +213 -0
  71. package/generator/build/lib/pygen/codegen/serializers/import_serializer.py +126 -0
  72. package/generator/build/lib/pygen/codegen/serializers/metadata_serializer.py +198 -0
  73. package/generator/build/lib/pygen/codegen/serializers/model_init_serializer.py +33 -0
  74. package/generator/build/lib/pygen/codegen/serializers/model_serializer.py +335 -0
  75. package/generator/build/lib/pygen/codegen/serializers/operation_groups_serializer.py +89 -0
  76. package/generator/build/lib/pygen/codegen/serializers/operations_init_serializer.py +44 -0
  77. package/generator/build/lib/pygen/codegen/serializers/parameter_serializer.py +221 -0
  78. package/generator/build/lib/pygen/codegen/serializers/patch_serializer.py +19 -0
  79. package/generator/build/lib/pygen/codegen/serializers/request_builders_serializer.py +52 -0
  80. package/generator/build/lib/pygen/codegen/serializers/sample_serializer.py +168 -0
  81. package/generator/build/lib/pygen/codegen/serializers/test_serializer.py +292 -0
  82. package/generator/build/lib/pygen/codegen/serializers/types_serializer.py +31 -0
  83. package/generator/build/lib/pygen/codegen/serializers/utils.py +68 -0
  84. package/generator/build/lib/pygen/codegen/templates/client.py.jinja2 +37 -0
  85. package/generator/build/lib/pygen/codegen/templates/client_container.py.jinja2 +12 -0
  86. package/generator/build/lib/pygen/codegen/templates/config.py.jinja2 +73 -0
  87. package/generator/build/lib/pygen/codegen/templates/config_container.py.jinja2 +16 -0
  88. package/generator/build/lib/pygen/codegen/templates/conftest.py.jinja2 +28 -0
  89. package/generator/build/lib/pygen/codegen/templates/enum.py.jinja2 +13 -0
  90. package/generator/build/lib/pygen/codegen/templates/enum_container.py.jinja2 +10 -0
  91. package/generator/build/lib/pygen/codegen/templates/init.py.jinja2 +24 -0
  92. package/generator/build/lib/pygen/codegen/templates/keywords.jinja2 +27 -0
  93. package/generator/build/lib/pygen/codegen/templates/lro_operation.py.jinja2 +16 -0
  94. package/generator/build/lib/pygen/codegen/templates/lro_paging_operation.py.jinja2 +18 -0
  95. package/generator/build/lib/pygen/codegen/templates/macros.jinja2 +12 -0
  96. package/generator/build/lib/pygen/codegen/templates/metadata.json.jinja2 +167 -0
  97. package/generator/build/lib/pygen/codegen/templates/model_base.py.jinja2 +1174 -0
  98. package/generator/build/lib/pygen/codegen/templates/model_container.py.jinja2 +15 -0
  99. package/generator/build/lib/pygen/codegen/templates/model_dpg.py.jinja2 +97 -0
  100. package/generator/build/lib/pygen/codegen/templates/model_init.py.jinja2 +33 -0
  101. package/generator/build/lib/pygen/codegen/templates/model_msrest.py.jinja2 +92 -0
  102. package/generator/build/lib/pygen/codegen/templates/operation.py.jinja2 +21 -0
  103. package/generator/build/lib/pygen/codegen/templates/operation_group.py.jinja2 +75 -0
  104. package/generator/build/lib/pygen/codegen/templates/operation_groups_container.py.jinja2 +19 -0
  105. package/generator/build/lib/pygen/codegen/templates/operation_tools.jinja2 +81 -0
  106. package/generator/build/lib/pygen/codegen/templates/operations_folder_init.py.jinja2 +17 -0
  107. package/generator/build/lib/pygen/codegen/templates/packaging_templates/CHANGELOG.md.jinja2 +6 -0
  108. package/generator/build/lib/pygen/codegen/templates/packaging_templates/LICENSE.jinja2 +21 -0
  109. package/generator/build/lib/pygen/codegen/templates/packaging_templates/MANIFEST.in.jinja2 +8 -0
  110. package/generator/build/lib/pygen/codegen/templates/packaging_templates/README.md.jinja2 +107 -0
  111. package/generator/build/lib/pygen/codegen/templates/packaging_templates/dev_requirements.txt.jinja2 +9 -0
  112. package/generator/build/lib/pygen/codegen/templates/packaging_templates/setup.py.jinja2 +108 -0
  113. package/generator/build/lib/pygen/codegen/templates/paging_operation.py.jinja2 +21 -0
  114. package/generator/build/lib/pygen/codegen/templates/patch.py.jinja2 +19 -0
  115. package/generator/build/lib/pygen/codegen/templates/pkgutil_init.py.jinja2 +1 -0
  116. package/generator/build/lib/pygen/codegen/templates/request_builder.py.jinja2 +28 -0
  117. package/generator/build/lib/pygen/codegen/templates/request_builders.py.jinja2 +10 -0
  118. package/generator/build/lib/pygen/codegen/templates/rest_init.py.jinja2 +12 -0
  119. package/generator/build/lib/pygen/codegen/templates/sample.py.jinja2 +44 -0
  120. package/generator/build/lib/pygen/codegen/templates/serialization.py.jinja2 +2117 -0
  121. package/generator/build/lib/pygen/codegen/templates/test.py.jinja2 +50 -0
  122. package/generator/build/lib/pygen/codegen/templates/testpreparer.py.jinja2 +26 -0
  123. package/generator/build/lib/pygen/codegen/templates/types.py.jinja2 +7 -0
  124. package/generator/build/lib/pygen/codegen/templates/validation.py.jinja2 +38 -0
  125. package/generator/build/lib/pygen/codegen/templates/vendor.py.jinja2 +96 -0
  126. package/generator/build/lib/pygen/codegen/templates/version.py.jinja2 +4 -0
  127. package/generator/build/lib/pygen/m2r.py +65 -0
  128. package/generator/build/lib/pygen/preprocess/__init__.py +515 -0
  129. package/generator/build/lib/pygen/preprocess/helpers.py +27 -0
  130. package/generator/build/lib/pygen/preprocess/python_mappings.py +226 -0
  131. package/generator/build/lib/pygen/utils.py +163 -0
  132. package/generator/component-detection-pip-report.json +134 -0
  133. package/generator/dev_requirements.txt +0 -1
  134. package/generator/dist/pygen-0.1.0-py3-none-any.whl +0 -0
  135. package/generator/pygen/codegen/__init__.py +4 -4
  136. package/generator/pygen.egg-info/PKG-INFO +7 -4
  137. package/generator/pygen.egg-info/requires.txt +7 -4
  138. package/generator/setup.py +7 -4
  139. package/generator/test/azure/mock_api_tests/asynctests/test_azure_client_generator_core_flatten_async.py +1 -1
  140. package/generator/test/{generic_mock_api_tests/asynctests/test_payload_pageable_async.py → azure/mock_api_tests/asynctests/test_azure_payload_pageable_async.py} +1 -1
  141. package/generator/test/azure/mock_api_tests/conftest.py +5 -4
  142. package/generator/test/azure/mock_api_tests/test_azure_client_generator_core_flatten.py +1 -1
  143. package/generator/test/{generic_mock_api_tests/test_payload_pageable.py → azure/mock_api_tests/test_azure_payload_pageable.py} +1 -1
  144. package/generator/test/{generic_mock_api_tests → azure/mock_api_tests}/test_resiliency_srv_driven.py +4 -2
  145. package/generator/test/{generic_mock_api_tests/asynctests → azure/mock_api_tests}/test_resiliency_srv_driven_async.py +3 -2
  146. package/generator/test/azure/requirements.txt +9 -8
  147. package/generator/test/generic_mock_api_tests/conftest.py +9 -4
  148. package/generator/test/unbranded/mock_api_tests/conftest.py +4 -4
  149. package/generator/test/unbranded/mock_api_tests/test_unbranded.py +1 -1
  150. package/generator/test/unbranded/requirements.txt +1 -8
  151. package/package.json +10 -10
  152. package/generator/requirements.txt +0 -12
  153. /package/generator/test/{generic_mock_api_tests → azure/mock_api_tests}/asynctests/test_client_naming_async.py +0 -0
  154. /package/generator/test/{generic_mock_api_tests → azure/mock_api_tests}/asynctests/test_client_structure_async.py +0 -0
  155. /package/generator/test/{generic_mock_api_tests → azure/mock_api_tests}/test_client_naming.py +0 -0
  156. /package/generator/test/{generic_mock_api_tests → azure/mock_api_tests}/test_client_structure.py +0 -0
@@ -0,0 +1,18 @@
1
+ {% import 'operation_tools.jinja2' as op_tools with context %}
2
+ {% import 'keywords.jinja2' as keywords with context %}
3
+ {# actual template starts here #}
4
+ {% if operation.overloads and operation.include_documentation %}
5
+ {{ op_tools.generate_overloads(operation_serializer, operation) }}
6
+ {% endif %}
7
+ {{ operation_serializer.method_signature_and_response_type_annotation(operation) }}
8
+ {{ op_tools.description(operation, operation_serializer) | indent }}
9
+ {% if not operation.abstract %}
10
+ {% if operation_serializer.pop_kwargs_from_signature(operation) %}
11
+ {{ op_tools.serialize(operation_serializer.pop_kwargs_from_signature(operation)) | indent }}
12
+ {% endif %}
13
+ {{ op_tools.serialize(operation_serializer.set_up_params_for_pager(operation)) | indent }}
14
+
15
+ {{ op_tools.serialize(operation_serializer.initial_call(operation)) | indent }}
16
+ {{ op_tools.serialize(operation_serializer.get_long_running_output(operation)) | indent }}
17
+ {{ op_tools.serialize(operation_serializer.return_lro_poller(operation)) | indent }}
18
+ {% endif %}
@@ -0,0 +1,12 @@
1
+ {% macro wrap_model_string(doc_string, wrap_string, suffix_string="") %}
2
+ {% set original_result = doc_string | wordwrap(width=95, break_long_words=False, break_on_hyphens=False, wrapstring=wrap_string) %}
3
+ {% set list_result = original_result.split('\n') %}
4
+ {% for line in list_result %}
5
+ {% set suffix = suffix_string if list_result | length == loop.index %}
6
+ {% if line | length > 120 %}
7
+ {{ line + " # pylint: disable=line-too-long" }}{{ suffix }}
8
+ {% else %}
9
+ {{ line }}{{ suffix }}
10
+ {% endif %}
11
+ {% endfor %}
12
+ {% endmacro %}
@@ -0,0 +1,167 @@
1
+ {% import 'operation_tools.jinja2' as op_tools %}
2
+ {% import 'keywords.jinja2' as keywords %}
3
+ {
4
+ "chosen_version": {{ chosen_version | tojson }},
5
+ "total_api_version_list": {{ total_api_version_list | tojson }},
6
+ "client": {
7
+ "name": {{ client.name | tojson }},
8
+ "filename": {{ ("_" + client.legacy_filename) | tojson }},
9
+ "description": {{ client.description | tojson }},
10
+ "host_value": {{ (client.parameters.host.client_default_value_declaration if not client.has_parameterized_host else None) | tojson }},
11
+ "parameterized_host_template": {{ (keywords.escape_str(client.url) if client.has_parameterized_host else None) | tojson }},
12
+ "azure_arm": {{ client.code_model.options["azure_arm"] | tojson }},
13
+ "has_public_lro_operations": {{ client.has_public_lro_operations | tojson }},
14
+ "client_side_validation": {{ client.code_model.options["client_side_validation"] | tojson }},
15
+ "sync_imports": {{ sync_client_imports | tojson }},
16
+ "async_imports": {{ async_client_imports | tojson }}
17
+ },
18
+ "global_parameters": {
19
+ "sync": {
20
+ {% for gp in global_parameters.method | rejectattr("client_name", "equalto", "api_version") | rejectattr("is_host") %}
21
+ {{ gp.client_name | tojson }}: {
22
+ "signature": {{ gp.method_signature(async_mode=False) | tojson }},
23
+ "description": {{ gp.description | tojson }},
24
+ "docstring_type": {{ gp.docstring_type(async_mode=False) | tojson }},
25
+ "required": {{ (not gp.optional) | tojson }},
26
+ "method_location": {{ gp.method_location | tojson }}
27
+ }{{ "," if not loop.last else "" }}
28
+ {% endfor %}
29
+ },
30
+ "async": {
31
+ {% for gp in global_parameters.method | rejectattr("client_name", "equalto", "api_version") | rejectattr("is_host") %}
32
+ {{ gp.client_name | tojson }}: {
33
+ "signature": {{ (gp.method_signature(async_mode=True)) | tojson }},
34
+ "description": {{ gp.description | tojson }},
35
+ "docstring_type": {{ gp.docstring_type(async_mode=True) | tojson }},
36
+ "required": {{ (not gp.optional) | tojson }}
37
+ }{{ "," if not loop.last else "" }}
38
+ {% endfor %}
39
+ },
40
+ "constant": {
41
+ {% for gp in client.parameters.constant | rejectattr("client_name", "equalto", "api_version") %}
42
+ {{ gp.client_name | tojson }}: {{ gp.constant_declaration | tojson }}{{ "," if not loop.last else "" }}
43
+ {% endfor %}
44
+ },
45
+ "call": {{ client.parameters.method | rejectattr("client_name", "equalto", "api_version") | rejectattr("is_host") | map(attribute="client_name") | join(', ') | tojson }},
46
+ "service_client_specific": {
47
+ "sync": {
48
+ "api_version": {
49
+ "signature": "api_version: Optional[str]=None,",
50
+ "description": "API version to use if no profile is provided, or if missing in profile.",
51
+ "docstring_type": "str",
52
+ "required": false,
53
+ "method_location": "positional"
54
+ },
55
+ {% if not client.has_parameterized_host %}
56
+ "base_url": {
57
+ "signature": {{ client.parameters.host.method_signature(async_mode=False) | tojson }},
58
+ "description": "Service URL",
59
+ "docstring_type": "str",
60
+ "required": false,
61
+ "method_location": "positional"
62
+ },
63
+ {% endif %}
64
+ "profile": {
65
+ "signature": "profile: KnownProfiles=KnownProfiles.default,",
66
+ "description": "A profile definition, from KnownProfiles to dict.",
67
+ "docstring_type": "azure.profiles.KnownProfiles",
68
+ "required": false,
69
+ "method_location": "positional"
70
+ }
71
+ },
72
+ "async": {
73
+ "api_version": {
74
+ "signature": "api_version: Optional[str] = None,",
75
+ "description": "API version to use if no profile is provided, or if missing in profile.",
76
+ "docstring_type": "str",
77
+ "required": false,
78
+ "method_location": "positional"
79
+ },
80
+ {% if not client.has_parameterized_host %}
81
+ "base_url": {
82
+ "signature": {{ client.parameters.host.method_signature(async_mode=True) | tojson }},
83
+ "description": "Service URL",
84
+ "docstring_type": "str",
85
+ "required": false,
86
+ "method_location": "positional"
87
+ },
88
+ {% endif %}
89
+ "profile": {
90
+ "signature": "profile: KnownProfiles = KnownProfiles.default,",
91
+ "description": "A profile definition, from KnownProfiles to dict.",
92
+ "docstring_type": "azure.profiles.KnownProfiles",
93
+ "required": false,
94
+ "method_location": "positional"
95
+ }
96
+ }
97
+ }
98
+ },
99
+ "config": {
100
+ "credential": {{ has_credential | tojson }},
101
+ "credential_scopes": {{ (client.credential.type.policy.credential_scopes if has_credential and client.credential.type.policy.credential_scopes is defined else None)| tojson}},
102
+ "credential_call_sync": {{ (client.credential.type.policy.call(async_mode=False) if has_credential else None) | tojson }},
103
+ "credential_call_async": {{ (client.credential.type.policy.call(async_mode=True) if has_credential else None) | tojson }},
104
+ "sync_imports": {{ sync_config_imports | tojson }},
105
+ "async_imports": {{ async_config_imports | tojson }}
106
+ },
107
+ "operation_groups": {
108
+ {% for operation_group in client.operation_groups | rejectattr('is_mixin') %}
109
+ {{ operation_group.property_name | tojson }}: {{ operation_group.class_name | tojson }}{{ "," if not loop.last else "" }}
110
+ {% endfor %}
111
+ }{{ "," if mixin_operations }}
112
+ {% if mixin_operations %}
113
+ "operation_mixins": {
114
+ "sync_imports": {{ str(sync_mixin_imports) | tojson }},
115
+ "async_imports": {{ str(async_mixin_imports) | tojson }},
116
+ "sync_mixin_typing_definitions": {{ str(sync_mixin_typing_definitions) | tojson }},
117
+ "async_mixin_typing_definitions": {{ str(async_mixin_typing_definitions) | tojson }},
118
+ "operations": {
119
+ {% for operation in mixin_operations %}
120
+ {{ operation.name | tojson }} : {
121
+ {% set request_builder = operation.request_builder %}
122
+ "sync": {
123
+ {% set operation_serializer = get_sync_operation_serializer(operation) %}
124
+ {% if is_lro(operation) and is_paging(operation) %}
125
+ {% from "lro_paging_operation.py.jinja2" import operation_docstring with context %}
126
+ {% set sync_return_type_wrapper = [operation.get_poller(async_mode=False), operation.get_pager(async_mode=False)] %}
127
+ {% elif is_lro(operation) %}
128
+ {% from "lro_operation.py.jinja2" import operation_docstring with context %}
129
+ {% set sync_return_type_wrapper = [operation.get_poller(async_mode=False)] %}
130
+ {% elif is_paging(operation) %}
131
+ {% from "paging_operation.py.jinja2" import operation_docstring with context %}
132
+ {% set sync_return_type_wrapper = [operation.get_pager(async_mode=False)] %}
133
+ {% else %}
134
+ {% from "operation.py.jinja2" import operation_docstring with context %}
135
+ {% set sync_return_type_wrapper = "" %}
136
+ {% endif %}
137
+ "signature": {{ (operation_serializer.method_signature_and_response_type_annotation(operation, want_decorators=False) + "\n") | tojson }},
138
+ "doc": {{ op_tools.description(operation, operation_serializer).rstrip("\n") | tojson }},
139
+ "call": {{ operation.parameters.call | join(', ') | tojson }}
140
+ },
141
+ "async": {
142
+ {% set coroutine = False if (is_paging(operation) and not is_lro(operation)) else True %}
143
+ {% set operation_serializer = get_async_operation_serializer(operation) %}
144
+ "coroutine": {{ coroutine | tojson }},
145
+ {% if is_lro(operation) and is_paging(operation) %}
146
+ {% from "lro_paging_operation.py.jinja2" import operation_docstring with context %}
147
+ {% set async_return_type_wrapper = [operation.get_poller(async_mode=True), operation.get_pager(async_mode=True)] %}
148
+ {% elif is_lro(operation) %}
149
+ {% from "lro_operation.py.jinja2" import operation_docstring with context %}
150
+ {% set async_return_type_wrapper = [operation.get_poller(async_mode=True)] %}
151
+ {% elif is_paging(operation) %}
152
+ {% from "paging_operation.py.jinja2" import operation_docstring with context %}
153
+ {% set async_return_type_wrapper = [operation.get_pager(async_mode=True)] %}
154
+ {% else %}
155
+ {% from "operation.py.jinja2" import operation_docstring with context %}
156
+ {% set async_return_type_wrapper = "" %}
157
+ {% endif %}
158
+ "signature": {{ (operation_serializer.method_signature_and_response_type_annotation(operation, want_decorators=False) + "\n") | tojson }},
159
+ "doc": {{ op_tools.description(operation, operation_serializer).rstrip("\n") | tojson }},
160
+ "call": {{ operation.parameters.call | join(', ') | tojson }}
161
+ }
162
+ }{{ "," if not loop.last else "" }}
163
+ {% endfor %}
164
+ }
165
+ }
166
+ {% endif %}
167
+ }