Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds IJsonSchemaValidationProperties format getter and setter +uses the format info #13360

Merged
merged 36 commits into from
Sep 11, 2022
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
8da0596
Adds format getter and setter
spacether Sep 6, 2022
e2986f8
Updates codegenProperty
spacether Sep 6, 2022
eea3a07
Updates codegenModel
spacether Sep 6, 2022
de1d108
Updates codegenParameter + Response
spacether Sep 6, 2022
3e644e5
Sets format and removes unused import code in python-experimental
spacether Sep 6, 2022
1f3c4ef
Samples regenerated
spacether Sep 6, 2022
09e948a
Samples regenerated
spacether Sep 6, 2022
55b3a41
Adds AnyTypeAndFormat
spacether Sep 6, 2022
e5ba5ae
Separates format bases out from their str or number bases
spacether Sep 6, 2022
ca89aac
Docs updated
spacether Sep 6, 2022
900b575
Updates python-exp, stops setting isDate and uses format instead
spacether Sep 6, 2022
6fcbcb3
Removes python-experimental isDate usages
spacether Sep 6, 2022
a685a65
Fixes password usages
spacether Sep 6, 2022
e50610d
Turns off isDateTime in python-experimental java layer
spacether Sep 6, 2022
cd5d43a
Sample regnerated without isDateTime
spacether Sep 6, 2022
fc3d189
Removes isUuid
spacether Sep 6, 2022
44485ea
Turns off isDecimal, decimal_payload broken
spacether Sep 6, 2022
22d2fc2
Removes isDecimal
spacether Sep 6, 2022
e50c4cd
Removes isByteArray
spacether Sep 6, 2022
78f46f1
Removes isBinary python-exp usages
spacether Sep 6, 2022
3ce5c04
Removes isFloat isDouble setting from python-experimental
spacether Sep 6, 2022
033bfdb
Removes isDouble isFloat usages in sample
spacether Sep 6, 2022
68afe36
Stops setting isShort and isLong in python-exp java layer
spacether Sep 6, 2022
ca6f2a1
Removes isShort isLong usages from python-exp and generates sample
spacether Sep 6, 2022
c7f9f9b
Adds decimal as integer input
spacether Sep 6, 2022
050d834
Adds missing bool type
spacether Sep 6, 2022
2ec1bfb
Adds validations to format mixins, adds test_uuid
spacether Sep 7, 2022
bc05503
Adds test_date
spacether Sep 7, 2022
38312d2
Adds test_date_time
spacether Sep 7, 2022
22b9b7e
Adds test_number
spacether Sep 7, 2022
5081e43
Adds test_int32
spacether Sep 7, 2022
e0a3964
Adds test_int64
spacether Sep 7, 2022
2e73bc9
Adds test_double
spacether Sep 7, 2022
11aecef
Adds test_float
spacether Sep 7, 2022
a39d4f5
Samples updated
spacether Sep 7, 2022
1e8deca
Fixes javadoc
spacether Sep 7, 2022
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
Prev Previous commit
Next Next commit
Updates codegenProperty
  • Loading branch information
spacether committed Sep 6, 2022
commit e2986f8c3b00baa944bc2edf36f7cd713c6ca47d
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,17 @@ public class CodegenProperty implements Cloneable, IJsonSchemaValidationProperti
private boolean schemaIsFromAdditionalProperties;
private boolean isBooleanSchemaTrue;
private boolean isBooleanSchemaFalse;
private String format;

@Override
public void setFormat(String format) {
this.format = format;
}

@Override
public String getFormat() {
return format;
}

@Override
public boolean getIsBooleanSchemaTrue() {
Expand Down Expand Up @@ -1040,6 +1051,7 @@ public String toString() {
sb.append(", schemaIsFromAdditionalProperties=").append(schemaIsFromAdditionalProperties);
sb.append(", isBooleanSchemaTrue=").append(isBooleanSchemaTrue);
sb.append(", isBooleanSchemaFalse=").append(isBooleanSchemaFalse);
sb.append(", format=").append(format);
sb.append('}');
return sb.toString();
}
Expand Down Expand Up @@ -1101,6 +1113,7 @@ public boolean equals(Object o) {
getAdditionalPropertiesIsAnyType() == that.getAdditionalPropertiesIsAnyType() &&
getHasVars() == that.getHasVars() &&
getHasRequired() == that.getHasRequired() &&
Objects.equals(format, that.getFormat()) &&
Objects.equals(uniqueItemsBoolean, that.getUniqueItemsBoolean()) &&
Objects.equals(ref, that.getRef()) &&
Objects.equals(requiredVarsMap, that.getRequiredVarsMap()) &&
Expand Down Expand Up @@ -1168,6 +1181,7 @@ public int hashCode() {
nameInSnakeCase, enumName, maxItems, minItems, isXmlAttribute, xmlPrefix, xmlName,
xmlNamespace, isXmlWrapped, isNull, additionalPropertiesIsAnyType, hasVars, hasRequired,
hasDiscriminatorWithNonEmptyMapping, composedSchemas, hasMultipleTypes, requiredVarsMap,
ref, uniqueItemsBoolean, schemaIsFromAdditionalProperties, isBooleanSchemaTrue, isBooleanSchemaFalse);
ref, uniqueItemsBoolean, schemaIsFromAdditionalProperties, isBooleanSchemaTrue, isBooleanSchemaFalse,
format);
}
}