Class MapJsonSchemasConverter
- java.lang.Object
-
- io.openapiprocessor.jsonschema.converter.MapJsonSchemasConverter
-
- All Implemented Interfaces:
PropertyConverter<java.util.Map<java.lang.String,JsonSchema>>
public class MapJsonSchemasConverter extends java.lang.Object implements PropertyConverter<java.util.Map<java.lang.String,JsonSchema>>
get a map ofStringtoJsonSchema.
-
-
Constructor Summary
Constructors Constructor Description MapJsonSchemasConverter(JsonSchemaContext parentContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.util.Map<java.lang.String,JsonSchema>convert(java.lang.String name, @Nullable java.lang.Object value, java.lang.String location)converts thevalueof a property to aTobject or null.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.openapiprocessor.jsonschema.converter.PropertyConverter
convert
-
-
-
-
Constructor Detail
-
MapJsonSchemasConverter
public MapJsonSchemasConverter(JsonSchemaContext parentContext)
-
-
Method Detail
-
convert
public @Nullable java.util.Map<java.lang.String,JsonSchema> convert(java.lang.String name, @Nullable java.lang.Object value, java.lang.String location)
Description copied from interface:PropertyConverterconverts thevalueof a property to aTobject or null. May throw if conversion fails, e.g. if the property is required but null.- Specified by:
convertin interfacePropertyConverter<java.util.Map<java.lang.String,JsonSchema>>- Parameters:
name- property namevalue- property valuelocation- property location, json pointer- Returns:
- T converted value
-
-