Interface UnknownFieldsSupport
- All Known Implementing Classes:
InputDefinitionToDataModelMapper,TypeDefinitionToDataModelMapper
public interface UnknownFieldsSupport
Utility interface that provides convenience methods to handle unknown fields during the marshaling
and unmarshalling of a JSON document
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<ParameterDefinition>createUnknownFields(MappingContext mappingContext) Creates an instance ofParameterDefinitionthat can be used to generate a field of typeMapto store unknown fields during the marshaling and unmarshalling of a JSON document
-
Method Details
-
createUnknownFields
Creates an instance ofParameterDefinitionthat can be used to generate a field of typeMapto store unknown fields during the marshaling and unmarshalling of a JSON document- Parameters:
mappingContext- The context of the mapping process.- Returns:
- If
MappingContext.isSupportUnknownFields()is true, it returns a monad containing the instance ofParameterDefinition.Optional.empty()otherwise.
-