Skip to content

Commit

Permalink
Fix invalid type references
Browse files Browse the repository at this point in the history
  • Loading branch information
Riandy committed Nov 5, 2024
1 parent ee76c5a commit 923bbf2
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 5 deletions.
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Log/OS Files
*.log

# Android Studio generated files and folders
captures/
.externalNativeBuild/
.cxx/
*.apk
output.json

# IntelliJ
*.iml
.idea/
misc.xml
deploymentTargetDropDown.xml
render.experimental.xml

# Keystore files
*.jks
*.keystore

# Google Services (e.g. APIs or Firebase)
google-services.json

# Android Profiling
*.hprof

.DS_Store
Original file line number Diff line number Diff line change
Expand Up @@ -3834,7 +3834,7 @@ constructor(
@ExcludeMissing
fun _additionalProperties(): Map<String, JsonValue> = additionalProperties

fun validate(): Type = apply {
fun validate(): QueryGeneratorConfig.Type = apply {
if (!validated) {
type()
validated = true
Expand All @@ -3849,8 +3849,8 @@ constructor(
}

return other is Type &&
this.type == other.type &&
this.additionalProperties == other.additionalProperties
this.type == other &&
this.additionalProperties == this.additionalProperties
}

override fun hashCode(): Int {
Expand All @@ -3874,7 +3874,7 @@ constructor(
private var additionalProperties: MutableMap<String, JsonValue> =
mutableMapOf()

internal fun from(type: Type) = apply {
internal fun from(type: QueryGeneratorConfig.Type) = apply {
this.type = type.type
additionalProperties(type.additionalProperties)
}
Expand All @@ -3900,7 +3900,8 @@ constructor(
additionalProperties: Map<String, JsonValue>
) = apply { this.additionalProperties.putAll(additionalProperties) }

fun build(): Type = Type(type, additionalProperties.toUnmodifiable())
fun build(): QueryGeneratorConfig.Type =
Type(type, additionalProperties.toUnmodifiable())
}

class Type
Expand Down

0 comments on commit 923bbf2

Please sign in to comment.