Documentation

AnyOfInterface

Interface implemented by models generated from an `anyOf` schema.

An anyOf schema is not represented by a value object; instead a value is one of the member types. Classes implementing this interface only carry the metadata that ObjectSerializer::deserialize() needs to resolve the concrete member type.

Tags
author

OpenAPI Generator team

Table of Contents

Methods

getAnyOfDiscriminator()  : string|null
Name of the discriminator property used to resolve the concrete member type, or null when the schema has no discriminator.
getAnyOfDiscriminatorMappings()  : array<string, string>
Mapping of discriminator values to the concrete member type. Empty when the schema has no discriminator.
getAnyOfTypes()  : array<string|int, string>
List of the types a value of this `anyOf` schema may be. Each entry uses the same notation as the values of {@see ModelInterface::openAPITypes()}.

Methods

getAnyOfDiscriminator()

Name of the discriminator property used to resolve the concrete member type, or null when the schema has no discriminator.

public static getAnyOfDiscriminator() : string|null
Return values
string|null

getAnyOfDiscriminatorMappings()

Mapping of discriminator values to the concrete member type. Empty when the schema has no discriminator.

public static getAnyOfDiscriminatorMappings() : array<string, string>
Return values
array<string, string>

getAnyOfTypes()

List of the types a value of this `anyOf` schema may be. Each entry uses the same notation as the values of {@see ModelInterface::openAPITypes()}.

public static getAnyOfTypes() : array<string|int, string>
Return values
array<string|int, string>
On this page

Search results