diff --git a/modules/openapi-generator/src/main/resources/python/model_doc.mustache b/modules/openapi-generator/src/main/resources/python/model_doc.mustache index 71c106fdc55d..c1ead8680c7e 100644 --- a/modules/openapi-generator/src/main/resources/python/model_doc.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_doc.mustache @@ -1,5 +1,7 @@ {{#models}}{{#model}}# {{classname}} +{{#description}}{{description}} +{{/description}} ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/modules/openapi-generator/src/main/resources/python/python-experimental/model_doc.mustache b/modules/openapi-generator/src/main/resources/python/python-experimental/model_doc.mustache index 16592869b741..e04f7dba5ead 100644 --- a/modules/openapi-generator/src/main/resources/python/python-experimental/model_doc.mustache +++ b/modules/openapi-generator/src/main/resources/python/python-experimental/model_doc.mustache @@ -1,5 +1,7 @@ {{#models}}{{#model}}# {{classname}} +{{#description}}{{description}} +{{/description}} ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-asyncio/docs/ClassModel.md b/samples/client/petstore/python-asyncio/docs/ClassModel.md index 7f6f6d172116..733c19fae986 100644 --- a/samples/client/petstore/python-asyncio/docs/ClassModel.md +++ b/samples/client/petstore/python-asyncio/docs/ClassModel.md @@ -1,5 +1,6 @@ # ClassModel +Model for testing model with \"_class\" property ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-asyncio/docs/File.md b/samples/client/petstore/python-asyncio/docs/File.md index 6a925f0a7af4..5dce05eabb3c 100644 --- a/samples/client/petstore/python-asyncio/docs/File.md +++ b/samples/client/petstore/python-asyncio/docs/File.md @@ -1,5 +1,6 @@ # File +Must be named `File` for test. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-asyncio/docs/Model200Response.md b/samples/client/petstore/python-asyncio/docs/Model200Response.md index 30f47cae5210..40d0d7828e14 100644 --- a/samples/client/petstore/python-asyncio/docs/Model200Response.md +++ b/samples/client/petstore/python-asyncio/docs/Model200Response.md @@ -1,5 +1,6 @@ # Model200Response +Model for testing model name starting with number ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-asyncio/docs/ModelReturn.md b/samples/client/petstore/python-asyncio/docs/ModelReturn.md index 2b03798e3016..65ec73ddae78 100644 --- a/samples/client/petstore/python-asyncio/docs/ModelReturn.md +++ b/samples/client/petstore/python-asyncio/docs/ModelReturn.md @@ -1,5 +1,6 @@ # ModelReturn +Model for testing reserved words ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-asyncio/docs/Name.md b/samples/client/petstore/python-asyncio/docs/Name.md index 17dc7a38fe69..807b76afc6ee 100644 --- a/samples/client/petstore/python-asyncio/docs/Name.md +++ b/samples/client/petstore/python-asyncio/docs/Name.md @@ -1,5 +1,6 @@ # Name +Model for testing model name same as property name ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-experimental/docs/ClassModel.md b/samples/client/petstore/python-experimental/docs/ClassModel.md index 7f6f6d172116..733c19fae986 100644 --- a/samples/client/petstore/python-experimental/docs/ClassModel.md +++ b/samples/client/petstore/python-experimental/docs/ClassModel.md @@ -1,5 +1,6 @@ # ClassModel +Model for testing model with \"_class\" property ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-experimental/docs/File.md b/samples/client/petstore/python-experimental/docs/File.md index 6a925f0a7af4..5dce05eabb3c 100644 --- a/samples/client/petstore/python-experimental/docs/File.md +++ b/samples/client/petstore/python-experimental/docs/File.md @@ -1,5 +1,6 @@ # File +Must be named `File` for test. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-experimental/docs/Model200Response.md b/samples/client/petstore/python-experimental/docs/Model200Response.md index 30f47cae5210..40d0d7828e14 100644 --- a/samples/client/petstore/python-experimental/docs/Model200Response.md +++ b/samples/client/petstore/python-experimental/docs/Model200Response.md @@ -1,5 +1,6 @@ # Model200Response +Model for testing model name starting with number ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-experimental/docs/ModelReturn.md b/samples/client/petstore/python-experimental/docs/ModelReturn.md index 2b03798e3016..65ec73ddae78 100644 --- a/samples/client/petstore/python-experimental/docs/ModelReturn.md +++ b/samples/client/petstore/python-experimental/docs/ModelReturn.md @@ -1,5 +1,6 @@ # ModelReturn +Model for testing reserved words ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-experimental/docs/Name.md b/samples/client/petstore/python-experimental/docs/Name.md index 17dc7a38fe69..807b76afc6ee 100644 --- a/samples/client/petstore/python-experimental/docs/Name.md +++ b/samples/client/petstore/python-experimental/docs/Name.md @@ -1,5 +1,6 @@ # Name +Model for testing model name same as property name ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-experimental/docs/TypeHolderDefault.md b/samples/client/petstore/python-experimental/docs/TypeHolderDefault.md index 7ec864de09df..698829f8b9dc 100644 --- a/samples/client/petstore/python-experimental/docs/TypeHolderDefault.md +++ b/samples/client/petstore/python-experimental/docs/TypeHolderDefault.md @@ -1,5 +1,6 @@ # TypeHolderDefault +a model to test optional properties with server defaults ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-experimental/docs/TypeHolderExample.md b/samples/client/petstore/python-experimental/docs/TypeHolderExample.md index 71f302f8d9ff..713bc42ed99a 100644 --- a/samples/client/petstore/python-experimental/docs/TypeHolderExample.md +++ b/samples/client/petstore/python-experimental/docs/TypeHolderExample.md @@ -1,5 +1,6 @@ # TypeHolderExample +a model to test required properties with an example and length one enum ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-tornado/docs/ClassModel.md b/samples/client/petstore/python-tornado/docs/ClassModel.md index 7f6f6d172116..733c19fae986 100644 --- a/samples/client/petstore/python-tornado/docs/ClassModel.md +++ b/samples/client/petstore/python-tornado/docs/ClassModel.md @@ -1,5 +1,6 @@ # ClassModel +Model for testing model with \"_class\" property ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-tornado/docs/File.md b/samples/client/petstore/python-tornado/docs/File.md index 6a925f0a7af4..5dce05eabb3c 100644 --- a/samples/client/petstore/python-tornado/docs/File.md +++ b/samples/client/petstore/python-tornado/docs/File.md @@ -1,5 +1,6 @@ # File +Must be named `File` for test. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-tornado/docs/Model200Response.md b/samples/client/petstore/python-tornado/docs/Model200Response.md index 30f47cae5210..40d0d7828e14 100644 --- a/samples/client/petstore/python-tornado/docs/Model200Response.md +++ b/samples/client/petstore/python-tornado/docs/Model200Response.md @@ -1,5 +1,6 @@ # Model200Response +Model for testing model name starting with number ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-tornado/docs/ModelReturn.md b/samples/client/petstore/python-tornado/docs/ModelReturn.md index 2b03798e3016..65ec73ddae78 100644 --- a/samples/client/petstore/python-tornado/docs/ModelReturn.md +++ b/samples/client/petstore/python-tornado/docs/ModelReturn.md @@ -1,5 +1,6 @@ # ModelReturn +Model for testing reserved words ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python-tornado/docs/Name.md b/samples/client/petstore/python-tornado/docs/Name.md index 17dc7a38fe69..807b76afc6ee 100644 --- a/samples/client/petstore/python-tornado/docs/Name.md +++ b/samples/client/petstore/python-tornado/docs/Name.md @@ -1,5 +1,6 @@ # Name +Model for testing model name same as property name ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python/docs/ClassModel.md b/samples/client/petstore/python/docs/ClassModel.md index 7f6f6d172116..733c19fae986 100644 --- a/samples/client/petstore/python/docs/ClassModel.md +++ b/samples/client/petstore/python/docs/ClassModel.md @@ -1,5 +1,6 @@ # ClassModel +Model for testing model with \"_class\" property ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python/docs/File.md b/samples/client/petstore/python/docs/File.md index 6a925f0a7af4..5dce05eabb3c 100644 --- a/samples/client/petstore/python/docs/File.md +++ b/samples/client/petstore/python/docs/File.md @@ -1,5 +1,6 @@ # File +Must be named `File` for test. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python/docs/Model200Response.md b/samples/client/petstore/python/docs/Model200Response.md index 30f47cae5210..40d0d7828e14 100644 --- a/samples/client/petstore/python/docs/Model200Response.md +++ b/samples/client/petstore/python/docs/Model200Response.md @@ -1,5 +1,6 @@ # Model200Response +Model for testing model name starting with number ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python/docs/ModelReturn.md b/samples/client/petstore/python/docs/ModelReturn.md index 2b03798e3016..65ec73ddae78 100644 --- a/samples/client/petstore/python/docs/ModelReturn.md +++ b/samples/client/petstore/python/docs/ModelReturn.md @@ -1,5 +1,6 @@ # ModelReturn +Model for testing reserved words ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/python/docs/Name.md b/samples/client/petstore/python/docs/Name.md index 17dc7a38fe69..807b76afc6ee 100644 --- a/samples/client/petstore/python/docs/Name.md +++ b/samples/client/petstore/python/docs/Name.md @@ -1,5 +1,6 @@ # Name +Model for testing model name same as property name ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/openapi3/client/petstore/python/docs/ClassModel.md b/samples/openapi3/client/petstore/python/docs/ClassModel.md index 7f6f6d172116..733c19fae986 100644 --- a/samples/openapi3/client/petstore/python/docs/ClassModel.md +++ b/samples/openapi3/client/petstore/python/docs/ClassModel.md @@ -1,5 +1,6 @@ # ClassModel +Model for testing model with \"_class\" property ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/openapi3/client/petstore/python/docs/File.md b/samples/openapi3/client/petstore/python/docs/File.md index 6a925f0a7af4..5dce05eabb3c 100644 --- a/samples/openapi3/client/petstore/python/docs/File.md +++ b/samples/openapi3/client/petstore/python/docs/File.md @@ -1,5 +1,6 @@ # File +Must be named `File` for test. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/openapi3/client/petstore/python/docs/HealthCheckResult.md b/samples/openapi3/client/petstore/python/docs/HealthCheckResult.md index 346889210a3d..7cde5c093292 100644 --- a/samples/openapi3/client/petstore/python/docs/HealthCheckResult.md +++ b/samples/openapi3/client/petstore/python/docs/HealthCheckResult.md @@ -1,5 +1,6 @@ # HealthCheckResult +Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/openapi3/client/petstore/python/docs/Model200Response.md b/samples/openapi3/client/petstore/python/docs/Model200Response.md index 30f47cae5210..40d0d7828e14 100644 --- a/samples/openapi3/client/petstore/python/docs/Model200Response.md +++ b/samples/openapi3/client/petstore/python/docs/Model200Response.md @@ -1,5 +1,6 @@ # Model200Response +Model for testing model name starting with number ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/openapi3/client/petstore/python/docs/ModelReturn.md b/samples/openapi3/client/petstore/python/docs/ModelReturn.md index 2b03798e3016..65ec73ddae78 100644 --- a/samples/openapi3/client/petstore/python/docs/ModelReturn.md +++ b/samples/openapi3/client/petstore/python/docs/ModelReturn.md @@ -1,5 +1,6 @@ # ModelReturn +Model for testing reserved words ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/openapi3/client/petstore/python/docs/Name.md b/samples/openapi3/client/petstore/python/docs/Name.md index 17dc7a38fe69..807b76afc6ee 100644 --- a/samples/openapi3/client/petstore/python/docs/Name.md +++ b/samples/openapi3/client/petstore/python/docs/Name.md @@ -1,5 +1,6 @@ # Name +Model for testing model name same as property name ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | -------------