You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kobby-gradle-plugin/src/test/resources/io/github/ermadmi78/kobby/testcases/disable_projection_checking/build.gradle.kts.txt
Copy file name to clipboardExpand all lines: kobby-gradle-plugin/src/test/resources/io/github/ermadmi78/kobby/testcases/disable_projection_checking/expected/io/github/ermadmi78/kobby/testcases/disable_projection_checking/kobby/kotlin/entity/impl/ActorImpl.kt.txt
+4-34Lines changed: 4 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,6 @@ import kotlin.collections.Set
45
45
import kotlin.collections.listOf
46
46
import kotlin.collections.map
47
47
import kotlin.collections.setOf
48
-
import kotlin.error
49
48
import kotlin.text.StringBuilder
50
49
import kotlin.text.buildString
51
50
import kotlin.text.isNotEmpty
@@ -62,61 +61,32 @@ internal class ActorImpl(
62
61
get() = __innerDto.id!!
63
62
64
63
override val fields: JsonObject
65
-
get() {
66
-
if (__innerProjection.__innerFields1 == null) {
67
-
error("Property [fields] is not available - add [fields] projection to switch on it")
68
-
}
69
-
return __innerDto.fields!!
70
-
}
64
+
get() = __innerDto.fields!!
71
65
72
66
override val tags: List<Tag> by lazy {
73
-
if (__innerProjection.__innerTags2 == null) {
74
-
error("Property [tags] is not available - add [tags] projection to switch on it")
Copy file name to clipboardExpand all lines: kobby-gradle-plugin/src/test/resources/io/github/ermadmi78/kobby/testcases/disable_projection_checking/expected/io/github/ermadmi78/kobby/testcases/disable_projection_checking/kobby/kotlin/entity/impl/CountryImpl.kt.txt
+2-31Lines changed: 2 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,6 @@ import kotlin.collections.Set
51
51
import kotlin.collections.listOf
52
52
import kotlin.collections.map
53
53
import kotlin.collections.setOf
54
-
import kotlin.error
55
54
import kotlin.text.StringBuilder
56
55
import kotlin.text.buildString
57
56
import kotlin.text.isNotEmpty
@@ -69,60 +68,32 @@ internal class CountryImpl(
69
68
get() = __innerDto.id!!
70
69
71
70
override val fields: JsonObject
72
-
get() {
73
-
if (__innerProjection.__innerFields1 == null) {
74
-
error("Property [fields] is not available - add [fields] projection to switch on it")
75
-
}
76
-
return __innerDto.fields!!
77
-
}
71
+
get() = __innerDto.fields!!
78
72
79
73
override val name: String
80
-
get() {
81
-
if (!__innerProjection.__innerName2) {
82
-
error("Property [name] is not available - remove [__withoutName] projection to switch on it")
83
-
}
84
-
return __innerDto.name!!
85
-
}
74
+
get() = __innerDto.name!!
86
75
87
76
override val film: Film? by lazy {
88
-
if (__innerProjection.__innerFilm3 == null) {
89
-
error("Property [film] is not available - add [film] projection to switch on it")
Copy file name to clipboardExpand all lines: kobby-gradle-plugin/src/test/resources/io/github/ermadmi78/kobby/testcases/disable_projection_checking/expected/io/github/ermadmi78/kobby/testcases/disable_projection_checking/kobby/kotlin/entity/impl/FilmImpl.kt.txt
+3-28Lines changed: 3 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,6 @@ import kotlin.collections.Set
46
46
import kotlin.collections.listOf
47
47
import kotlin.collections.map
48
48
import kotlin.collections.setOf
49
-
import kotlin.error
50
49
import kotlin.text.StringBuilder
51
50
import kotlin.text.buildString
52
51
import kotlin.text.isNotEmpty
@@ -64,50 +63,26 @@ internal class FilmImpl(
64
63
get() = __innerDto.id!!
65
64
66
65
override val fields: JsonObject
67
-
get() {
68
-
if (__innerProjection.__innerFields1 == null) {
69
-
error("Property [fields] is not available - add [fields] projection to switch on it")
70
-
}
71
-
return __innerDto.fields!!
72
-
}
66
+
get() = __innerDto.fields!!
73
67
74
68
override val tags: List<Tag> by lazy {
75
-
if (__innerProjection.__innerTags2 == null) {
76
-
error("Property [tags] is not available - add [tags] projection to switch on it")
Copy file name to clipboardExpand all lines: kobby-gradle-plugin/src/test/resources/io/github/ermadmi78/kobby/testcases/disable_projection_checking/expected/io/github/ermadmi78/kobby/testcases/disable_projection_checking/kobby/kotlin/entity/impl/MutationImpl.kt.txt
+3-31Lines changed: 3 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,6 @@ import kotlin.apply
43
43
import kotlin.collections.MutableMap
44
44
import kotlin.collections.Set
45
45
import kotlin.collections.setOf
46
-
import kotlin.error
47
46
import kotlin.text.StringBuilder
48
47
import kotlin.text.buildString
49
48
import kotlin.text.isNotEmpty
@@ -57,56 +56,29 @@ internal class MutationImpl(
57
56
internal val __innerDto: MutationDto,
58
57
) : Mutation {
59
58
override val createCountry: Country by lazy {
60
-
if (__innerProjection.__innerCreateCountry0 == null) {
61
-
error("Property [createCountry] is not available - add [createCountry] projection to switch on it")
Copy file name to clipboardExpand all lines: kobby-gradle-plugin/src/test/resources/io/github/ermadmi78/kobby/testcases/disable_projection_checking/expected/io/github/ermadmi78/kobby/testcases/disable_projection_checking/kobby/kotlin/entity/impl/QueryImpl.kt.txt
-22Lines changed: 0 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,6 @@ import kotlin.collections.Set
48
48
import kotlin.collections.listOf
49
49
import kotlin.collections.map
50
50
import kotlin.collections.setOf
51
-
import kotlin.error
52
51
import kotlin.text.StringBuilder
53
52
import kotlin.text.buildString
54
53
import kotlin.text.isNotEmpty
@@ -62,51 +61,30 @@ internal class QueryImpl(
62
61
internal val __innerDto: QueryDto,
63
62
) : Query {
64
63
override val country: Country? by lazy {
65
-
if (__innerProjection.__innerCountry0 == null) {
66
-
error("Property [country] is not available - add [country] projection to switch on it")
Copy file name to clipboardExpand all lines: kobby-gradle-plugin/src/test/resources/io/github/ermadmi78/kobby/testcases/disable_projection_checking/expected/io/github/ermadmi78/kobby/testcases/disable_projection_checking/kobby/kotlin/entity/impl/SubscriptionImpl.kt.txt
-10Lines changed: 0 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,6 @@ import kotlin.apply
34
34
import kotlin.collections.MutableMap
35
35
import kotlin.collections.Set
36
36
import kotlin.collections.setOf
37
-
import kotlin.error
38
37
import kotlin.text.StringBuilder
39
38
import kotlin.text.buildString
40
39
import kotlin.text.isNotEmpty
@@ -47,23 +46,14 @@ internal class SubscriptionImpl(
47
46
internal val __innerDto: SubscriptionDto,
48
47
) : Subscription {
49
48
override val countryCreated: Country by lazy {
50
-
if (__innerProjection.__innerCountryCreated0 == null) {
51
-
error("Property [countryCreated] is not available - add [countryCreated] projection to switch on it")
Copy file name to clipboardExpand all lines: kobby-gradle-plugin/src/test/resources/io/github/ermadmi78/kobby/testcases/disable_projection_checking/expected/io/github/ermadmi78/kobby/testcases/disable_projection_checking/kobby/kotlin/entity/impl/TagImpl.kt.txt
+1-7Lines changed: 1 addition & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,6 @@ import kotlin.Suppress
25
25
import kotlin.collections.MutableMap
26
26
import kotlin.collections.Set
27
27
import kotlin.collections.setOf
28
-
import kotlin.error
29
28
import kotlin.text.StringBuilder
30
29
import kotlin.text.buildString
31
30
import kotlinx.serialization.json.JsonElement
@@ -36,12 +35,7 @@ internal class TagImpl(
36
35
internal val __innerDto: TagDto,
37
36
) : Tag {
38
37
override val `value`: String
39
-
get() {
40
-
if (!__innerProjection.__innerValue0) {
41
-
error("Property [value] is not available - add [value] projection to switch on it")
0 commit comments