public class JsonSchema extends AbstractJsonSchema<JsonSchema.V1JSONSchemaProps,JsonSchema.V1ValidationRule>
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonSchema.V1JSONSchemaProps |
static class |
JsonSchema.V1ValidationRule |
AbstractJsonSchema.AnnotationMetadata| Constructor and Description |
|---|
JsonSchema(ResolvingContext resolvingContext,
Class<?> definition) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addProperty(String name,
JsonSchema.V1JSONSchemaProps objectSchema,
JsonSchema.V1JSONSchemaProps schema)
Adds the specified property to the specified builder
|
protected void |
addToValidationRules(JsonSchema.V1JSONSchemaProps schema,
List<JsonSchema.V1ValidationRule> validationRules) |
protected JsonSchema.V1JSONSchemaProps |
arrayLikeProperty(JsonSchema.V1JSONSchemaProps schema)
Builds the schema for array-like properties
|
protected JsonSchema.V1JSONSchemaProps |
enumProperty(com.fasterxml.jackson.databind.JsonNode... enumValues) |
static io.fabric8.kubernetes.api.model.apiextensions.v1.JSONSchemaProps |
from(Class<?> definition) |
protected JsonSchema.V1JSONSchemaProps |
intOrString()
Builds the schema for specifically for intOrString properties
|
protected JsonSchema.V1JSONSchemaProps |
mapLikeProperty(JsonSchema.V1JSONSchemaProps schema)
Builds the schema for map-like properties
|
protected JsonSchema.V1ValidationRule |
newKubernetesValidationRule() |
protected JsonSchema.V1JSONSchemaProps |
raw() |
protected JsonSchema.V1JSONSchemaProps |
singleProperty(String typeName)
Builds the schema for standard, simple (e.g.
|
getAllPaths, getDependentClasses, getSchema, getSinglePathpublic JsonSchema(ResolvingContext resolvingContext, Class<?> definition)
public static io.fabric8.kubernetes.api.model.apiextensions.v1.JSONSchemaProps from(Class<?> definition)
protected JsonSchema.V1ValidationRule newKubernetesValidationRule()
newKubernetesValidationRule in class AbstractJsonSchema<JsonSchema.V1JSONSchemaProps,JsonSchema.V1ValidationRule>protected void addToValidationRules(JsonSchema.V1JSONSchemaProps schema, List<JsonSchema.V1ValidationRule> validationRules)
addToValidationRules in class AbstractJsonSchema<JsonSchema.V1JSONSchemaProps,JsonSchema.V1ValidationRule>protected void addProperty(String name, JsonSchema.V1JSONSchemaProps objectSchema, JsonSchema.V1JSONSchemaProps schema)
AbstractJsonSchemaaddProperty in class AbstractJsonSchema<JsonSchema.V1JSONSchemaProps,JsonSchema.V1ValidationRule>name - the property to add to the currently being built schemaobjectSchema - the schema being builtschema - the built schema for the property being addedprotected JsonSchema.V1JSONSchemaProps arrayLikeProperty(JsonSchema.V1JSONSchemaProps schema)
AbstractJsonSchemaarrayLikeProperty in class AbstractJsonSchema<JsonSchema.V1JSONSchemaProps,JsonSchema.V1ValidationRule>schema - the schema for the extracted element type for this array-like propertyprotected JsonSchema.V1JSONSchemaProps mapLikeProperty(JsonSchema.V1JSONSchemaProps schema)
AbstractJsonSchemamapLikeProperty in class AbstractJsonSchema<JsonSchema.V1JSONSchemaProps,JsonSchema.V1ValidationRule>schema - the schema for the extracted element type for the values of this map-like propertyprotected JsonSchema.V1JSONSchemaProps singleProperty(String typeName)
AbstractJsonSchemasingleProperty in class AbstractJsonSchema<JsonSchema.V1JSONSchemaProps,JsonSchema.V1ValidationRule>typeName - the mapped name of the property typeprotected JsonSchema.V1JSONSchemaProps intOrString()
AbstractJsonSchemaintOrString in class AbstractJsonSchema<JsonSchema.V1JSONSchemaProps,JsonSchema.V1ValidationRule>protected JsonSchema.V1JSONSchemaProps enumProperty(com.fasterxml.jackson.databind.JsonNode... enumValues)
enumProperty in class AbstractJsonSchema<JsonSchema.V1JSONSchemaProps,JsonSchema.V1ValidationRule>protected JsonSchema.V1JSONSchemaProps raw()
raw in class AbstractJsonSchema<JsonSchema.V1JSONSchemaProps,JsonSchema.V1ValidationRule>Copyright © 2015–2024 Red Hat. All rights reserved.