![JAR search and dependency download from the Maven repository](/logo.png)
io.openapiprocessor.jsonschema.converter.StringNullableConverter Maven / Gradle / Ivy
/*
* Copyright 2021 https://github.com/openapi-processor/openapi-parser
* PDX-License-Identifier: Apache-2.0
*/
package io.openapiprocessor.jsonschema.converter;
import io.openapiprocessor.jsonschema.support.Types;
import org.checkerframework.checker.nullness.qual.Nullable;
/**
* converts the property {@code value} to {@link String}. May be null.
*/
public class StringNullableConverter implements PropertyConverter {
@Override
public @Nullable String convert (String name, @Nullable Object value, String location) {
return Types.convertOrNull (location, value, String.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy