Skip to content

Commit

Permalink
Merge pull request #278 from christianhelle:refitter-file-format
Browse files Browse the repository at this point in the history
Serialize OperationNameGenerator enum as string
  • Loading branch information
christianhelle authored Jan 9, 2024
2 parents a27d354 + fa498ac commit d7649c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Refitter.Core/Settings/RefitGeneratorSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public class RefitGeneratorSettings
/// <summary>
/// The NSwag IOperationNameGenerator implementation to use
/// </summary>
[JsonConverter(typeof(JsonStringEnumConverter))]
public OperationNameGeneratorTypes OperationNameGenerator { get; set; }

/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion test/petstore.refitter
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"dateType": "System.DateTime",
"dateTimeType": "System.DateTime",
"arrayType": "System.Collections.Generic.IList"
}
},
"operationNameGenerator": "Default"
}

0 comments on commit d7649c1

Please sign in to comment.