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

com.fibanez.jsonschema.content.generator.ConstSchemaGenerator Maven / Gradle / Ivy

package com.fibanez.jsonschema.content.generator;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import org.everit.json.schema.ConstSchema;

@NoArgsConstructor(access = AccessLevel.PACKAGE)
public final class ConstSchemaGenerator implements SchemaGenerator {

    @Override
    public Object generate(@NonNull ConstSchema schema, JsonNode jsonNode) {
        return schema.getPermittedValue();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy