diff --git a/module.go b/module.go index 21f4b0c..2af6e91 100644 --- a/module.go +++ b/module.go @@ -124,9 +124,6 @@ func (*RootModule) NewModuleInstance(virtualUser modules.VU) modules.Instance { // The SchemaRegistry is a constructor and must be called with new, e.g. new SchemaRegistry(...). mustExport("SchemaRegistry", moduleInstance.schemaRegistryClientClass) - // This causes the struct fields to be exported to the native (camelCases) JS code. - virtualUser.Runtime().SetFieldNameMapper(goja.TagFieldNameMapper("json", true)) - return moduleInstance }