public <T> Map<String, Object> schemas(Class<? extends T> cls) {
        return this.schemas(cls, false);
    }
@SuppressWarnings("unchecked")
    @Test
    void task() throws URISyntaxException {
        Helpers.runApplicationContext((applicationContext) -> {
            JsonSchemaGenerator jsonSchemaGenerator = applicationContext.getBean(JsonSchemaGenerator.class);

            Map<String, Object> generate = jsonSchemaGenerator.schemas(Task.class);

            var definitions = (Map<String, Map<String, Object>>) generate.get("definitions");
            var task = definitions.get(Task.class.getName());
            Assertions.assertNotNull(task.get("oneOf"));
        });
    }