Skip to content

Commit ec3569e

Browse files
saigiridhar21wing328
authored andcommitted
[python][fix] Adding model summary to model documentation files (#4306)
* feat(documentation): Adding model documentation * feat(documentation): Adding model documentation * feat(documentation): Adding model documentation * feat(documentation): Adding model documentation
1 parent 284c9dc commit ec3569e

30 files changed

Lines changed: 32 additions & 0 deletions

File tree

modules/openapi-generator/src/main/resources/python/model_doc.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{{#models}}{{#model}}# {{classname}}
22

3+
{{#description}}{{description}}
4+
{{/description}}
35
## Properties
46
Name | Type | Description | Notes
57
------------ | ------------- | ------------- | -------------

modules/openapi-generator/src/main/resources/python/python-experimental/model_doc.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{{#models}}{{#model}}# {{classname}}
22

3+
{{#description}}{{description}}
4+
{{/description}}
35
## Properties
46
Name | Type | Description | Notes
57
------------ | ------------- | ------------- | -------------

samples/client/petstore/python-asyncio/docs/ClassModel.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# ClassModel
22

3+
Model for testing model with \"_class\" property
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

samples/client/petstore/python-asyncio/docs/File.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# File
22

3+
Must be named `File` for test.
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

samples/client/petstore/python-asyncio/docs/Model200Response.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Model200Response
22

3+
Model for testing model name starting with number
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

samples/client/petstore/python-asyncio/docs/ModelReturn.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# ModelReturn
22

3+
Model for testing reserved words
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

samples/client/petstore/python-asyncio/docs/Name.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Name
22

3+
Model for testing model name same as property name
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

samples/client/petstore/python-experimental/docs/ClassModel.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# ClassModel
22

3+
Model for testing model with \"_class\" property
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

samples/client/petstore/python-experimental/docs/File.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# File
22

3+
Must be named `File` for test.
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

samples/client/petstore/python-experimental/docs/Model200Response.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Model200Response
22

3+
Model for testing model name starting with number
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

0 commit comments

Comments
 (0)