Skip to content

Commit

Permalink
Expose format in PropertyModel (liquid), RicoSuter/NSwag#3246
Browse files Browse the repository at this point in the history
RicoSuter committed Jan 14, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 4d47951 commit 303aacf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/NJsonSchema.CodeGeneration/Models/PropertyModelBase.cs
Original file line number Diff line number Diff line change
@@ -70,6 +70,9 @@ protected PropertyModelBase(
/// <summary>Gets the property extension data.</summary>
public IDictionary<string, object> ExtensionData => _property.ExtensionData;

/// <summary>Gets the JSON Schema format property.</summary>
public string Format => _property.ActualSchema.Format;

/// <summary>Gets the type name hint for the property.</summary>
protected string GetTypeNameHint()
{

0 comments on commit 303aacf

Please sign in to comment.