Top Description Methods
org.eclipse.microprofile.openapi.annotations.media

public @Interface DependentSchema

extends Annotation

A property name and an associated schema.

Used with Schema#dependentSchemas(), if an instance has a property named name(), then it must validate against schema().

Since
4.0
See Also
Schema#dependentSchemas()

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

property name
name
()

A property name

public Class<?>

Returns:

a class used to generate a schema which is used to validate objects with properties named name()
schema
()

The schema that an instance must validate against if it has a property named name().

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

nameback to summary
public String name()

A property name

Returns:String

property name

schemaback to summary
public Class<?> schema()

The schema that an instance must validate against if it has a property named name().

Returns:Class<?>

a class used to generate a schema which is used to validate objects with properties named name()