File tree 2 files changed +5
-1
lines changed
src/Elastic.Clients.Elasticsearch/_Shared/Core
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ module Versioning =
17
17
// Since that file is now generated by the dotnet tooling and GitVersion and similar tooling all still have
18
18
// active issues related to dotnet core, we now just burn this info in global.json
19
19
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)
21
21
22
22
//Versions in form of e.g 6.1.0 is inferred as datetime so we bake the json shape into the provider like this
23
23
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
+
1
5
#if ! NET5_0_OR_GREATER
2
6
using System . Linq ;
3
7
#endif
You can’t perform that action at this time.
0 commit comments