public final class SchemaExtensions extends Object
Schema
object.Modifier and Type | Method and Description |
---|---|
static void |
addNotEnum(io.swagger.v3.oas.models.media.Schema<?> schema,
Object enumValue)
Adds to the composed set of enums to not match when validating the given schema.
|
static void |
addNotEnums(io.swagger.v3.oas.models.media.Schema<?> schema,
Iterable<?> enums)
Adds to the composed set of enums to not match when validating the given schema.
|
static void |
addNotMultipleOf(io.swagger.v3.oas.models.media.Schema<?> schema,
BigDecimal multipleOf)
Adds to the composed set of multipleOfs to not match when validating the given numeric schema.
|
static void |
addNotMultipleOfs(io.swagger.v3.oas.models.media.Schema<?> schema,
Iterable<BigDecimal> multipleOfs)
Adds to the composed set of multipleOfs to not match when validating the given numeric schema.
|
static void |
addNotPattern(io.swagger.v3.oas.models.media.Schema<?> schema,
String pattern)
Adds to the composed set of patterns to not match when validating the given schema.
|
static void |
addNotPatterns(io.swagger.v3.oas.models.media.Schema<?> schema,
Iterable<String> patterns)
Adds to the composed set of patterns to not match when validating the given schema.
|
static void |
addNotRequired(io.swagger.v3.oas.models.media.Schema<?> schema,
Iterable<String> notRequired)
Adds to the composed set of properties that must not be required when validating the given object schema.
|
static void |
addNotRequired(io.swagger.v3.oas.models.media.Schema<?> schema,
String property)
Adds to the composed set of properties that must not be required when validating the given object schema.
|
static void |
addNotType(io.swagger.v3.oas.models.media.Schema<?> schema,
String type)
Adds to the composed set of types that must not be required when validating the given schema.
|
static void |
addNotTypes(io.swagger.v3.oas.models.media.Schema<?> schema,
Iterable<String> notTypes)
Adds to the composed set of types that must not be required when validating the given schema.
|
static void |
addPattern(io.swagger.v3.oas.models.media.Schema<?> schema,
String pattern)
Adds to the composed set of patterns to match when validating the given string schema.
|
static void |
addPatterns(io.swagger.v3.oas.models.media.Schema<?> schema,
Iterable<String> patterns)
Adds to the composed set of patterns to match when validating the given string schema.
|
static Dnf |
getDnf(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns the disjunctive normal form of this given schema.
|
static Integer |
getMaxValues(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns the maximum number of non-null values that can satisfy this schema.
|
static Set<Object> |
getNotEnums(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns the composed set of enums to not match when validating the given schema.
|
static Set<BigDecimal> |
getNotMultipleOfs(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns the composed set of multipleOfs to not match when validating the given numeric schema.
|
static Set<String> |
getNotPatterns(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns the composed set of patterns to not match when validating the given schema.
|
static Set<String> |
getNotRequired(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns the composed set of properties that must not be required when validating the given object schema.
|
static Set<String> |
getNotTypes(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns the composed set of types that must not be required when validating the given schema.
|
static Set<String> |
getPatterns(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns the composed set of patterns to match when validating the given string schema.
|
static Set<String> |
getRequiredTypes(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns the instance types required to validate the given schema.
|
static Boolean |
getResolvedAll(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns if this schema and all of its subschemas are resolved.
|
static Set<String> |
getValidTypes(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns the instance types that can be validated by the given schema.
|
static Boolean |
getValidTypesAll(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns if this schema and all of its subschemas have valid types.
|
static boolean |
hasResolvedAll(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns if resolution of this schema and all of its subschemas is defined.
|
static boolean |
hasValidTypes(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns true if the instance types that can be validated are defined for the given schema.
|
static boolean |
hasValidTypesAll(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns if valid types for this schema and all of its subschemas are defined.
|
static boolean |
isExampleSchema(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns if this is schema for an example value.
|
static boolean |
isModellingInput(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns if currently generating an input model for this schema.
|
static boolean |
isNullChecked(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns if the input model for this schema requires null checks
|
static boolean |
isPropertySchema(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns if this is schema for an object property
|
static boolean |
isTypeChecked(io.swagger.v3.oas.models.media.Schema<?> schema)
Returns if the input model for this schema requires type checks
|
static void |
setDnf(io.swagger.v3.oas.models.media.Schema<?> schema,
Dnf dnf)
Changes the disjunctive normal form of this given schema.
|
static void |
setExampleSchema(io.swagger.v3.oas.models.media.Schema<?> schema,
boolean forExample)
Changes if this is schema for an example value.
|
static void |
setMaxValues(io.swagger.v3.oas.models.media.Schema<?> schema,
Integer maxValues)
Changes the maximum number of non-null values that can satisfy this schema.
|
static void |
setModellingInput(io.swagger.v3.oas.models.media.Schema<?> schema,
boolean modelling)
Changes if currently generating an input model for this schema.
|
static void |
setNotEnums(io.swagger.v3.oas.models.media.Schema<?> schema,
Iterable<?> enums)
Changes the composed set of enums to not match when validating the given schema.
|
static void |
setNotMultipleOfs(io.swagger.v3.oas.models.media.Schema<?> schema,
BigDecimal... multipleOfs)
Changes the composed set of multipleOfs to not match when validating the given numeric schema.
|
static void |
setNotMultipleOfs(io.swagger.v3.oas.models.media.Schema<?> schema,
Iterable<BigDecimal> multipleOfs)
Changes the composed set of multipleOfs to not match when validating the given numeric schema.
|
static void |
setNotPatterns(io.swagger.v3.oas.models.media.Schema<?> schema,
Iterable<String> patterns)
Changes the composed set of patterns to not match when validating the given schema.
|
static void |
setNotPatterns(io.swagger.v3.oas.models.media.Schema<?> schema,
String... patterns)
Changes the composed set of patterns to not match when validating the given schema.
|
static void |
setNotRequired(io.swagger.v3.oas.models.media.Schema<?> schema,
Iterable<String> notRequired)
Changes the composed set of properties that must not be required when validating the given object schema.
|
static void |
setNotTypes(io.swagger.v3.oas.models.media.Schema<?> schema,
Iterable<String> notTypes)
Changes the composed set of types that must not be required when validating the given schema.
|
static void |
setNullChecked(io.swagger.v3.oas.models.media.Schema<?> schema,
boolean checked)
Changes if the input model for this schema requires null checks
|
static void |
setPatterns(io.swagger.v3.oas.models.media.Schema<?> schema,
Iterable<String> patterns)
Changes the composed set of patterns to match when validating the given string schema.
|
static void |
setPatterns(io.swagger.v3.oas.models.media.Schema<?> schema,
String... patterns)
Changes the composed set of patterns to match when validating the given string schema.
|
static void |
setPropertySchema(io.swagger.v3.oas.models.media.Schema<?> schema,
boolean forProperty)
Changes if this is schema for an object property
|
static void |
setResolvedAll(io.swagger.v3.oas.models.media.Schema<?> schema,
Boolean resolved)
Changes if this schema and all of its subschemas are resolved.
|
static void |
setTypeChecked(io.swagger.v3.oas.models.media.Schema<?> schema,
boolean checked)
Changes if the input model for this schema requires type checks
|
static void |
setValidTypes(io.swagger.v3.oas.models.media.Schema<?> schema,
Set<String> validTypes)
Changes the instance types that can be validated by the given schema.
|
static void |
setValidTypesAll(io.swagger.v3.oas.models.media.Schema<?> schema,
Boolean validTypes)
Changes if this schema and all of its subschemas have valid types.
|
public static boolean hasValidTypes(io.swagger.v3.oas.models.media.Schema<?> schema)
public static Set<String> getValidTypes(io.swagger.v3.oas.models.media.Schema<?> schema)
public static Set<String> getNotTypes(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setNotTypes(io.swagger.v3.oas.models.media.Schema<?> schema, Iterable<String> notTypes)
public static void addNotType(io.swagger.v3.oas.models.media.Schema<?> schema, String type)
public static void addNotTypes(io.swagger.v3.oas.models.media.Schema<?> schema, Iterable<String> notTypes)
public static Set<String> getRequiredTypes(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setValidTypes(io.swagger.v3.oas.models.media.Schema<?> schema, Set<String> validTypes)
public static boolean isTypeChecked(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setTypeChecked(io.swagger.v3.oas.models.media.Schema<?> schema, boolean checked)
public static boolean isNullChecked(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setNullChecked(io.swagger.v3.oas.models.media.Schema<?> schema, boolean checked)
public static Dnf getDnf(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setDnf(io.swagger.v3.oas.models.media.Schema<?> schema, Dnf dnf)
public static boolean hasResolvedAll(io.swagger.v3.oas.models.media.Schema<?> schema)
public static Boolean getResolvedAll(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setResolvedAll(io.swagger.v3.oas.models.media.Schema<?> schema, Boolean resolved)
public static boolean hasValidTypesAll(io.swagger.v3.oas.models.media.Schema<?> schema)
public static Boolean getValidTypesAll(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setValidTypesAll(io.swagger.v3.oas.models.media.Schema<?> schema, Boolean validTypes)
public static boolean isModellingInput(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setModellingInput(io.swagger.v3.oas.models.media.Schema<?> schema, boolean modelling)
public static Set<String> getPatterns(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setPatterns(io.swagger.v3.oas.models.media.Schema<?> schema, Iterable<String> patterns)
public static void setPatterns(io.swagger.v3.oas.models.media.Schema<?> schema, String... patterns)
public static void addPatterns(io.swagger.v3.oas.models.media.Schema<?> schema, Iterable<String> patterns)
public static void addPattern(io.swagger.v3.oas.models.media.Schema<?> schema, String pattern)
public static Set<String> getNotPatterns(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setNotPatterns(io.swagger.v3.oas.models.media.Schema<?> schema, Iterable<String> patterns)
public static void setNotPatterns(io.swagger.v3.oas.models.media.Schema<?> schema, String... patterns)
public static void addNotPatterns(io.swagger.v3.oas.models.media.Schema<?> schema, Iterable<String> patterns)
public static void addNotPattern(io.swagger.v3.oas.models.media.Schema<?> schema, String pattern)
public static Set<BigDecimal> getNotMultipleOfs(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setNotMultipleOfs(io.swagger.v3.oas.models.media.Schema<?> schema, Iterable<BigDecimal> multipleOfs)
public static void setNotMultipleOfs(io.swagger.v3.oas.models.media.Schema<?> schema, BigDecimal... multipleOfs)
public static void addNotMultipleOf(io.swagger.v3.oas.models.media.Schema<?> schema, BigDecimal multipleOf)
public static void addNotMultipleOfs(io.swagger.v3.oas.models.media.Schema<?> schema, Iterable<BigDecimal> multipleOfs)
public static Set<Object> getNotEnums(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setNotEnums(io.swagger.v3.oas.models.media.Schema<?> schema, Iterable<?> enums)
public static void addNotEnum(io.swagger.v3.oas.models.media.Schema<?> schema, Object enumValue)
public static void addNotEnums(io.swagger.v3.oas.models.media.Schema<?> schema, Iterable<?> enums)
public static Set<String> getNotRequired(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setNotRequired(io.swagger.v3.oas.models.media.Schema<?> schema, Iterable<String> notRequired)
public static void addNotRequired(io.swagger.v3.oas.models.media.Schema<?> schema, String property)
public static void addNotRequired(io.swagger.v3.oas.models.media.Schema<?> schema, Iterable<String> notRequired)
public static Integer getMaxValues(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setMaxValues(io.swagger.v3.oas.models.media.Schema<?> schema, Integer maxValues)
public static boolean isPropertySchema(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setPropertySchema(io.swagger.v3.oas.models.media.Schema<?> schema, boolean forProperty)
public static boolean isExampleSchema(io.swagger.v3.oas.models.media.Schema<?> schema)
public static void setExampleSchema(io.swagger.v3.oas.models.media.Schema<?> schema, boolean forExample)
Copyright © 2024 The Cornutum Project. All rights reserved.