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

public @Interface DependentRequired

extends Annotation

A property name and an associated list of other property names.

Used with Schema#dependentRequired(), if an object has a property named name(), it must also have properties with the names in requires().

Since
4.0
See Also
Schema#dependentRequired()

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

a property name
name
()

The property name to look for

public String[]

Returns:

the required property names
requires
()

The property names that an object is required to have, if it has a property named name()

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

nameback to summary
public String name()

The property name to look for

Returns:String

a property name

requiresback to summary
public String[] requires()

The property names that an object is required to have, if it has a property named name()

Returns:String[]

the required property names