Package ai.pipestream.common.util
Class MappingHelperJsonSupport
java.lang.Object
ai.pipestream.common.util.MappingHelperJsonSupport
JSON export support for MappingHelper.
Converts schema and field information to JSON for frontend consumption.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfieldsToJson(List<MappingHelper.FieldInfo> fields) Exports field information as JSON.schemaToJson(MappingHelper.SchemaNode schema) Exports schema tree as JSON.suggestionsToJson(List<MappingHelper.FieldSuggestion> suggestions) Exports field suggestions as JSON.Exports validation result as JSON.
-
Constructor Details
-
MappingHelperJsonSupport
public MappingHelperJsonSupport()
-
-
Method Details
-
fieldsToJson
Exports field information as JSON.- Parameters:
fields- List of field information- Returns:
- JSON string
-
schemaToJson
Exports schema tree as JSON.- Parameters:
schema- The schema root node- Returns:
- JSON string
-
suggestionsToJson
Exports field suggestions as JSON.- Parameters:
suggestions- List of field suggestions- Returns:
- JSON string
-
validationToJson
Exports validation result as JSON.- Parameters:
result- Validation result- Returns:
- JSON string
-