Functions
Link copied to clipboard
inline fun <T> createJsonStructure(id: String = T::class.simpleName ?: error("Class name is required for JSON structure"), serializer: KSerializer<T> = serializer<T>(), json: Json = JsonStructureLanguage.defaultJson, schemaFormat: JsonSchemaGenerator.SchemaFormat = JsonSchemaGenerator.SchemaFormat.Simple, maxDepth: Int = 20, propertyDescriptionOverrides: Map<String, String> = emptyMap(), examples: List<T> = emptyList(), schemaType: JsonStructuredData.JsonSchemaType = JsonSchemaType.SIMPLE): StructuredData<T>
Factory method to create JSON structure with auto-generated JSON schema.