Add source reference on Envelope.parameterType
#2272
Labels
✅ accepted
The core team has agreed that it is a good idea to fix this
⚡ enhancement
Request for new functionality
🤔 What's the problem you're trying to solve?
When implementing a plugin, I can determine the source reference of a Step Definition (using handler on
Envelope.stepDefinition
), but I cannot determine the source reference for aParameterType
.The cause is
CachingGlue.emitParameterTypeDefined
which creates anEnvelope
with aParameterType
which miss the source reference information.✨ What's your proposed solution?
A simple solution would be to:
SourceReference
in theio.cucumber.messages.types.ParameterType
. Hint: requires changing the cucumber messages schema (https://github.com/cucumber/messages/tree/main/jsonschema) which generates classes for Java and other languages, see Add theSourceReference
inParameterType
messages#145. A snapshot version of the library should be made.ParameterType
source reference when theEnvelope.parameterType
"event" is sent to the event bus, see Add source reference onEnvelope.parameterType
cucumber-jvm#2719 for the corresponding Java feature.⛏ Have you considered any alternatives or workarounds?
N/A
The text was updated successfully, but these errors were encountered: