Skip to content

Commit 33f63d6

Browse files
authored
Do not HTML escaped the description in the doc (#4321)
* html escaped the description in the doc * update python oas3 sample
1 parent 2188e0f commit 33f63d6

File tree

39 files changed

+39
-39
lines changed

39 files changed

+39
-39
lines changed

modules/openapi-generator/src/main/resources/Java/pojo_doc.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# {{classname}}
22

3-
{{#description}}{{description}}
3+
{{#description}}{{&description}}
44
{{/description}}
55
## Properties
66

modules/openapi-generator/src/main/resources/csharp-netcore/model_doc.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{#models}}
22
{{#model}}
33
# {{{packageName}}}.{{modelPackage}}.{{{classname}}}
4-
{{#description}}{{description}}
4+
{{#description}}{{&description}}
55
{{/description}}
66
## Properties
77

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#models}}{{#model}}# {{classname}}
22

3-
{{#description}}{{description}}
3+
{{#description}}{{&description}}
44
{{/description}}
55
## Properties
66
Name | Type | Description | Notes

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#models}}{{#model}}# {{classname}}
22

3-
{{#description}}{{description}}
3+
{{#description}}{{&description}}
44
{{/description}}
55
## Properties
66
Name | Type | Description | Notes

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#models}}{{#model}}# {{packageName}}::{{classname}}
22

3-
{{#description}}{{description}}
3+
{{#description}}{{&description}}
44
{{/description}}
55
## Properties
66
Name | Type | Description | Notes

samples/client/petstore/csharp-netcore/OpenAPIClient/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Org.OpenAPITools.Model.ClassModel
2-
Model for testing model with \"_class\" property
2+
Model for testing model with \"_class\" property
33
## Properties
44

55
Name | Type | Description | Notes

samples/client/petstore/csharp-netcore/OpenAPIClient/docs/File.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Org.OpenAPITools.Model.File
2-
Must be named `File` for test.
2+
Must be named `File` for test.
33
## Properties
44

55
Name | Type | Description | Notes

samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Org.OpenAPITools.Model.ClassModel
2-
Model for testing model with \"_class\" property
2+
Model for testing model with \"_class\" property
33
## Properties
44

55
Name | Type | Description | Notes

samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/File.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Org.OpenAPITools.Model.File
2-
Must be named `File` for test.
2+
Must be named `File` for test.
33
## Properties
44

55
Name | Type | Description | Notes

samples/client/petstore/java/google-api-client/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/jersey1/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/jersey2-java6/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/jersey2-java8/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/jersey2/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/native/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/okhttp-gson-parcelableModel/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/okhttp-gson/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/rest-assured/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/resteasy/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/resttemplate-withXml/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/resttemplate/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/retrofit2-play24/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/retrofit2-play25/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/retrofit2-play26/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/retrofit2/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/retrofit2rx/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/retrofit2rx2/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/vertx/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

samples/client/petstore/java/webclient/docs/ClassModel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ClassModel
44

5-
Model for testing model with \"_class\" property
5+
Model for testing model with \"_class\" property
66
## Properties
77

88
Name | Type | Description | Notes

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

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

3-
Model for testing model with \"_class\" property
3+
Model for testing model with \"_class\" property
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------

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

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

3-
Must be named `File` for test.
3+
Must be named `File` for test.
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------

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

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

3-
Model for testing model with \"_class\" property
3+
Model for testing model with \"_class\" property
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------

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

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

3-
Must be named `File` for test.
3+
Must be named `File` for test.
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------

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

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

3-
Model for testing model with \"_class\" property
3+
Model for testing model with \"_class\" property
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------

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

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

3-
Must be named `File` for test.
3+
Must be named `File` for test.
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------

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

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

3-
Model for testing model with \"_class\" property
3+
Model for testing model with \"_class\" property
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------

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

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

3-
Must be named `File` for test.
3+
Must be named `File` for test.
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------

samples/openapi3/client/petstore/python/docs/ClassModel.md

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

3-
Model for testing model with \"_class\" property
3+
Model for testing model with \"_class\" property
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------

samples/openapi3/client/petstore/python/docs/File.md

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

3-
Must be named `File` for test.
3+
Must be named `File` for test.
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------

0 commit comments

Comments
 (0)