@@ -20,6 +20,8 @@ import java.time.format.DateTimeFormatter
20
20
import java.util.Locale
21
21
import kotlin.reflect.KProperty
22
22
import kotlin.reflect.KType
23
+ import kotlin.uuid.ExperimentalUuidApi
24
+ import kotlin.uuid.Uuid
23
25
24
26
/* *
25
27
* ### Global Parser Options
@@ -77,6 +79,10 @@ public interface GlobalParserOptions {
77
79
/* *
78
80
* Whether to allow parsing UUIDs to the experimental [kotlin.uuid.Uuid] type.
79
81
* By default, this is false and UUIDs are not recognized.
82
+ *
83
+ * NOTE: Interacting with a [Uuid][Uuid] in your code might require
84
+ * `@`[OptIn][OptIn]`(`[ExperimentalUuidApi][ExperimentalUuidApi]`::class)`.
85
+ * In notebooks, add `-opt-in=kotlin.uuid.ExperimentalUuidApi` to the compiler arguments.
80
86
*/
81
87
public var parseExperimentalUuid: Boolean
82
88
}
@@ -109,6 +115,9 @@ public interface GlobalParserOptions {
109
115
* @param useFastDoubleParser whether to use [FastDoubleParser], defaults to `true`. Please report any issues you encounter.
110
116
* @param parseExperimentalUuid whether to allow parsing UUIDs to the experimental [kotlin.uuid.Uuid] type.
111
117
* By default, this is false and UUIDs are not recognized.
118
+ * NOTE: Interacting with a [Uuid][Uuid] in your code might require
119
+ * `@`[OptIn][OptIn]`(`[ExperimentalUuidApi][ExperimentalUuidApi]`::class)`.
120
+ * In notebooks, add `-opt-in=kotlin.uuid.ExperimentalUuidApi` to the compiler arguments.
112
121
*/
113
122
public class ParserOptions (
114
123
public val locale : Locale ? = null ,
0 commit comments