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

public @Interface DiscriminatorMapping

extends Annotation
Annotations
@Target
@Retention:RUNTIME
@Inherited
Imports
java.lang.annotation.Inherited, .Retention, .RetentionPolicy, .Target

This object maps payload values to a particular Schema.
See Also
OpenAPI Specification Discriminator Object

Method Summary

Modifier and TypeMethod and Description
public Class<?>

Returns:

the Schema reference
schema
()

The schema that is being mapped to a property value

public String

Returns:

the property value
value
()

The property value that will be mapped to a Schema

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

schemaback to summary
public Class<?> schema()

The schema that is being mapped to a property value

Returns:Class<?>

the Schema reference

valueback to summary
public String value()

The property value that will be mapped to a Schema

Returns:String

the property value