feat: remove Path option (#202)

BREAKING CHANGE: This removes the previously available `Path` option
This commit is contained in:
Palm 2023-07-06 23:17:51 +07:00 committed by GitHub
parent a4a030f2b2
commit 8749a61d39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,20 +229,4 @@ sealed class PatchOption<T>(
) : ListOption<Int>(
key, default, options, title, description, required, validator
)
/**
* A [PatchOption] representing a [Path], backed by a [String].
* The validator passes a [String], if you need a [Path] you will have to convert it yourself.
* @see PatchOption
*/
class PathOption(
key: String,
default: Path?,
title: String,
description: String,
required: Boolean = false,
validator: (String?) -> Boolean = { true }
) : PatchOption<String>(
key, default?.pathString, title, description, required, validator
)
}