private static List<ResolvedType> acceptSingleValueAsArray(MemberScope<?, ?> scope) {
        if (scope.isContainerType() && !scope.isFakeContainerItemScope()) {
            return Arrays.asList(scope.getContainerItemType(), scope.getType());
        }
        return null;
    }
Allow a container's item type as single instance alternative to an array, or return null for non-containers.

@param scope targeted field/method
@return collection containing both the container's item type and the container type as such, or null
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/module/SingleValueAsArrayModule.java