private LinkedHashSet < String > getSuperTypeConstructorPropertiesRecursive ( JsonNode node , Schema schema , boolean onlyRequired ) { Schema superTypeSchema = reflectionHelper . getSuperSchema ( node , schema , true ) ; if ( superTypeSchema == null ) { return new LinkedHashSet <> ( ) ; } JsonNode superSchemaNode = superTypeSchema . getContent ( ) ; LinkedHashSet < String > rtn = getConstructorProperties ( superSchemaNode , onlyRequired ) ; rtn . addAll ( getSuperTypeConstructorPropertiesRecursive ( superSchemaNode , superTypeSchema , onlyRequired ) ) ; return rtn ; }
Recursive walks the schema tree and assembles a list of all properties of this schema s super schemas