From 2b22ea189b5347b5635f24a2e37a77056c4e7ae7 Mon Sep 17 00:00:00 2001 From: dphuang2 Date: Sat, 4 Nov 2023 20:43:14 -0700 Subject: [PATCH] format response as code (#335) --- .../src/main/resources/python/README_common.handlebars | 4 ++-- .../sdks/leap-workflows-sdks/sdks/python/README.md | 4 ++-- .../sdks/python-pydantic-list-in-union/python/README.md | 2 +- .../sdks/python-pydantic-list-response/python/README.md | 2 +- .../python/README.md | 4 ++-- .../python-pydantic-reserved-namespace-model/python/README.md | 2 +- .../sdks/python-pydantic-responses/python/README.md | 4 ++-- .../sdks/python-pydantic-union/python/README.md | 2 +- .../sdks/python-typeddict-responses/python/README.md | 2 +- .../tests/__snapshots__/leap-workflows-sdks.test.ts.snap | 4 ++-- .../__snapshots__/python-pydantic-list-in-union.test.ts.snap | 2 +- .../__snapshots__/python-pydantic-list-response.test.ts.snap | 2 +- ...python-pydantic-recursively-convert-to-models.test.ts.snap | 4 ++-- .../python-pydantic-reserved-namespace-model.test.ts.snap | 2 +- .../__snapshots__/python-pydantic-responses.test.ts.snap | 4 ++-- .../tests/__snapshots__/python-pydantic-union.test.ts.snap | 2 +- .../__snapshots__/python-typeddict-responses.test.ts.snap | 2 +- 17 files changed, 24 insertions(+), 24 deletions(-) diff --git a/generator/konfig-generator-api/src/main/resources/python/README_common.handlebars b/generator/konfig-generator-api/src/main/resources/python/README_common.handlebars index fd3d1aed4..aeedea8b4 100644 --- a/generator/konfig-generator-api/src/main/resources/python/README_common.handlebars +++ b/generator/konfig-generator-api/src/main/resources/python/README_common.handlebars @@ -144,9 +144,9 @@ To access raw HTTP response values, use the `.raw` namespace. #### 🔄 Return {{#if prstv2}} -[{{{name}}}](./{{packageName}}/pydantic/{{classFilename}}.py) +[`{{{name}}}`](./{{packageName}}/pydantic/{{classFilename}}.py) {{else}} -[{{{name}}}](./{{packageName}}/type/{{classFilename}}.py) +[`{{{name}}}`](./{{packageName}}/type/{{classFilename}}.py) {{/if}} {{/with}} diff --git a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/README.md b/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/README.md index e3a837686..1ff827ea6 100644 --- a/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/README.md +++ b/generator/konfig-integration-tests/sdks/leap-workflows-sdks/sdks/python/README.md @@ -138,7 +138,7 @@ The ID of the workflow run to retrieve. #### 🔄 Return -[WorkflowRunEntity](./leap_workflows/type/workflow_run_entity.py) +[`WorkflowRunEntity`](./leap_workflows/type/workflow_run_entity.py) #### 🌐 Endpoint @@ -182,7 +182,7 @@ The URL to which the workflow results should be sent to on completion. [`WorkflowRunPostRequest`](./leap_workflows/type/workflow_run_post_request.py) #### 🔄 Return -[WorkflowRunEntity](./leap_workflows/type/workflow_run_entity.py) +[`WorkflowRunEntity`](./leap_workflows/type/workflow_run_entity.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-list-in-union/python/README.md b/generator/konfig-integration-tests/sdks/python-pydantic-list-in-union/python/README.md index ae04b253f..2ea23fcae 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-list-in-union/python/README.md +++ b/generator/konfig-integration-tests/sdks/python-pydantic-list-in-union/python/README.md @@ -127,7 +127,7 @@ fetch_response = pythonpydanticlistinunion.test.fetch() #### 🔄 Return -[Response](./python_pydantic_list_in_union/pydantic/response.py) +[`Response`](./python_pydantic_list_in_union/pydantic/response.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-list-response/python/README.md b/generator/konfig-integration-tests/sdks/python-pydantic-list-response/python/README.md index ff4b86148..851c7af7b 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-list-response/python/README.md +++ b/generator/konfig-integration-tests/sdks/python-pydantic-list-response/python/README.md @@ -127,7 +127,7 @@ fetch_response = pythonpydanticlistresponse.test.fetch() #### 🔄 Return -[TestFetchResponse](./python_pydantic_list_response/pydantic/test_fetch_response.py) +[`TestFetchResponse`](./python_pydantic_list_response/pydantic/test_fetch_response.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-recursively-convert-to-models/python/README.md b/generator/konfig-integration-tests/sdks/python-pydantic-recursively-convert-to-models/python/README.md index 723c83761..a45abeed1 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-recursively-convert-to-models/python/README.md +++ b/generator/konfig-integration-tests/sdks/python-pydantic-recursively-convert-to-models/python/README.md @@ -139,7 +139,7 @@ fetch_response = pythonpydanticrecursivelyconverttomodels.test.fetch() #### 🔄 Return -[TestFetchResponse](./python_pydantic_recursively_convert_to_models/pydantic/test_fetch_response.py) +[`TestFetchResponse`](./python_pydantic_recursively_convert_to_models/pydantic/test_fetch_response.py) #### 🌐 Endpoint @@ -161,7 +161,7 @@ list_response = pythonpydanticrecursivelyconverttomodels.test.list() #### 🔄 Return -[ListInner](./python_pydantic_recursively_convert_to_models/pydantic/list_inner.py) +[`ListInner`](./python_pydantic_recursively_convert_to_models/pydantic/list_inner.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-reserved-namespace-model/python/README.md b/generator/konfig-integration-tests/sdks/python-pydantic-reserved-namespace-model/python/README.md index 0565db3c7..d00772480 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-reserved-namespace-model/python/README.md +++ b/generator/konfig-integration-tests/sdks/python-pydantic-reserved-namespace-model/python/README.md @@ -137,7 +137,7 @@ fetch_response = pythonpydanticreservednamespacemodel.test.fetch() #### 🔄 Return -[TestFetchResponse](./python_pydantic_reserved_namespace_model/pydantic/test_fetch_response.py) +[`TestFetchResponse`](./python_pydantic_reserved_namespace_model/pydantic/test_fetch_response.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/README.md b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/README.md index 5b2986301..3979b83db 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/README.md +++ b/generator/konfig-integration-tests/sdks/python-pydantic-responses/python/README.md @@ -157,7 +157,7 @@ The input parameter to process. #### 🔄 Return -[TestFetchResponse](./python_pydantic/pydantic/test_fetch_response.py) +[`TestFetchResponse`](./python_pydantic/pydantic/test_fetch_response.py) #### 🌐 Endpoint @@ -179,7 +179,7 @@ reserved_word_response = pythonpydanticresponses.test.reserved_word() #### 🔄 Return -[TestReservedWord](./python_pydantic/pydantic/test_reserved_word.py) +[`TestReservedWord`](./python_pydantic/pydantic/test_reserved_word.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/sdks/python-pydantic-union/python/README.md b/generator/konfig-integration-tests/sdks/python-pydantic-union/python/README.md index 4db34c9c7..f3b8522d5 100644 --- a/generator/konfig-integration-tests/sdks/python-pydantic-union/python/README.md +++ b/generator/konfig-integration-tests/sdks/python-pydantic-union/python/README.md @@ -128,7 +128,7 @@ fetch_response = pythonpydanticunion.test.fetch() #### 🔄 Return -[TestFetchResponse](./python_pydantic_union/pydantic/test_fetch_response.py) +[`TestFetchResponse`](./python_pydantic_union/pydantic/test_fetch_response.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/README.md b/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/README.md index bf54cfc9f..e7b36a5f3 100644 --- a/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/README.md +++ b/generator/konfig-integration-tests/sdks/python-typeddict-responses/python/README.md @@ -130,7 +130,7 @@ The input parameter to process. #### 🔄 Return -[TestFetchResponse](./python_typeddict/type/test_fetch_response.py) +[`TestFetchResponse`](./python_typeddict/type/test_fetch_response.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/tests/__snapshots__/leap-workflows-sdks.test.ts.snap b/generator/konfig-integration-tests/tests/__snapshots__/leap-workflows-sdks.test.ts.snap index b030630aa..589fd7e3b 100644 --- a/generator/konfig-integration-tests/tests/__snapshots__/leap-workflows-sdks.test.ts.snap +++ b/generator/konfig-integration-tests/tests/__snapshots__/leap-workflows-sdks.test.ts.snap @@ -140,7 +140,7 @@ The ID of the workflow run to retrieve. #### 🔄 Return -[WorkflowRunEntity](./leap_workflows/type/workflow_run_entity.py) +[\`WorkflowRunEntity\`](./leap_workflows/type/workflow_run_entity.py) #### 🌐 Endpoint @@ -184,7 +184,7 @@ The URL to which the workflow results should be sent to on completion. [\`WorkflowRunPostRequest\`](./leap_workflows/type/workflow_run_post_request.py) #### 🔄 Return -[WorkflowRunEntity](./leap_workflows/type/workflow_run_entity.py) +[\`WorkflowRunEntity\`](./leap_workflows/type/workflow_run_entity.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-list-in-union.test.ts.snap b/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-list-in-union.test.ts.snap index 1de3c621e..74381f7ad 100644 --- a/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-list-in-union.test.ts.snap +++ b/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-list-in-union.test.ts.snap @@ -130,7 +130,7 @@ fetch_response = pythonpydanticlistinunion.test.fetch() #### 🔄 Return -[Response](./python_pydantic_list_in_union/pydantic/response.py) +[\`Response\`](./python_pydantic_list_in_union/pydantic/response.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-list-response.test.ts.snap b/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-list-response.test.ts.snap index f2679c0e9..1f126174c 100644 --- a/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-list-response.test.ts.snap +++ b/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-list-response.test.ts.snap @@ -130,7 +130,7 @@ fetch_response = pythonpydanticlistresponse.test.fetch() #### 🔄 Return -[TestFetchResponse](./python_pydantic_list_response/pydantic/test_fetch_response.py) +[\`TestFetchResponse\`](./python_pydantic_list_response/pydantic/test_fetch_response.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-recursively-convert-to-models.test.ts.snap b/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-recursively-convert-to-models.test.ts.snap index 191e383ca..69f326843 100644 --- a/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-recursively-convert-to-models.test.ts.snap +++ b/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-recursively-convert-to-models.test.ts.snap @@ -142,7 +142,7 @@ fetch_response = pythonpydanticrecursivelyconverttomodels.test.fetch() #### 🔄 Return -[TestFetchResponse](./python_pydantic_recursively_convert_to_models/pydantic/test_fetch_response.py) +[\`TestFetchResponse\`](./python_pydantic_recursively_convert_to_models/pydantic/test_fetch_response.py) #### 🌐 Endpoint @@ -164,7 +164,7 @@ list_response = pythonpydanticrecursivelyconverttomodels.test.list() #### 🔄 Return -[ListInner](./python_pydantic_recursively_convert_to_models/pydantic/list_inner.py) +[\`ListInner\`](./python_pydantic_recursively_convert_to_models/pydantic/list_inner.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-reserved-namespace-model.test.ts.snap b/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-reserved-namespace-model.test.ts.snap index f4366777f..56e20f736 100644 --- a/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-reserved-namespace-model.test.ts.snap +++ b/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-reserved-namespace-model.test.ts.snap @@ -140,7 +140,7 @@ fetch_response = pythonpydanticreservednamespacemodel.test.fetch() #### 🔄 Return -[TestFetchResponse](./python_pydantic_reserved_namespace_model/pydantic/test_fetch_response.py) +[\`TestFetchResponse\`](./python_pydantic_reserved_namespace_model/pydantic/test_fetch_response.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-responses.test.ts.snap b/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-responses.test.ts.snap index 70d826a71..58f32f242 100644 --- a/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-responses.test.ts.snap +++ b/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-responses.test.ts.snap @@ -160,7 +160,7 @@ The input parameter to process. #### 🔄 Return -[TestFetchResponse](./python_pydantic/pydantic/test_fetch_response.py) +[\`TestFetchResponse\`](./python_pydantic/pydantic/test_fetch_response.py) #### 🌐 Endpoint @@ -182,7 +182,7 @@ reserved_word_response = pythonpydanticresponses.test.reserved_word() #### 🔄 Return -[TestReservedWord](./python_pydantic/pydantic/test_reserved_word.py) +[\`TestReservedWord\`](./python_pydantic/pydantic/test_reserved_word.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-union.test.ts.snap b/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-union.test.ts.snap index 1ba7abfe1..3791eb3b1 100644 --- a/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-union.test.ts.snap +++ b/generator/konfig-integration-tests/tests/__snapshots__/python-pydantic-union.test.ts.snap @@ -131,7 +131,7 @@ fetch_response = pythonpydanticunion.test.fetch() #### 🔄 Return -[TestFetchResponse](./python_pydantic_union/pydantic/test_fetch_response.py) +[\`TestFetchResponse\`](./python_pydantic_union/pydantic/test_fetch_response.py) #### 🌐 Endpoint diff --git a/generator/konfig-integration-tests/tests/__snapshots__/python-typeddict-responses.test.ts.snap b/generator/konfig-integration-tests/tests/__snapshots__/python-typeddict-responses.test.ts.snap index 137cbd261..b15154ff9 100644 --- a/generator/konfig-integration-tests/tests/__snapshots__/python-typeddict-responses.test.ts.snap +++ b/generator/konfig-integration-tests/tests/__snapshots__/python-typeddict-responses.test.ts.snap @@ -133,7 +133,7 @@ The input parameter to process. #### 🔄 Return -[TestFetchResponse](./python_typeddict/type/test_fetch_response.py) +[\`TestFetchResponse\`](./python_typeddict/type/test_fetch_response.py) #### 🌐 Endpoint