A2uiAnySchema


class A2uiAnySchema : A2uiSchema


Schema representing an unstructured JSON payload or a keyword-only schema.

Summary

Public companion properties

A2uiAnySchema

Public constructors

A2uiAnySchema(
    description: String?,
    keywords: List<A2uiSchemaKeyword<Any>>
)

Public functions

open JsonElement

Returns the JsonElement hierarchy representing this schema.

open String

Public properties

open String?

semantic description of the schema

open List<A2uiSchemaKeyword<Any>>

JSON Schema keywords applied to this schema node

Inherited functions

From androidx.a2ui.model.schema.A2uiSchema
open operator Boolean
equals(other: Any?)
open Int
String

Serializes this schema to a JSON Schema string representation.

Public companion properties

INSTANCE

val INSTANCEA2uiAnySchema

Public constructors

A2uiAnySchema

A2uiAnySchema(
    description: String? = null,
    keywords: List<A2uiSchemaKeyword<Any>> = emptyList()
)

Public functions

toJsonElement

Added in 1.0.0-alpha01
open fun toJsonElement(): JsonElement

Returns the JsonElement hierarchy representing this schema.

Returns
JsonElement

the JsonElement hierarchy representing this schema

toString

open fun toString(): String

Public properties

description

open val descriptionString?

semantic description of the schema

keywords

open val keywordsList<A2uiSchemaKeyword<Any>>

JSON Schema keywords applied to this schema node