33 references to Object
Microsoft.AspNetCore.OpenApi (1)
Services\Schemas\OpenApiSchemaService.cs (1)
43if (jsonTypeInfo.Kind != JsonTypeInfoKind.Object)
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
563if (ctx.TypeInfo.Kind is JsonTypeInfoKind.Object &&
System.Text.Json (31)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
217case JsonTypeInfoKind.Object:
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
620Debug.Assert(state.Current.JsonTypeInfo.Kind is JsonTypeInfoKind.Object);
System\Text\Json\Serialization\JsonUnionTypeStructuralClassifier.cs (2)
196Kind: JsonTypeInfoKind.Object, 253Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.Object);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (3)
42&& typeInfo.Kind is JsonTypeInfoKind.Object) 55if (typeInfo is { Kind: JsonTypeInfoKind.Object, IsNullable: false }) 517Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.Object);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (2)
151Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.Object); 166Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.Object);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (21)
110/// Serialization callbacks are only supported for <see cref="JsonTypeInfoKind.Object"/> metadata. 123if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary)) 140/// Serialization callbacks are only supported for <see cref="JsonTypeInfoKind.Object"/> metadata. 153if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary)) 170/// Serialization callbacks are only supported for <see cref="JsonTypeInfoKind.Object"/> metadata. 183if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary)) 206/// Serialization callbacks are only supported for <see cref="JsonTypeInfoKind.Object"/> metadata. 219if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary)) 232/// Property is only applicable to metadata of kind <see cref="JsonTypeInfoKind.Object"/>. 705/// of kind <see cref="JsonTypeInfoKind.Object"/>. 769/// Unmapped member handling only supported for <see cref="JsonTypeInfoKind.Object"/>. 785if (Kind != JsonTypeInfoKind.Object) 809/// Unmapped member handling only supported for <see cref="JsonTypeInfoKind.Object"/>. 825if (Kind != JsonTypeInfoKind.Object) 993if (Kind == JsonTypeInfoKind.Object) 1506Debug.Assert(Kind == JsonTypeInfoKind.Object); 1618Debug.Assert(Kind == JsonTypeInfoKind.Object); 1676if (Kind is JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary) 1768case ConverterStrategy.Object: return JsonTypeInfoKind.Object; 1794public override bool IsReadOnly => _jsonTypeInfo._properties == this && _jsonTypeInfo.IsReadOnly || _jsonTypeInfo.Kind != JsonTypeInfoKind.Object; 1802if (_jsonTypeInfo.Kind != JsonTypeInfoKind.Object)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
98if (derivedTypeInfo.JsonTypeInfo.Kind is JsonTypeInfoKind.Object)