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

Java, schema documentation improvements for strings [breaking] #322

Merged
merged 5 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions samples/client/petstore/java/docs/components/schemas/Apple.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ Apple.AppleMap validatedPayload =
MapMaker.makeMap(
new AbstractMap.SimpleEntry<>(
"cultivar",
"a"
"IaQn EaqioxT oASzjxaSH"
),
new AbstractMap.SimpleEntry<>(
"origin",
"a"
"IaQn EaqioxT oASzjxaSH"
)
),
configuration
Expand Down Expand Up @@ -114,7 +114,7 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch

// String validation
String validatedPayload = Apple.Origin.validate(
"a",
"IaQn EaqioxT oASzjxaSH",
configuration
);
```
Expand Down Expand Up @@ -152,7 +152,7 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch

// String validation
String validatedPayload = Apple.Cultivar.validate(
"a",
"IaQn EaqioxT oASzjxaSH",
configuration
);
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch

// String validation
String validatedPayload = ComposedOneOfDifferentTypes.Schema6.validate(
"a",
"2020jUR,rZ#UM/?R,Fp^l6$ARj",
configuration
);
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch

// String validation
String validatedPayload = DateTimeTest.DateTimeTest1.validate(
"a",
"1970-01-01T00:00:00.00Z",
configuration
);
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch

// String validation
String validatedPayload = DateTimeWithValidations.DateTimeWithValidations1.validate(
"a",
"2020jUR,rZ#UM/?R,Fp^l6$ARj",
configuration
);
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch

// String validation
String validatedPayload = DateWithValidations.DateWithValidations1.validate(
"a",
"2020jUR,rZ#UM/?R,Fp^l6$ARj",
configuration
);
```
Expand Down
20 changes: 10 additions & 10 deletions samples/client/petstore/java/docs/components/schemas/FormatTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ FormatTest.FormatTestMap validatedPayload =
),
new AbstractMap.SimpleEntry<>(
"date",
"a"
"2020-12-13"
),
new AbstractMap.SimpleEntry<>(
"number",
Expand Down Expand Up @@ -114,31 +114,31 @@ FormatTest.FormatTestMap validatedPayload =
),
new AbstractMap.SimpleEntry<>(
"string",
"a"
"A"
),
new AbstractMap.SimpleEntry<>(
"binary",
"a"
),
new AbstractMap.SimpleEntry<>(
"dateTime",
"a"
"1970-01-01T00:00:00.00Z"
),
new AbstractMap.SimpleEntry<>(
"uuid",
"a"
"046b6c7f-0b8a-43b9-b35d-6489e6daee91"
),
new AbstractMap.SimpleEntry<>(
"uuidNoExample",
"a"
"046b6c7f-0b8a-43b9-b35d-6489e6daee91"
),
new AbstractMap.SimpleEntry<>(
"pattern_with_digits",
"a"
"0480728880"
),
new AbstractMap.SimpleEntry<>(
"pattern_with_digits_and_delimiter",
"a"
"IMage_88"
),
new AbstractMap.SimpleEntry<>(
"noneProp",
Expand Down Expand Up @@ -251,7 +251,7 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch

// String validation
String validatedPayload = FormatTest.PatternWithDigitsAndDelimiter.validate(
"a",
"IMage_88",
configuration
);
```
Expand Down Expand Up @@ -292,7 +292,7 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch

// String validation
String validatedPayload = FormatTest.PatternWithDigits.validate(
"a",
"0480728880",
configuration
);
```
Expand Down Expand Up @@ -420,7 +420,7 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch

// String validation
String validatedPayload = FormatTest.StringSchema.validate(
"a",
"A",
configuration
);
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalProperti
MapMaker.makeMap(
new AbstractMap.SimpleEntry<>(
"uuid",
"a"
"046b6c7f-0b8a-43b9-b35d-6489e6daee91"
),
new AbstractMap.SimpleEntry<>(
"dateTime",
"a"
"1970-01-01T00:00:00.00Z"
),
new AbstractMap.SimpleEntry<>(
"map",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Money.MoneyMap validatedPayload =
MapMaker.makeMap(
new AbstractMap.SimpleEntry<>(
"amount",
"a"
"3.14"
),
new AbstractMap.SimpleEntry<>(
"currency",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ MyObjectDto.MyObjectDtoMap validatedPayload =
MapMaker.makeMap(
new AbstractMap.SimpleEntry<>(
"id",
"a"
"046b6c7f-0b8a-43b9-b35d-6489e6daee91"
)
),
configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ Void validatedPayload = NullableClass.DatetimeProp.validate(

// String validation
String validatedPayload = NullableClass.DatetimeProp.validate(
"a",
"1970-01-01T00:00:00.00Z",
configuration
);
```
Expand Down Expand Up @@ -807,7 +807,7 @@ Void validatedPayload = NullableClass.DateProp.validate(

// String validation
String validatedPayload = NullableClass.DateProp.validate(
"a",
"2020-12-13",
configuration
);
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ ObjectWithDecimalProperties.ObjectWithDecimalPropertiesMap validatedPayload =
MapMaker.makeMap(
new AbstractMap.SimpleEntry<>(
"length",
"a"
"3.14"
),
new AbstractMap.SimpleEntry<>(
"width",
"a"
"3.14"
),
new AbstractMap.SimpleEntry<>(
"cost",
MapMaker.makeMap(
new AbstractMap.SimpleEntry<>(
"amount",
"a"
"3.14"
),
new AbstractMap.SimpleEntry<>(
"currency",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Order.OrderMap validatedPayload =
),
new AbstractMap.SimpleEntry<>(
"shipDate",
"a"
"1970-01-01T00:00:00.00Z"
),
new AbstractMap.SimpleEntry<>(
"status",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch

// String validation
String validatedPayload = UUIDString.UUIDString1.validate(
"a",
"046b6c7f-0b8a-43b9-b35d-6489e6daee91",
configuration
);
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Schema.SchemaMap validatedPayload =
),
new AbstractMap.SimpleEntry<>(
"pattern_without_delimiter",
"a"
"AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>"
),
new AbstractMap.SimpleEntry<>(
"integer",
Expand All @@ -83,19 +83,19 @@ Schema.SchemaMap validatedPayload =
),
new AbstractMap.SimpleEntry<>(
"string",
"a"
"A"
),
new AbstractMap.SimpleEntry<>(
"binary",
"a"
),
new AbstractMap.SimpleEntry<>(
"date",
"a"
"2020-12-13"
),
new AbstractMap.SimpleEntry<>(
"dateTime",
"a"
"1970-01-01T00:00:00.00Z"
),
new AbstractMap.SimpleEntry<>(
"password",
Expand Down Expand Up @@ -243,7 +243,7 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch

// String validation
String validatedPayload = Schema.DateTime.validate(
"a",
"1970-01-01T00:00:00.00Z",
configuration
);
```
Expand Down Expand Up @@ -315,7 +315,7 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch

// String validation
String validatedPayload = Schema.PatternWithoutDelimiter.validate(
"a",
"AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>",
configuration
);
```
Expand Down Expand Up @@ -356,7 +356,7 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch

// String validation
String validatedPayload = Schema.StringSchema.validate(
"a",
"A",
configuration
);
```
Expand Down
Loading