diff --git a/build/scripts/Versioning.fs b/build/scripts/Versioning.fs index 4b27be2287..a3b9d7f2c0 100644 --- a/build/scripts/Versioning.fs +++ b/build/scripts/Versioning.fs @@ -17,7 +17,7 @@ module Versioning = // Since that file is now generated by the dotnet tooling and GitVersion and similar tooling all still have // active issues related to dotnet core, we now just burn this info in global.json - let parse (v:string) = SemVer.parse(v) + let parse (v: string) = SemVer.parse(if String.IsNullOrEmpty(v) then "1.0.0" else v) //Versions in form of e.g 6.1.0 is inferred as datetime so we bake the json shape into the provider like this type SdkVersion = { version:string; rollForward:string; allowPrerelease:bool } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/EnumValueParser.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/EnumValueParser.cs index df936fbc2d..0e5e1a821e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/EnumValueParser.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/EnumValueParser.cs @@ -1,3 +1,7 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. + #if !NET5_0_OR_GREATER using System.Linq; #endif