File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/Elastic.Clients.Elasticsearch/_Shared/Core Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ module Versioning =
1717 // Since that file is now generated by the dotnet tooling and GitVersion and similar tooling all still have
1818 // active issues related to dotnet core, we now just burn this info in global.json
1919
20- let parse ( v : string ) = SemVer.parse( v)
20+ let parse ( v : string ) = SemVer.parse( if String.IsNullOrEmpty ( v ) then " 1.0.0 " else v)
2121
2222 //Versions in form of e.g 6.1.0 is inferred as datetime so we bake the json shape into the provider like this
2323 type SdkVersion = { version: string ; rollForward: string ; allowPrerelease: bool }
Original file line number Diff line number Diff line change 1+ // Licensed to Elasticsearch B.V under one or more agreements.
2+ // Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+ // See the LICENSE file in the project root for more information.
4+
15#if ! NET5_0_OR_GREATER
26using System . Linq ;
37#endif
You can’t perform that action at this time.
0 commit comments