Skip to content

Commit a7c4712

Browse files
committed
chore: added description to SerializationContext
1 parent b8c0b70 commit a7c4712

File tree

1 file changed

+4
-0
lines changed
  • modelql-core/src/commonMain/kotlin/org/modelix/modelql/core

1 file changed

+4
-0
lines changed

modelql-core/src/commonMain/kotlin/org/modelix/modelql/core/IStep.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ class FlowInstantiationContext(
6666
}
6767
}
6868

69+
/**
70+
* The output serializer of a query is context dependent when used by multiple `QueryCallStep`s.
71+
* This class carries the correct serializer for the input of a query depending on from where it is called.
72+
*/
6973
class SerializationContext(val serializersModule: SerializersModule, val queryInputSerializers: Map<QueryInput<*>, KSerializer<IStepOutput<*>>> = emptyMap()) {
7074
operator fun <T> plus(queryInputSerializer: Pair<QueryInput<T>, KSerializer<out IStepOutput<T>>>): SerializationContext {
7175
return SerializationContext(

0 commit comments

Comments
 (0)