Skip to content

Commit d228971

Browse files
author
Alexandre Krispin
committed
Fix model redirect inside models
1 parent cb7593f commit d228971

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

0001-Customize-templates.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 34118346e37caa4df62c17aec9bcb568f7af7423 Mon Sep 17 00:00:00 2001
1+
From 665e0eb3aa604f0d2a3db2693bdf2a1e8b3f812c Mon Sep 17 00:00:00 2001
22
From: Alexandre Krispin <[email protected]>
33
Date: Thu, 26 Jan 2023 15:44:12 +0900
44
Subject: [PATCH] Customize templates
@@ -209,7 +209,7 @@ index 32c26d929..e1301214e 100644
209209
{{/operation}}
210210
{{/operations}}
211211
diff --git a/modules/swagger-codegen/src/main/resources/python/model_doc.mustache b/modules/swagger-codegen/src/main/resources/python/model_doc.mustache
212-
index 569550df3..2ee9b5cc1 100644
212+
index 569550df3..6f1d65e58 100644
213213
--- a/modules/swagger-codegen/src/main/resources/python/model_doc.mustache
214214
+++ b/modules/swagger-codegen/src/main/resources/python/model_doc.mustache
215215
@@ -1,11 +1,18 @@
@@ -228,7 +228,7 @@ index 569550df3..2ee9b5cc1 100644
228228
Name | Type | Description | Notes
229229
------------ | ------------- | ------------- | -------------
230230
-{{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{datatype}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{datatype}}**]({{complexType}}.md){{/isPrimitiveType}} | {{description}} | {{^required}}[optional] {{/required}}{{#readOnly}}[readonly] {{/readOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}}
231-
+{{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{datatype}}**{{/isPrimitiveType}}{{^isPrimitiveType}}**[{{datatype}}](../{{#lambda.lowercase}}{{complexType}}{{/lambda.lowercase}})**{{/isPrimitiveType}} | {{description}} | {{^required}}[optional] {{/required}}{{#readOnly}}[readonly] {{/readOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}}
231+
+{{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{datatype}}**{{/isPrimitiveType}}{{^isPrimitiveType}}**[{{datatype}}](../{{#lambda.lowercase}}{{complexType}}/{{/lambda.lowercase}})**{{/isPrimitiveType}} | {{description}} | {{^required}}[optional] {{/required}}{{#readOnly}}[readonly] {{/readOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}}
232232
{{/vars}}
233233

234234
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

0 commit comments

Comments
 (0)