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

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

            var definitions = (Map<String, Map<String, Object>>) generate.get("definitions");

            var dag = definitions.get(Dag.class.getName());
            assertThat((List<String>) dag.get("required"), not(contains("errors")));
        });
    }