Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lauzadis committed Sep 14, 2023
1 parent 7c43ce9 commit 816d6bf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ class UnresolvableProtocolException(message: String) : CodegenException(message)

private fun <T> Optional<T>.orNull(): T? = if (isPresent) get() else null

/**
* The visibility of code-generated classes, objects, interfaces, etc.
* Valid values are `public` and `internal`. `private` not supported because codegen would not compile with private classes.
*/
enum class Visibility(val value: String) {
PUBLIC("public"),
INTERNAL("internal"),
Expand All @@ -212,7 +216,7 @@ enum class Visibility(val value: String) {

/**
* Contains API settings for a Kotlin project
* @param visibility String representing the visibility of code-generated classes, objects, interfaces, etc.
* @param visibility Enum representing the visibility of code-generated classes, objects, interfaces, etc.
*/
data class ApiSettings(
val visibility: Visibility = Visibility.PUBLIC,
Expand Down

0 comments on commit 816d6bf

Please sign in to comment.