All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.apicurio.registry.serde.jsonschema.JsonSchemaSerializerConfig Maven / Gradle / Ivy

package io.apicurio.registry.serde.jsonschema;

import io.apicurio.registry.serde.config.SerdeConfig;

import java.util.HashMap;
import java.util.Map;

public class JsonSchemaSerializerConfig extends SerdeConfig {

    /**
     * Constructor.
     *
     * @param originals
     */
    public JsonSchemaSerializerConfig(Map originals) {
        Map joint = new HashMap<>(getDefaults());
        joint.putAll(originals);
        this.originals = joint;
    }

    public boolean validationEnabled() {
        return this.getBoolean(VALIDATION_ENABLED);
    }

    private static final Map DEFAULTS = Map.of(VALIDATION_ENABLED, VALIDATION_ENABLED_DEFAULT);

    @Override
    protected Map getDefaults() {
        Map joint = new HashMap<>(super.getDefaults());
        joint.putAll(DEFAULTS);
        return joint;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy