Skip to content

Commit

Permalink
Merged PR 2260: Change to shorter names in Tempalte valiation models
Browse files Browse the repository at this point in the history
Change to shorter names in Tempalte valiation models
  • Loading branch information
Maxwell Weru committed Feb 19, 2021
1 parent 99729b5 commit d0c2342
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Falu/Templates/TemplateValidationRequest.cs
Expand Up @@ -16,6 +16,6 @@ public class TemplateValidationRequest
/// <summary>
/// The template model to be used when rendering test content.
/// </summary>
public IDictionary<string, object> TestRenderModel { get; set; }
public IDictionary<string, object> Model { get; set; }
}
}
15 changes: 9 additions & 6 deletions src/Falu/Templates/TemplateValidationResponse.cs
Expand Up @@ -8,15 +8,18 @@ namespace Falu.Templates
public class TemplateValidationResponse
{
/// <summary>
/// A JSON object structure that will provide information for all keys found in the template content submitted.
/// If a <c>TestRenderModel</c> was submitted, it will be merged and returned with this model.
/// A JSON object structure that will provide information
/// for all keys found in the template content submitted.
/// If a <code>Model</code> was submitted, it will be merged
/// and returned with this model.
/// </summary>
public IDictionary<string, object> SuggestedTemplateModel { get; set; }
public IDictionary<string, object> Model { get; set; }

/// <summary>
/// Using the <c>SuggestedTemplateModel</c> and, if submitted, the <c>TestRenderModel</c>, the text content that
/// would be produced by this template when the template content and model are combined.
/// Using the <code>Model</code> the text content that
/// would be produced by this template when the template
/// content and model are combined.
/// </summary>
public string RenderedContent { get; set; }
public string Rendered { get; set; }
}
}

0 comments on commit d0c2342

Please sign in to comment.