
io.relayr.java.model.models.schema.ValueSchema Maven / Gradle / Ivy
package io.relayr.java.model.models.schema;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
import io.relayr.java.model.models.transport.DeviceReading;
/**
* Implements JSON Schema as defined
* in @see documentation
*/
public class ValueSchema implements Serializable, SchemaValidator {
/** Validation keywords for numeric instances (number and integer) */
protected Number minimum;
//If "exclusiveMinimum" is present, "minimum" MUST also be present.
//if "exclusiveMinimum" is not present, or has boolean value false, then the instance is valid if it is greater than, or equal to, the value of "minimum";
//if "exclusiveMinimum" is present and has boolean value true, the instance is valid if it is strictly greater than the value of "minimum".
protected Boolean exclusiveMinimum;
protected Number maximum;
//If "exclusiveMaximum" is present, "maximum" MUST also be present.
//if "exclusiveMaximum" is not present, or has boolean value false, then the instance is valid if it is lower than, or equal to, the value of "maximum";
//if "exclusiveMaximum" has boolean value true, the instance is valid if it is strictly lower than the value of "maximum".
protected Boolean exclusiveMaximum;
//This number MUST be strictly greater than 0.
protected Number multipleOf;
/** Validation keywords for strings */
//This integer MUST be greater than, or equal to, 0.
protected Integer maxLength;
//This integer MUST be greater than, or equal to, 0.
protected Integer minLength;
//This string SHOULD be a valid regular expression, according to the ECMA 262 regular expression dialect.
protected String pattern;
/** Validation keywords for arrays */
//The value of "additionalItems" MUST be either a boolean or an object. If it is an object, this object MUST be a valid JSON Schema.
protected Object additionalItems;
//The value of "items" MUST be either an object or an array. If it is an object, this object MUST be a valid JSON Schema.
//If it is an array, items of this array MUST be objects, and each of these objects MUST be a valid JSON Schema.
protected List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy