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
4242 /// </summary>
4343 public AIJsonSchemaTransformOptions ? TransformOptions { get ; init ; }
4444
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-
5945 /// <summary>
6046 /// Gets a value indicating whether to include the $schema keyword in created schemas.
6147 /// </summary>
6248 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 ; }
7049}
Original file line number Diff line number Diff line change 1515using Microsoft . Extensions . AI . JsonSchemaExporter ;
1616using Xunit ;
1717
18- #pragma warning disable 0618 // Suppress obsolete warnings
19-
2018namespace Microsoft . Extensions . AI ;
2119
2220public static partial class AIJsonUtilitiesTests
@@ -73,10 +71,7 @@ public static void DefaultOptions_UsesReflectionWhenDefault()
7371 public static void AIJsonSchemaCreateOptions_DefaultInstance_ReturnsExpectedValues ( bool useSingleton )
7472 {
7573 AIJsonSchemaCreateOptions options = useSingleton ? AIJsonSchemaCreateOptions. Default : new AIJsonSchemaCreateOptions ( ) ;
76- Assert . True ( options . IncludeTypeInEnumSchemas ) ;
77- Assert . False ( options . DisallowAdditionalProperties ) ;
7874 Assert . False ( options . IncludeSchemaKeyword ) ;
79- Assert . False ( options . RequireAllProperties ) ;
8075 Assert . Null ( options . TransformSchemaNode ) ;
8176 Assert . Null ( options . TransformOptions ) ;
8277 }
You can’t perform that action at this time.
0 commit comments