Package io.smallrye.openapi.runtime.io
Interface JsonIO.PropertyMapper<V,OB>
- All Known Implementing Classes:
APIResponseIO,APIResponsesIO,CallbackIO,CallbackOperationIO,ComponentsIO,ContactIO,ContentIO,DiscriminatorIO,EncodingIO,ExampleObjectIO,ExtensionIO,ExternalDocumentationIO,HeaderIO,InfoIO,LicenseIO,LinkIO,LinkParameterIO,MapModelIO,MediaTypeIO,ModelIO,OAuthFlowIO,OAuthFlowsIO,OAuthScopeIO,OpenAPIDefinitionIO,OperationIO,ParameterIO,PathItemIO,PathItemOperationIO,PathsIO,RequestBodyIO,SchemaIO,SecurityRequirementIO,SecurityRequirementsSetIO,SecuritySchemeIO,ServerIO,ServerVariableIO,TagIO
public static interface JsonIO.PropertyMapper<V,OB>
-
Method Summary
Modifier and TypeMethodDescriptionOptionally convert the entire object to a JSON value.default voidMap any additional properties from the given model object to the nodeBuilder that will be the resulting JSON value.mapProperty(BaseModel<?> object, String propertyName, Object propertyValue) Optionally convert the property with given name and value to a JSON value.
-
Method Details
-
mapObject
Optionally convert the entire object to a JSON value. If no value mapping should occur, implementations should return an empty Optional.- Parameters:
object- model object that may be mapped to a JSON value- Returns:
- an optional JSON value that is mapped from the object
-
mapProperty
Optionally convert the property with given name and value to a JSON value. If no value mapping should occur, implementations should return an empty Optional. -
mapObject
Map any additional properties from the given model object to the nodeBuilder that will be the resulting JSON value.
-