-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make yaml dependency optional #840
Comments
@alturkovic @stevehu YAML support was added 2023-03-04 (0815871) and published in version 1.0.78. While it would be simple to make the dependency on Should we add this change to 1.1.x or should we make the change now, provide migration instructions and assume the impact will be small? |
The jackson-dataformat-yaml is a dependency in the pom.xml and would be included in your target application as a transitive dependency. How it would be missing? If possible, I don't think making this an optional dependency. |
What I meant was, I tried excluding the |
It is not possible as partial code depends on it during runtime. |
I tried to parse a json-schema like:
JsonSchemaFactory.getInstance(version).getSchema(schema)
That produces an exception if you do not havejackson-dataformat-yaml
dependency even though I do not want to use YAML because the internal builder (com.networknt.schema.JsonSchemaFactory.Builder
) uses an instance ofYamlMapper
upon construction.This should be revised to be able to use the library without the dependency.
The text was updated successfully, but these errors were encountered: