public class SchemaGeneratorGeneralConfigPart extends SchemaGeneratorTypeConfigPart<TypeScope>
Constructor and Description |
---|
SchemaGeneratorGeneralConfigPart() |
getFirstDefinedValue, getFirstDefinedValue, resolveAdditionalProperties, resolveArrayMaxItems, resolveArrayMinItems, resolveArrayUniqueItems, resolveDefault, resolveDescription, resolveEnum, resolveNumberExclusiveMaximum, resolveNumberExclusiveMinimum, resolveNumberInclusiveMaximum, resolveNumberInclusiveMinimum, resolveNumberMultipleOf, resolvePatternProperties, resolveStringFormat, resolveStringMaxLength, resolveStringMinLength, resolveStringPattern, resolveTitle
public SchemaGeneratorGeneralConfigPart withPropertySorter(Comparator<MemberScope<?,?>> propertySorter)
propertySorter
- sorting algorithm for an object's propertiespublic Comparator<MemberScope<?,?>> getPropertySorter()
Comparator
for an object's propertiespublic SchemaGeneratorGeneralConfigPart withDefinitionNamingStrategy(SchemaDefinitionNamingStrategy namingStrategy)
namingStrategy
- naming strategy for "definitions"/"$defs" keyspublic SchemaDefinitionNamingStrategy getDefinitionNamingStrategy()
null
if the a default strategy should be used)public SchemaGeneratorGeneralConfigPart withCustomDefinitionProvider(CustomDefinitionProviderV2 definitionProvider)
definitionProvider
- provider of a custom definition to register, which may return nullpublic List<CustomDefinitionProviderV2> getCustomDefinitionProviders()
public SchemaGeneratorGeneralConfigPart withSubtypeResolver(SubtypeResolver subtypeResolver)
subtypeResolver
- resolver for looking up a declared type's subtypes in order to list those specificallypublic List<SubtypeResolver> getSubtypeResolvers()
public SchemaGeneratorGeneralConfigPart withTypeAttributeOverride(TypeAttributeOverrideV2 override)
override
- adding/removing attributes on a JSON Schema node – specifically intended for attributes relating to the type in general.public List<TypeAttributeOverrideV2> getTypeAttributeOverrides()
public SchemaGeneratorGeneralConfigPart withIdResolver(ConfigFunction<TypeScope,String> resolver)
resolver
- how to determine the "$id" of a JSON Schemapublic String resolveId(TypeScope scope)
scope
- context-independent type representation to determine "$id" value forpublic SchemaGeneratorGeneralConfigPart withAnchorResolver(ConfigFunction<TypeScope,String> resolver)
resolver
- how to determine the "$anchor" of a JSON Schemapublic String resolveAnchor(TypeScope scope)
scope
- context-independent type representation to determine "$anchor" value forpublic SchemaGeneratorGeneralConfigPart withTitleResolver(ConfigFunction<TypeScope,String> resolver)
SchemaGeneratorTypeConfigPart
withTitleResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "title" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withDescriptionResolver(ConfigFunction<TypeScope,String> resolver)
SchemaGeneratorTypeConfigPart
withDescriptionResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "description" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withDefaultResolver(ConfigFunction<TypeScope,Object> resolver)
SchemaGeneratorTypeConfigPart
withDefaultResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "default" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withEnumResolver(ConfigFunction<TypeScope,Collection<?>> resolver)
SchemaGeneratorTypeConfigPart
withEnumResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "enum"/"const" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withAdditionalPropertiesResolver(ConfigFunction<TypeScope,Type> resolver)
SchemaGeneratorTypeConfigPart
Void
"false" will be set, otherwise an appropriate sub-schema.withAdditionalPropertiesResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "additionalProperties" of a JSON Schema, returning Void
will result in "false"public SchemaGeneratorGeneralConfigPart withAdditionalPropertiesResolver(BiFunction<TypeScope,SchemaGenerationContext,com.fasterxml.jackson.databind.JsonNode> resolver)
SchemaGeneratorTypeConfigPart
Void
"false" will be set, otherwise an appropriate sub-schema.withAdditionalPropertiesResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "additionalProperties" of a JSON Schema, returning Void
will result in "false"public SchemaGeneratorGeneralConfigPart withPatternPropertiesResolver(ConfigFunction<TypeScope,Map<String,Type>> resolver)
SchemaGeneratorTypeConfigPart
withPatternPropertiesResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "patternProperties" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withPatternPropertiesResolver(BiFunction<TypeScope,SchemaGenerationContext,Map<String,com.fasterxml.jackson.databind.JsonNode>> resolver)
SchemaGeneratorTypeConfigPart
withPatternPropertiesResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "patternProperties" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withStringMinLengthResolver(ConfigFunction<TypeScope,Integer> resolver)
SchemaGeneratorTypeConfigPart
withStringMinLengthResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "minLength" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withStringMaxLengthResolver(ConfigFunction<TypeScope,Integer> resolver)
SchemaGeneratorTypeConfigPart
withStringMaxLengthResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "maxLength" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withStringFormatResolver(ConfigFunction<TypeScope,String> resolver)
SchemaGeneratorTypeConfigPart
withStringFormatResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "format" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withStringPatternResolver(ConfigFunction<TypeScope,String> resolver)
SchemaGeneratorTypeConfigPart
withStringPatternResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "format" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withNumberInclusiveMinimumResolver(ConfigFunction<TypeScope,BigDecimal> resolver)
SchemaGeneratorTypeConfigPart
withNumberInclusiveMinimumResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "minimum" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withNumberExclusiveMinimumResolver(ConfigFunction<TypeScope,BigDecimal> resolver)
SchemaGeneratorTypeConfigPart
withNumberExclusiveMinimumResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "exclusiveMinimum" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withNumberInclusiveMaximumResolver(ConfigFunction<TypeScope,BigDecimal> resolver)
SchemaGeneratorTypeConfigPart
withNumberInclusiveMaximumResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "maximum" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withNumberExclusiveMaximumResolver(ConfigFunction<TypeScope,BigDecimal> resolver)
SchemaGeneratorTypeConfigPart
withNumberExclusiveMaximumResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "exclusiveMaximum" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withNumberMultipleOfResolver(ConfigFunction<TypeScope,BigDecimal> resolver)
SchemaGeneratorTypeConfigPart
withNumberMultipleOfResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "multipleOf" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withArrayMinItemsResolver(ConfigFunction<TypeScope,Integer> resolver)
SchemaGeneratorTypeConfigPart
withArrayMinItemsResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "minItems" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withArrayMaxItemsResolver(ConfigFunction<TypeScope,Integer> resolver)
SchemaGeneratorTypeConfigPart
withArrayMaxItemsResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "maxItems" of a JSON Schemapublic SchemaGeneratorGeneralConfigPart withArrayUniqueItemsResolver(ConfigFunction<TypeScope,Boolean> resolver)
SchemaGeneratorTypeConfigPart
withArrayUniqueItemsResolver
in class SchemaGeneratorTypeConfigPart<TypeScope>
resolver
- how to determine the "uniqueItems" of a JSON SchemaCopyright © 2022 VicTools. All rights reserved.