Shared: Only make unlifted models in case the API itself is relevant.

This commit is contained in:
Michael Nebel
2024-09-23 15:28:08 +02:00
parent 3d1a403655
commit 80497f551e
3 changed files with 13 additions and 3 deletions

View File

@@ -848,7 +848,11 @@ module MakeModelGenerator<
input = parameterNodeAsContentInput(p) + printReadAccessPath(reads) and
output = getContentOutput(returnNodeExt) + printStoreAccessPath(stores) and
input != output and
(if mentionsField(reads) or mentionsField(stores) then lift = false else lift = true)
(
if mentionsField(reads) or mentionsField(stores)
then lift = false and api.isRelevant()
else lift = true
)
)
}