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

Commit 6189892

Browse files
committed
Updates lowercase java types to uppercase kotlin types
1 parent 4dd3e65 commit 6189892

File tree

4 files changed

+33
-33
lines changed

4 files changed

+33
-33
lines changed

src/main/resources/kotlin/src/main/kotlin/packagename/components/schemas/Schema_doc.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ A class that stores String enum values
252252
public enum Integer{{../jsonPathPiece.pascalCase}}<br>
253253
extends `Enum<Integer{{../jsonPathPiece.pascalCase}}>`
254254

255-
A class that stores Integer enum values
255+
A class that stores Int enum values
256256
{{else}}
257257
{{#eq @key "Long"}}
258258
{{> src/main/kotlin/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces (join "Long" ../jsonPathPiece.pascalCase "") ) }}

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@
2929
| BigDecimal | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_multipleOf }} |
3030
{{/neq}}
3131
{{#neq maxItems null}}
32-
| Integer | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_maxItems }} |
32+
| Int | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_maxItems }} |
3333
{{/neq}}
3434
{{#neq minItems null}}
35-
| Integer | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_minItems }} |
35+
| Int | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_minItems }} |
3636
{{/neq}}
3737
{{#neq maxLength null }}
38-
| Integer | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_maxLength }} |
38+
| Int | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_maxLength }} |
3939
{{/neq}}
4040
{{#neq minLength null }}
41-
| Integer | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_minLength }} |
41+
| Int | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_minLength }} |
4242
{{/neq}}
4343
{{#neq maxProperties null}}
44-
| Integer | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_maxProperties }} |
44+
| Int | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_maxProperties }} |
4545
{{/neq}}
4646
{{#neq minProperties null}}
47-
| Integer | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_minProperties }} |
47+
| Int | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_minProperties }} |
4848
{{/neq}}
4949
{{#if additionalProperties}}
5050
| Class<? extends JsonSchema> | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_additionalProperties }} |
@@ -77,10 +77,10 @@
7777
| Class<? extends JsonSchema> | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_contains }} |
7878
{{/if}}
7979
{{#neq maxContains null}}
80-
| Integer | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_maxContains }} |
80+
| Int | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_maxContains }} |
8181
{{/neq}}
8282
{{#neq minContains null}}
83-
| Integer | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_minContains }} |
83+
| Int | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_minContains }} |
8484
{{/neq}}
8585
{{#if propertyNames}}
8686
| Class<? extends JsonSchema> | {{> src/main/kotlin/packagename/components/schemas/SchemaClass/_propertyNames }} |

src/main/resources/kotlin/src/main/kotlin/packagename/components/schemas/docschema_io_types.hbs

+23-23
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
{{#and enumInfo enumInfo.typeToValues.null}}
88
| Nothing? | validate(arg: [Null{{enumInfo.jsonPathPiece.pascalCase}}](#null{{enumInfo.jsonPathPiece.kebabCase}}), configuration: SchemaConfiguration) |
99
{{/and}}
10-
| int | validate(arg: int, configuration: SchemaConfiguration) |
11-
| long | validate(arg: long, configuration: SchemaConfiguration) |
12-
| float | validate(arg: float, configuration: SchemaConfiguration) |
13-
| double | validate(arg: double, configuration: SchemaConfiguration) |
10+
| Int | validate(arg: Int, configuration: SchemaConfiguration) |
11+
| Long | validate(arg: Long, configuration: SchemaConfiguration) |
12+
| Float | validate(arg: Float, configuration: SchemaConfiguration) |
13+
| Double | validate(arg: Double, configuration: SchemaConfiguration) |
1414
| Number | validate(arg: Number, configuration: SchemaConfiguration) |
15-
| boolean | validate(arg: boolean, configuration: SchemaConfiguration) |
15+
| Boolean | validate(arg: Boolean, configuration: SchemaConfiguration) |
1616
{{#and enumInfo enumInfo.typeToValues.boolean}}
17-
| boolean | validate(arg: [Boolean{{enumInfo.jsonPathPiece.pascalCase}}](#boolean{{enumInfo.jsonPathPiece.kebabCase}}), configuration: SchemaConfiguration) |
17+
| Boolean | validate(arg: [Boolean{{enumInfo.jsonPathPiece.pascalCase}}](#boolean{{enumInfo.jsonPathPiece.kebabCase}}), configuration: SchemaConfiguration) |
1818
{{/and}}
1919
{{#if mapOutputJsonPathPiece }}
20-
| [{{mapOutputJsonPathPiece.pascalCase}}](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces mapOutputJsonPathPiece) }}) | validate(arg: [Map&lt;?, ?&gt;](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces mapInputJsonPathPiece) }}), configuration: SchemaConfiguration) |
20+
| [{{mapOutputJsonPathPiece.pascalCase}}](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces mapOutputJsonPathPiece) }}) | validate(arg: [Map&lt;*, *&gt;](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces mapInputJsonPathPiece) }}), configuration: SchemaConfiguration) |
2121
{{else}}
22-
| FrozenMap<Any?> | validate(arg: Map&lt;?, ?&gt;, configuration: SchemaConfiguration) |
22+
| FrozenMap<Any?> | validate(arg: Map&lt;*, *&gt;, configuration: SchemaConfiguration) |
2323
{{/if}}
2424
{{#if arrayOutputJsonPathPiece}}
2525
| [{{arrayOutputJsonPathPiece.pascalCase}}](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces arrayOutputJsonPathPiece) }}) | validate(arg: [List<*>](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces arrayInputJsonPathPiece) }}), configuration: SchemaConfiguration) |
@@ -29,17 +29,17 @@
2929
| [{{jsonPathPiece.pascalCase}}BoxedString](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedstring" ""))}}) | validateAndBox(String, configuration: SchemaConfiguration) |
3030
| [{{jsonPathPiece.pascalCase}}BoxedVoid](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedvoid" ""))}}) | validateAndBox(Nothing?, configuration: SchemaConfiguration) |
3131
| [{{jsonPathPiece.pascalCase}}BoxedNumber](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxednumber" ""))}}) | validateAndBox(Number, configuration: SchemaConfiguration) |
32-
| [{{jsonPathPiece.pascalCase}}BoxedBoolean](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedboolean" ""))}}) | validateAndBox(boolean, configuration: SchemaConfiguration) |
33-
| [{{jsonPathPiece.pascalCase}}BoxedMap](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedmap" ""))}}) | validateAndBox({{#if mapInputJsonPathPiece}}[Map&lt;?, ?&gt;](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces mapInputJsonPathPiece) }}){{else}}Map&lt;?, ?&gt;{{/if}}, configuration: SchemaConfiguration) |
32+
| [{{jsonPathPiece.pascalCase}}BoxedBoolean](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedboolean" ""))}}) | validateAndBox(Boolean, configuration: SchemaConfiguration) |
33+
| [{{jsonPathPiece.pascalCase}}BoxedMap](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedmap" ""))}}) | validateAndBox({{#if mapInputJsonPathPiece}}[Map&lt;*, *&gt;](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces mapInputJsonPathPiece) }}){{else}}Map&lt;*, *&gt;{{/if}}, configuration: SchemaConfiguration) |
3434
| [{{jsonPathPiece.pascalCase}}BoxedList](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedlist" ""))}}) | validateAndBox({{#if arrayInputJsonPathPiece}}[List<*>](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces arrayInputJsonPathPiece) }}){{else}}List<*>{{/if}}, configuration: SchemaConfiguration) |
3535
{{else}}
3636
{{#each types}}
3737
{{#eq this "boolean"}}
38-
| boolean | validate(arg: boolean, configuration: SchemaConfiguration) |
38+
| Boolean | validate(arg: Boolean, configuration: SchemaConfiguration) |
3939
{{#and ../enumInfo enumInfo.typeToValues.boolean}}
40-
| boolean | validate(arg: [Boolean{{../enumInfo.jsonPathPiece.pascalCase}}](#boolean{{../enumInfo.jsonPathPiece.kebabCase}}), configuration: SchemaConfiguration) |
40+
| Boolean | validate(arg: [Boolean{{../enumInfo.jsonPathPiece.pascalCase}}](#boolean{{../enumInfo.jsonPathPiece.kebabCase}}), configuration: SchemaConfiguration) |
4141
{{/and}}
42-
| [{{jsonPathPiece.pascalCase}}BoxedBoolean](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedboolean" ""))}}) | validateAndBox(boolean, configuration: SchemaConfiguration) |
42+
| [{{jsonPathPiece.pascalCase}}BoxedBoolean](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedboolean" ""))}}) | validateAndBox(Boolean, configuration: SchemaConfiguration) |
4343
{{else}}
4444
{{#eq this "null"}}
4545
| Nothing? | validate(arg: Nothing?, configuration: SchemaConfiguration) |
@@ -65,16 +65,16 @@
6565
| Number | validate(arg: Number, configuration: SchemaConfiguration) |
6666
{{else}}
6767
{{#eq ../format "float"}}
68-
| float | validate(arg: float, configuration: SchemaConfiguration) |
68+
| Float | validate(arg: Float, configuration: SchemaConfiguration) |
6969
{{else}}
7070
{{#eq ../format "double"}}
71-
| double | validate(arg: double, configuration: SchemaConfiguration) |
71+
| Double | validate(arg: Double, configuration: SchemaConfiguration) |
7272
{{else}}
7373
{{#eq ../format "int32"}}
74-
| int | validate(arg: int, configuration: SchemaConfiguration) |
74+
| Int | validate(arg: Int, configuration: SchemaConfiguration) |
7575
{{else}}
7676
{{#eq ../format "int64"}}
77-
| long | validate(arg: long, configuration: SchemaConfiguration) |
77+
| Long | validate(arg: Long, configuration: SchemaConfiguration) |
7878
{{/eq}}
7979
{{/eq}}
8080
{{/eq}}
@@ -84,12 +84,12 @@
8484
{{else}}
8585
{{#eq this "integer"}}
8686
{{#eq ../format null}}
87-
| long | validate(arg: long, configuration: SchemaConfiguration) |
87+
| Long | validate(arg: Long, configuration: SchemaConfiguration) |
8888
{{else}}
8989
{{#eq ../format "int32"}}
90-
| int | validate(arg: int, configuration: SchemaConfiguration) |
90+
| Int | validate(arg: Int, configuration: SchemaConfiguration) |
9191
{{else}}
92-
| long | validate(arg: long, configuration: SchemaConfiguration) |
92+
| Long | validate(arg: Long, configuration: SchemaConfiguration) |
9393
{{/eq}}
9494
{{/eq}}
9595
| [{{jsonPathPiece.pascalCase}}BoxedNumber](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxednumber" ""))}}) | validateAndBox(Number, configuration: SchemaConfiguration) |
@@ -104,11 +104,11 @@
104104
{{else}}
105105
{{#eq this "object"}}
106106
{{#if ../mapOutputJsonPathPiece}}
107-
| [{{../mapOutputJsonPathPiece.pascalCase}}](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces ../mapOutputJsonPathPiece) }}) | validate(arg: [Map&lt;?, ?&gt;](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces ../mapInputJsonPathPiece) }}), configuration: SchemaConfiguration) |
107+
| [{{../mapOutputJsonPathPiece.pascalCase}}](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces ../mapOutputJsonPathPiece) }}) | validate(arg: [Map&lt;*, *&gt;](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces ../mapInputJsonPathPiece) }}), configuration: SchemaConfiguration) |
108108
{{else}}
109-
| FrozenMap<String, Any?> | validate(arg: Map&lt;?, ?&gt;, configuration: SchemaConfiguration) |
109+
| FrozenMap<String, Any?> | validate(arg: Map&lt;*, *&gt;, configuration: SchemaConfiguration) |
110110
{{/if}}
111-
| [{{jsonPathPiece.pascalCase}}BoxedMap](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedmap" ""))}}) | validateAndBox({{#if mapInputJsonPathPiece}}[Map&lt;?, ?&gt;](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces mapInputJsonPathPiece) }}){{else}}Map&lt;?, ?&gt;{{/if}}, configuration: SchemaConfiguration) |
111+
| [{{jsonPathPiece.pascalCase}}BoxedMap](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces (join jsonPathPiece.kebabCase "boxedmap" ""))}}) | validateAndBox({{#if mapInputJsonPathPiece}}[Map&lt;*, *&gt;](#{{> src/main/kotlin/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces mapInputJsonPathPiece) }}){{else}}Map&lt;*, *&gt;{{/if}}, configuration: SchemaConfiguration) |
112112
{{/eq}}
113113
{{/eq}}
114114
{{/eq}}

src/main/resources/kotlin/src/main/kotlin/packagename/components/schemas/helpers/payload_renderer.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ listOf{{#eq value.size 0}}<Any?>{{/eq}}(
7777
{{#eq javaType "Double"}}
7878
{{value}}{{endChar}}
7979
{{else}}
80-
{{value}}{{endChar}}{{! Integer }}
80+
{{value}}{{endChar}}{{! Int }}
8181
{{/eq}}
8282
{{/eq}}
8383
{{/eq}}

0 commit comments

Comments
 (0)