Schema

@Serializable
data class Schema(val type: String? = null, val format: String? = null, val description: String? = null, val properties: Map<String, Schema>? = null, val items: Schema? = null, val required: List<String>? = null, val additionalProperties: Boolean? = null, val nullable: Boolean? = null, val enum: List<String>? = null)

JSONスキーマ データ構造を定義する

Constructors

Link copied to clipboard
constructor(type: String? = null, format: String? = null, description: String? = null, properties: Map<String, Schema>? = null, items: Schema? = null, required: List<String>? = null, additionalProperties: Boolean? = null, nullable: Boolean? = null, enum: List<String>? = null)

Properties

Link copied to clipboard

追加プロパティの許可(true/false)

Link copied to clipboard

スキーマの説明

Link copied to clipboard

列挙値のリスト

Link copied to clipboard

型のフォーマット(int32, int64, double, uuid等)

Link copied to clipboard

配列型の場合の要素スキーマ

Link copied to clipboard

null許容かどうか

Link copied to clipboard

オブジェクト型の場合のプロパティ定義

Link copied to clipboard

必須プロパティのリスト

Link copied to clipboard
val type: String?

データ型(string, integer, number, boolean, array, object)