A2uiStringSchema


class A2uiStringSchema : A2uiSchema


Schema representing a string literal.

Use this for static text that cannot be dynamically bound.

Summary

Public companion properties

A2uiStringSchema

Public constructors

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

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<String>>

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 INSTANCEA2uiStringSchema

Public constructors

A2uiStringSchema

A2uiStringSchema(
    description: String? = null,
    keywords: List<A2uiSchemaKeyword<String>> = 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<String>>

JSON Schema keywords applied to this schema node