Skip to content

Commit 569917b

Browse files
authored
Support data quality and schema migration rules for net462 (#2514)
1 parent bde8379 commit 569917b

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

src/Confluent.SchemaRegistry.Rules/BuiltinLibrary.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ public class BuiltinLibrary : ILibrary
77

88
public virtual IList<EnvOption> CompileOptions
99
{
10-
get => new List<EnvOption> { IEnvOption.Declarations(BuiltinDeclarations.Create()) };
10+
get => new List<EnvOption> { EnvOptions.Declarations(BuiltinDeclarations.Create()) };
1111
}
1212

1313
public virtual IList<ProgramOption> ProgramOptions
1414
{
1515
get => new List<ProgramOption>
1616
{
17-
IProgramOption.EvalOptions(EvalOption.OptOptimize),
18-
IProgramOption.Functions(BuiltinOverload.Create())
17+
Cel.ProgramOptions.EvalOptions(EvalOption.OptOptimize),
18+
Cel.ProgramOptions.Functions(BuiltinOverload.Create())
1919
};
2020
}
2121
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright 2024 Confluent Inc.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// Refer to LICENSE for more information.
16+
17+
using System.ComponentModel;
18+
19+
namespace System.Runtime.CompilerServices
20+
{
21+
[EditorBrowsable(EditorBrowsableState.Never)]
22+
internal static class IsExternalInit { }
23+
}

src/Confluent.SchemaRegistry.Rules/Confluent.SchemaRegistry.Rules.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<Title>Confluent.SchemaRegistry.Rules</Title>
1717
<AssemblyName>Confluent.SchemaRegistry.Rules</AssemblyName>
1818
<VersionPrefix>2.11.1</VersionPrefix>
19-
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
19+
<TargetFrameworks>netstandard2.1;net462;net6.0;net8.0</TargetFrameworks>
2020
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2121
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2222
<SignAssembly>true</SignAssembly>
@@ -34,7 +34,7 @@
3434
</ItemGroup>
3535

3636
<ItemGroup>
37-
<PackageReference Include="Cel.NET" Version="0.3.2" />
37+
<PackageReference Include="Cel.NET" Version="0.4.0" />
3838
</ItemGroup>
3939

4040
<ItemGroup>

0 commit comments

Comments
 (0)