Class JsonSchemaCreator
- java.lang.Object
-
- step.handlers.javahandler.jsonschema.JsonSchemaCreator
-
public class JsonSchemaCreator extends Object
-
-
Constructor Summary
Constructors Constructor Description JsonSchemaCreator(jakarta.json.spi.JsonProvider jsonProvider, JsonSchemaFieldProcessor customFieldProcessor, FieldMetadataExtractor metadataExtractor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDefaultValue(String defaultValue, jakarta.json.JsonObjectBuilder builder, Type type, String paramName)
void
processFields(Class<?> objectClass, jakarta.json.JsonObjectBuilder nestedPropertiesBuilder, List<Field> fields, List<String> requiredPropertiesOutput)
void
processNestedFields(jakarta.json.JsonObjectBuilder propertyParamsBuilder, Class<?> clazz)
-
-
-
Constructor Detail
-
JsonSchemaCreator
public JsonSchemaCreator(jakarta.json.spi.JsonProvider jsonProvider, JsonSchemaFieldProcessor customFieldProcessor, FieldMetadataExtractor metadataExtractor)
-
-
Method Detail
-
processNestedFields
public void processNestedFields(jakarta.json.JsonObjectBuilder propertyParamsBuilder, Class<?> clazz) throws JsonSchemaPreparationException
- Throws:
JsonSchemaPreparationException
-
processFields
public void processFields(Class<?> objectClass, jakarta.json.JsonObjectBuilder nestedPropertiesBuilder, List<Field> fields, List<String> requiredPropertiesOutput) throws JsonSchemaPreparationException
- Throws:
JsonSchemaPreparationException
-
addDefaultValue
public void addDefaultValue(String defaultValue, jakarta.json.JsonObjectBuilder builder, Type type, String paramName) throws JsonSchemaPreparationException
- Throws:
JsonSchemaPreparationException
-
-