refractored code
@@ -2196,10 +2196,13 @@ public class OpenAPIDeserializer {
}
bool = getBoolean("deprecated", node, false, location, result);
- schema.setDeprecated(false);
+
if(bool != null){
schema.setDeprecated(bool);
}
+ else {
+ schema.setDeprecated(false);
+ }
Map <String,Object> extensions = getExtensions(node);
if(extensions != null && extensions.size() > 0) {
