Render in custom expectations

I am migrating custom expectations into the new GX 1.0 and I noticed that in the core expectations there are now two renders: _prescriptive_renderer and _prescriptive_template which have similar content, it seems like the _prescriptive_renderer is legacy since it has these decorator @renderer(renderer_type=LegacyRendererType.PRESCRIPTIVE).

Will _prescriptive_renderer be faced out? So would it be best to migrate to the _prescriptive_template ? I could not find any documentation on this.

The _prescriptive_renderer is for Core Data Docs. You should follow the legacy pattern for now, as we no longer have plans to remove that pattern in the near term. The _prescriptive_template is specific to GX Cloud, so if you’re only using Core you can safely ignore it.

1 Like