Replace LaissezFaireSubTypeValidator with an equivalent BasicPolymorphicTypeValidator
Apache 2.0In Jackson 3, LaissezFaireSubTypeValidator is no longer public. Replace LaissezFaireSubTypeValidator.instance and new LaissezFaireSubTypeValidator() with BasicPolymorphicTypeValidator.builder().allowIfSubType(Object.class).build(), which also allows every subtype.
org. openrewrite. java. jackson. ReplaceLaissezFaireSubTypeValidatormod run . --recipe= org. openrewrite. java. jackson. ReplaceLaissezFaireSubTypeValidatorInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.