Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 536a837

Browse files
authored
Java, adds mising const info to schema docs (#372)
* Templates updated * Adds constValue info
1 parent 1092290 commit 536a837

File tree

6 files changed

+9
-0
lines changed

6 files changed

+9
-0
lines changed

samples/client/3_1_0_unit_test/java/docs/components/schemas/ConstNulCharactersInStrings.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ A schema class that validates payloads
2121
### Field Summary
2222
| Modifier and Type | Field and Description |
2323
| ----------------- | ---------------------- |
24+
| @Nullable Object | constValue = "hello\0there" |
2425

2526
### Method Summary
2627
| Modifier and Type | Method and Description |

samples/client/3_1_0_unit_test/java/docs/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.md

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ A schema class that validates payloads
5151
### Field Summary
5252
| Modifier and Type | Field and Description |
5353
| ----------------- | ---------------------- |
54+
| @Nullable Object | constValue = "yes" |
5455

5556
### Method Summary
5657
| Modifier and Type | Method and Description |
@@ -109,6 +110,7 @@ A schema class that validates payloads
109110
### Field Summary
110111
| Modifier and Type | Field and Description |
111112
| ----------------- | ---------------------- |
113+
| @Nullable Object | constValue = "other" |
112114

113115
### Method Summary
114116
| Modifier and Type | Method and Description |

samples/client/3_1_0_unit_test/java/docs/components/schemas/IgnoreElseWithoutIf.md

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ A schema class that validates payloads
4646
### Field Summary
4747
| Modifier and Type | Field and Description |
4848
| ----------------- | ---------------------- |
49+
| @Nullable Object | constValue = "0" |
4950

5051
### Method Summary
5152
| Modifier and Type | Method and Description |

samples/client/3_1_0_unit_test/java/docs/components/schemas/IgnoreIfWithoutThenOrElse.md

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ A schema class that validates payloads
4646
### Field Summary
4747
| Modifier and Type | Field and Description |
4848
| ----------------- | ---------------------- |
49+
| @Nullable Object | constValue = "0" |
4950

5051
### Method Summary
5152
| Modifier and Type | Method and Description |

samples/client/3_1_0_unit_test/java/docs/components/schemas/IgnoreThenWithoutIf.md

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ A schema class that validates payloads
4646
### Field Summary
4747
| Modifier and Type | Field and Description |
4848
| ----------------- | ---------------------- |
49+
| @Nullable Object | constValue = "0" |
4950

5051
### Method Summary
5152
| Modifier and Type | Method and Description |

src/main/resources/java/src/main/java/packagename/components/schemas/docschema_fields_field.hbs

+3
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,6 @@
106106
{{#if else_}}
107107
| Class<? extends JsonSchema> | {{> src/main/java/packagename/components/schemas/SchemaClass/_else }} |
108108
{{/if}}
109+
{{#if constInfo}}
110+
| @Nullable Object | {{> src/main/java/packagename/components/schemas/SchemaClass/_const }} |
111+
{{/if}}

0 commit comments

Comments
 (0)