Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
set property.deprecated
  • Loading branch information
inadysensei committed Jan 23, 2020
commit 4ea8d3920057a7213e06c1dae1b04414cbf24ec9
Original file line number Diff line number Diff line change
Expand Up @@ -2246,6 +2246,10 @@ public CodegenProperty fromProperty(String name, Schema p) {
property.defaultValue = toDefaultValue(p);
property.defaultValueWithParam = toDefaultValueWithParam(name, p);
property.jsonSchema = Json.pretty(p);

if ( p.getDeprecated() != null) {
property.deprecated = p.getDeprecated();
}
if (p.getReadOnly() != null) {
property.isReadOnly = p.getReadOnly();
}
Expand Down Expand Up @@ -5459,4 +5463,4 @@ public FeatureSet getFeatureSet() {
public void setFeatureSet(final FeatureSet featureSet) {
this.featureSet = featureSet == null ? DefaultFeatureSet : featureSet;
}
}
}