File tree Expand file tree Collapse file tree 2 files changed +0
-26
lines changed
src/Libraries/Microsoft.Extensions.AI.Abstractions/Utilities
test/Libraries/Microsoft.Extensions.AI.Abstractions.Tests/Utilities Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -42,29 +42,8 @@ public sealed record class AIJsonSchemaCreateOptions
42
42
/// </summary>
43
43
public AIJsonSchemaTransformOptions ? TransformOptions { get ; init ; }
44
44
45
- /// <summary>
46
- /// Gets a value indicating whether to include the type keyword in created schemas for .NET enums.
47
- /// </summary>
48
- [ Obsolete ( "This property has been deprecated." ) ]
49
- [ System . ComponentModel . EditorBrowsable ( System . ComponentModel . EditorBrowsableState . Never ) ]
50
- public bool IncludeTypeInEnumSchemas { get ; init ; } = true ;
51
-
52
- /// <summary>
53
- /// Gets a value indicating whether to generate schemas with the additionalProperties set to false for .NET objects.
54
- /// </summary>
55
- [ Obsolete ( "This property has been deprecated. Use the equivalent property in TransformOptions instead." ) ]
56
- [ System . ComponentModel . EditorBrowsable ( System . ComponentModel . EditorBrowsableState . Never ) ]
57
- public bool DisallowAdditionalProperties { get ; init ; }
58
-
59
45
/// <summary>
60
46
/// Gets a value indicating whether to include the $schema keyword in created schemas.
61
47
/// </summary>
62
48
public bool IncludeSchemaKeyword { get ; init ; }
63
-
64
- /// <summary>
65
- /// Gets a value indicating whether to mark all properties as required in the schema.
66
- /// </summary>
67
- [ Obsolete ( "This property has been deprecated. Use the equivalent property in TransformOptions instead." ) ]
68
- [ System . ComponentModel . EditorBrowsable ( System . ComponentModel . EditorBrowsableState . Never ) ]
69
- public bool RequireAllProperties { get ; init ; }
70
49
}
Original file line number Diff line number Diff line change 15
15
using Microsoft . Extensions . AI . JsonSchemaExporter ;
16
16
using Xunit ;
17
17
18
- #pragma warning disable 0618 // Suppress obsolete warnings
19
-
20
18
namespace Microsoft . Extensions . AI ;
21
19
22
20
public static partial class AIJsonUtilitiesTests
@@ -73,10 +71,7 @@ public static void DefaultOptions_UsesReflectionWhenDefault()
73
71
public static void AIJsonSchemaCreateOptions_DefaultInstance_ReturnsExpectedValues ( bool useSingleton )
74
72
{
75
73
AIJsonSchemaCreateOptions options = useSingleton ? AIJsonSchemaCreateOptions. Default : new AIJsonSchemaCreateOptions ( ) ;
76
- Assert . True ( options . IncludeTypeInEnumSchemas ) ;
77
- Assert . False ( options . DisallowAdditionalProperties ) ;
78
74
Assert . False ( options . IncludeSchemaKeyword ) ;
79
- Assert . False ( options . RequireAllProperties ) ;
80
75
Assert . Null ( options . TransformSchemaNode ) ;
81
76
Assert . Null ( options . TransformOptions ) ;
82
77
}
You can’t perform that action at this time.
0 commit comments