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

Commit 9596ebd

Browse files
authored
Java, adds map builder class placeholder (#325)
* Adds placeholder builder class to 303 sample * Updates schema doc to have objectInput section * Moves docs section for map input * Fixes docs for map input type * Adds required and optional property input types in schemas * Adds link from map out to map in definition in docs * Adds map links to map input class in schema docs * Uses map name in java classes * Sample regen * Removes pass * Sample regen
1 parent 9d301e2 commit 9596ebd

586 files changed

Lines changed: 3913 additions & 2081 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ A class that contains necessary nested
77
- classes to store validated list payloads, extends FrozenList
88
- classes to store validated map payloads, extends FrozenMap
99
- classes to build inputs for list payloads
10+
- classes to build inputs for map payloads
1011

1112
## Nested Class Summary
1213
| Modifier and Type | Class and Description |
1314
| ----------------- | ---------------------- |
1415
| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidate1](#additionalpropertiesallowsaschemawhichshouldvalidate1)<br> schema class |
16+
| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidateMapInput](#additionalpropertiesallowsaschemawhichshouldvalidatemapinput)<br> builder for Map payloads |
1517
| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap)<br> output class for Map payloads |
1618
| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.Bar](#bar)<br> schema class |
1719
| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.Foo](#foo)<br> schema class |
@@ -55,7 +57,20 @@ AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsA
5557
### Method Summary
5658
| Modifier and Type | Method and Description |
5759
| ----------------- | ---------------------- |
58-
| static [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | validate(Map<String, Object> arg, SchemaConfiguration configuration) |
60+
| static [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | validate([Map<String, Object>](#additionalpropertiesallowsaschemawhichshouldvalidatemapinput) arg, SchemaConfiguration configuration) |
61+
62+
## AdditionalpropertiesAllowsASchemaWhichShouldValidateMapInput
63+
public class AdditionalpropertiesAllowsASchemaWhichShouldValidateMapInput<br>
64+
builder for `Map<String, Object>`
65+
66+
A class that builds the Map input type
67+
68+
## Input Map Keys
69+
| Key | Type | Description | Notes |
70+
| --- | ---- | ------------ | ----- |
71+
| **foo** | Object | | [optional] |
72+
| **bar** | Object | | [optional] |
73+
| **anyStringName** | boolean | any string name can be used but the value must be the correct type | [optional] |
5974

6075
## AdditionalpropertiesAllowsASchemaWhichShouldValidateMap
6176
public static class AdditionalpropertiesAllowsASchemaWhichShouldValidateMap<br>
@@ -66,21 +81,11 @@ A class to store validated Map payloads
6681
### Method Summary
6782
| Modifier and Type | Method and Description |
6883
| ----------------- | ---------------------- |
69-
| static [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | of(Map<String, Object> arg, SchemaConfiguration configuration) |
84+
| static [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | of([Map<String, Object>](#additionalpropertiesallowsaschemawhichshouldvalidatemapinput) arg, SchemaConfiguration configuration) |
7085
| Object | foo()<br>[optional] |
7186
| Object | bar()<br>[optional] |
7287
| boolean | getAdditionalProperty(String name)<br>provides type safety for additional properties |
7388

74-
## Input Map Keys
75-
```
76-
type: Map<String, Object>
77-
```
78-
| Key | Type | Description | Notes |
79-
| --- | ---- | ------------ | ----- |
80-
| **foo** | Object | | [optional] |
81-
| **bar** | Object | | [optional] |
82-
| **anyStringName** | boolean | any string name can be used but the value must be the correct type | [optional] |
83-
8489
## Bar
8590
public static class Bar<br>
8691
extends AnyTypeJsonSchema

samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ A class that contains necessary nested
77
- classes to store validated list payloads, extends FrozenList
88
- classes to store validated map payloads, extends FrozenMap
99
- classes to build inputs for list payloads
10+
- classes to build inputs for map payloads
1011

1112
## Nested Class Summary
1213
| Modifier and Type | Class and Description |
1314
| ----------------- | ---------------------- |
1415
| static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1](#additionalpropertiesareallowedbydefault1)<br> schema class |
16+
| static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefaultMapInput](#additionalpropertiesareallowedbydefaultmapinput)<br> builder for Map payloads |
1517
| static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap)<br> output class for Map payloads |
1618
| static class | [AdditionalpropertiesAreAllowedByDefault.Bar](#bar)<br> schema class |
1719
| static class | [AdditionalpropertiesAreAllowedByDefault.Foo](#foo)<br> schema class |
@@ -37,9 +39,22 @@ A schema class that validates payloads
3739
| static float | validate(float arg, SchemaConfiguration configuration) |
3840
| static double | validate(double arg, SchemaConfiguration configuration) |
3941
| static boolean | validate(boolean arg, SchemaConfiguration configuration) |
40-
| static [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | validate(Map<String, Object> arg, SchemaConfiguration configuration) |
42+
| static [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | validate([Map<String, Object>](#additionalpropertiesareallowedbydefaultmapinput) arg, SchemaConfiguration configuration) |
4143
| FrozenList<Object> | validate(List<Object> arg, SchemaConfiguration configuration) |
4244

45+
## AdditionalpropertiesAreAllowedByDefaultMapInput
46+
public class AdditionalpropertiesAreAllowedByDefaultMapInput<br>
47+
builder for `Map<String, Object>`
48+
49+
A class that builds the Map input type
50+
51+
## Input Map Keys
52+
| Key | Type | Description | Notes |
53+
| --- | ---- | ------------ | ----- |
54+
| **foo** | Object | | [optional] |
55+
| **bar** | Object | | [optional] |
56+
| **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] |
57+
4358
## AdditionalpropertiesAreAllowedByDefaultMap
4459
public static class AdditionalpropertiesAreAllowedByDefaultMap<br>
4560
extends FrozenMap<String, Object>
@@ -49,21 +64,11 @@ A class to store validated Map payloads
4964
### Method Summary
5065
| Modifier and Type | Method and Description |
5166
| ----------------- | ---------------------- |
52-
| static [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | of(Map<String, Object> arg, SchemaConfiguration configuration) |
67+
| static [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | of([Map<String, Object>](#additionalpropertiesareallowedbydefaultmapinput) arg, SchemaConfiguration configuration) |
5368
| Object | foo()<br>[optional] |
5469
| Object | bar()<br>[optional] |
5570
| Object | getAdditionalProperty(String name)<br>provides type safety for additional properties |
5671

57-
## Input Map Keys
58-
```
59-
type: Map<String, Object>
60-
```
61-
| Key | Type | Description | Notes |
62-
| --- | ---- | ------------ | ----- |
63-
| **foo** | Object | | [optional] |
64-
| **bar** | Object | | [optional] |
65-
| **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] |
66-
6772
## Bar
6873
public static class Bar<br>
6974
extends AnyTypeJsonSchema

samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesCanExistByItself.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ A class that contains necessary nested
77
- classes to store validated list payloads, extends FrozenList
88
- classes to store validated map payloads, extends FrozenMap
99
- classes to build inputs for list payloads
10+
- classes to build inputs for map payloads
1011

1112
## Nested Class Summary
1213
| Modifier and Type | Class and Description |
1314
| ----------------- | ---------------------- |
1415
| static class | [AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItself1](#additionalpropertiescanexistbyitself1)<br> schema class |
16+
| static class | [AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMapInput](#additionalpropertiescanexistbyitselfmapinput)<br> builder for Map payloads |
1517
| static class | [AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap)<br> output class for Map payloads |
1618
| static class | [AdditionalpropertiesCanExistByItself.AdditionalProperties](#additionalproperties)<br> schema class |
1719

@@ -53,7 +55,18 @@ AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMap val
5355
### Method Summary
5456
| Modifier and Type | Method and Description |
5557
| ----------------- | ---------------------- |
56-
| static [AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) | validate(Map<String, Boolean> arg, SchemaConfiguration configuration) |
58+
| static [AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) | validate([Map<String, Boolean>](#additionalpropertiescanexistbyitselfmapinput) arg, SchemaConfiguration configuration) |
59+
60+
## AdditionalpropertiesCanExistByItselfMapInput
61+
public class AdditionalpropertiesCanExistByItselfMapInput<br>
62+
builder for `Map<String, Boolean>`
63+
64+
A class that builds the Map input type
65+
66+
## Input Map Keys
67+
| Key | Type | Description | Notes |
68+
| --- | ---- | ------------ | ----- |
69+
| **anyStringName** | boolean | any string name can be used but the value must be the correct type | [optional] |
5770

5871
## AdditionalpropertiesCanExistByItselfMap
5972
public static class AdditionalpropertiesCanExistByItselfMap<br>
@@ -64,17 +77,9 @@ A class to store validated Map payloads
6477
### Method Summary
6578
| Modifier and Type | Method and Description |
6679
| ----------------- | ---------------------- |
67-
| static [AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) | of(Map<String, Boolean> arg, SchemaConfiguration configuration) |
80+
| static [AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) | of([Map<String, Boolean>](#additionalpropertiescanexistbyitselfmapinput) arg, SchemaConfiguration configuration) |
6881
| boolean | getAdditionalProperty(String name)<br>provides type safety for additional properties |
6982

70-
## Input Map Keys
71-
```
72-
type: Map<String, Object>
73-
```
74-
| Key | Type | Description | Notes |
75-
| --- | ---- | ------------ | ----- |
76-
| **anyStringName** | boolean | any string name can be used but the value must be the correct type | [optional] |
77-
7883
## AdditionalProperties
7984
public static class AdditionalProperties<br>
8085
extends BooleanJsonSchema

samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.md

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ A class that contains necessary nested
77
- classes to store validated list payloads, extends FrozenList
88
- classes to store validated map payloads, extends FrozenMap
99
- classes to build inputs for list payloads
10+
- classes to build inputs for map payloads
1011

1112
## Nested Class Summary
1213
| Modifier and Type | Class and Description |
1314
| ----------------- | ---------------------- |
1415
| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1](#additionalpropertiesshouldnotlookinapplicators1)<br> schema class |
16+
| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicatorsMapInput](#additionalpropertiesshouldnotlookinapplicatorsmapinput)<br> builder for Map payloads |
1517
| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicatorsMap](#additionalpropertiesshouldnotlookinapplicatorsmap)<br> output class for Map payloads |
1618
| static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0](#schema0)<br> schema class |
19+
| static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0MapInput](#schema0mapinput)<br> builder for Map payloads |
1720
| static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0Map](#schema0map)<br> output class for Map payloads |
1821
| static class | [AdditionalpropertiesShouldNotLookInApplicators.Foo](#foo)<br> schema class |
1922
| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalProperties](#additionalproperties)<br> schema class |
@@ -39,9 +42,20 @@ A schema class that validates payloads
3942
| static float | validate(float arg, SchemaConfiguration configuration) |
4043
| static double | validate(double arg, SchemaConfiguration configuration) |
4144
| static boolean | validate(boolean arg, SchemaConfiguration configuration) |
42-
| static [AdditionalpropertiesShouldNotLookInApplicatorsMap](#additionalpropertiesshouldnotlookinapplicatorsmap) | validate(Map<String, Object> arg, SchemaConfiguration configuration) |
45+
| static [AdditionalpropertiesShouldNotLookInApplicatorsMap](#additionalpropertiesshouldnotlookinapplicatorsmap) | validate([Map<String, Boolean>](#additionalpropertiesshouldnotlookinapplicatorsmapinput) arg, SchemaConfiguration configuration) |
4346
| FrozenList<Object> | validate(List<Object> arg, SchemaConfiguration configuration) |
4447

48+
## AdditionalpropertiesShouldNotLookInApplicatorsMapInput
49+
public class AdditionalpropertiesShouldNotLookInApplicatorsMapInput<br>
50+
builder for `Map<String, Boolean>`
51+
52+
A class that builds the Map input type
53+
54+
## Input Map Keys
55+
| Key | Type | Description | Notes |
56+
| --- | ---- | ------------ | ----- |
57+
| **anyStringName** | boolean | any string name can be used but the value must be the correct type | [optional] |
58+
4559
## AdditionalpropertiesShouldNotLookInApplicatorsMap
4660
public static class AdditionalpropertiesShouldNotLookInApplicatorsMap<br>
4761
extends FrozenMap<String, Boolean>
@@ -51,17 +65,9 @@ A class to store validated Map payloads
5165
### Method Summary
5266
| Modifier and Type | Method and Description |
5367
| ----------------- | ---------------------- |
54-
| static [AdditionalpropertiesShouldNotLookInApplicatorsMap](#additionalpropertiesshouldnotlookinapplicatorsmap) | of(Map<String, Boolean> arg, SchemaConfiguration configuration) |
68+
| static [AdditionalpropertiesShouldNotLookInApplicatorsMap](#additionalpropertiesshouldnotlookinapplicatorsmap) | of([Map<String, Boolean>](#additionalpropertiesshouldnotlookinapplicatorsmapinput) arg, SchemaConfiguration configuration) |
5569
| boolean | getAdditionalProperty(String name)<br>provides type safety for additional properties |
5670

57-
## Input Map Keys
58-
```
59-
type: Map<String, Object>
60-
```
61-
| Key | Type | Description | Notes |
62-
| --- | ---- | ------------ | ----- |
63-
| **anyStringName** | boolean | any string name can be used but the value must be the correct type | [optional] |
64-
6571
## Schema0
6672
public static class Schema0<br>
6773
extends JsonSchema
@@ -83,9 +89,21 @@ A schema class that validates payloads
8389
| static float | validate(float arg, SchemaConfiguration configuration) |
8490
| static double | validate(double arg, SchemaConfiguration configuration) |
8591
| static boolean | validate(boolean arg, SchemaConfiguration configuration) |
86-
| static [Schema0Map](#schema0map) | validate(Map<String, Object> arg, SchemaConfiguration configuration) |
92+
| static [Schema0Map](#schema0map) | validate([Map<String, Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
8793
| FrozenList<Object> | validate(List<Object> arg, SchemaConfiguration configuration) |
8894

95+
## Schema0MapInput
96+
public class Schema0MapInput<br>
97+
builder for `Map<String, Object>`
98+
99+
A class that builds the Map input type
100+
101+
## Input Map Keys
102+
| Key | Type | Description | Notes |
103+
| --- | ---- | ------------ | ----- |
104+
| **foo** | Object | | [optional] |
105+
| **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] |
106+
89107
## Schema0Map
90108
public static class Schema0Map<br>
91109
extends FrozenMap<String, Object>
@@ -95,19 +113,10 @@ A class to store validated Map payloads
95113
### Method Summary
96114
| Modifier and Type | Method and Description |
97115
| ----------------- | ---------------------- |
98-
| static [Schema0Map](#schema0map) | of(Map<String, Object> arg, SchemaConfiguration configuration) |
116+
| static [Schema0Map](#schema0map) | of([Map<String, Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
99117
| Object | foo()<br>[optional] |
100118
| Object | getAdditionalProperty(String name)<br>provides type safety for additional properties |
101119

102-
## Input Map Keys
103-
```
104-
type: Map<String, Object>
105-
```
106-
| Key | Type | Description | Notes |
107-
| --- | ---- | ------------ | ----- |
108-
| **foo** | Object | | [optional] |
109-
| **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] |
110-
111120
## Foo
112121
public static class Foo<br>
113122
extends AnyTypeJsonSchema

0 commit comments

Comments
 (0)