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
In the StepExpressionFactory Cucumber will try to transform this string into JSON by turning the docstring into a 1x1 table and using the DataTableTypeRegistry to convert it to an object of the right target type.
Cucumber uses a DocStringTypeRegistry in which transformations for each document type can be registered or where a default doc string transformer (document, type) -> Object can be registered.
The text was updated successfully, but these errors were encountered:
Summary
Cucumber uses the
DatatTableTypeRegistry
to convert doc strings. This is rather confusing and ignores the type provided with the doc string.Motivation & Context
With #1458 and #851 implemented it will be quite hard to explain how doc strings are converted. So it would be better to do it properly.
Current Behavior
Given some gherkin
And a step definition:
In the
StepExpressionFactory
Cucumber will try to transform this string into JSON by turning the docstring into a 1x1 table and using theDataTableTypeRegistry
to convert it to an object of the right target type.Expected Behavior
Cucumber uses a
DocStringTypeRegistry
in which transformations for each document type can be registered or where a default doc string transformer (document, type) -> Object can be registered.The text was updated successfully, but these errors were encountered: