File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
src/main/java/com/saasquatch/jsonschemainferrer Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 1616import java .util .Objects ;
1717import java .util .Set ;
1818import java .util .stream .Collectors ;
19- import java .util .stream .Stream ;
2019import javax .annotation .Nonnull ;
2120import javax .annotation .Nullable ;
2221import javax .annotation .concurrent .Immutable ;
@@ -249,16 +248,6 @@ private Set<ObjectNode> processPrimitives(@Nonnull Collection<ValueNode> valueNo
249248 return anyOfs ;
250249 }
251250
252- private Stream <ObjectNode > handleEnumExtractionResults (
253- @ Nonnull Set <Set <? extends JsonNode >> enumExtractionResults ) {
254- return enumExtractionResults .stream ().map (enumExtractionResult -> {
255- final ObjectNode schema = newObject ();
256- schema .set (Consts .Fields .ENUM , newArray (enumExtractionResult ));
257- processGenericSchemaFeature (schema , enumExtractionResult , null );
258- return schema ;
259- });
260- }
261-
262251 /**
263252 * Build {@code anyOf} from sample JSONs. Note that all the arrays and objects will be combined.
264253 *
@@ -294,7 +283,6 @@ private Set<ObjectNode> getAnyOfsFromSamples(
294283 processGenericSchemaFeature (anyOf , enumExtractionResult , null );
295284 anyOfs .add (anyOf );
296285 }
297- handleEnumExtractionResults (enumExtractionResults ).forEach (anyOfs ::add );
298286 // Objects
299287 final ObjectNode resultForObjects = processObjects (objectNodes );
300288 if (resultForObjects != null ) {
You can’t perform that action at this time.
0 commit comments