Replies: 1 comment 2 replies
-
Parsing, formatting, and construction are all separate. An extended The format is really more From there, you should be able to replace or extend formatting as you see fit. Start there and let me know how it goes. |
Beta Was this translation helpful? Give feedback.
-
Following the discussion here:
https://github.com/dotnet/aspnet-api-versioning/wiki/Custom-API-Version-Format
I'm looking for a clean way to implement the API version, while also supporting custom version strings.
The structure seems to lock in the idea of "Major.Minor-Status" as the string format, as those fields are immutable, and must be set through the constructor before any code for parsing the version can execute. It seems that I can do this with an external builder... is that the only way?
Beta Was this translation helpful? Give feedback.
All reactions