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
Is your feature request related to a problem? Please describe.
To use the scripting engine on mock templates, most of times there is a need to write an invalid JSON structure, like this:
Describe the solution you'd like YAML seems to be suitable alternative to write templates with C# scripts, as it is more permissive on content, like the example bellow, which is a completely valid YAML:
Describe alternatives you've considered
To use mustache or handlebars templating alternatives would require a DSL to be created. This alternative is not suitable for Mockaco as its proposal is to reduce the learning curve, keeping C# as the scripting language.
Additional context
There are some disadvantages using YAML:
Hey, it's actually a nice idea! I'll take a closer look on this possiblity as it would be better aligned with Mockaco's proposal instead of YAML format, which I've been resistant to embrace, to be honest. I would appreciate if you could provide more details, maybe some kind of template examples of how your approach would look like.
Thanks!!
Is your feature request related to a problem? Please describe.
To use the scripting engine on mock templates, most of times there is a need to write an invalid JSON structure, like this:
Describe the solution you'd like
YAML seems to be suitable alternative to write templates with C# scripts, as it is more permissive on content, like the example bellow, which is a completely valid YAML:
There is a C# implementation: YamlDotNet
Describe alternatives you've considered
To use mustache or handlebars templating alternatives would require a DSL to be created. This alternative is not suitable for Mockaco as its proposal is to reduce the learning curve, keeping C# as the scripting language.
Additional context
There are some disadvantages using YAML:
The text was updated successfully, but these errors were encountered: