35 references to Object
Aspire.Hosting.Native.CodeGeneration (1)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (1)
3463if (typeInfo.Kind != JsonTypeInfoKind.Object)
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
3463if (typeInfo.Kind != JsonTypeInfoKind.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)
202Kind: JsonTypeInfoKind.Object, 259Debug.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 }) 542Debug.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"/>. 712/// of kind <see cref="JsonTypeInfoKind.Object"/>. 776/// Unmapped member handling only supported for <see cref="JsonTypeInfoKind.Object"/>. 792if (Kind != JsonTypeInfoKind.Object) 816/// Unmapped member handling only supported for <see cref="JsonTypeInfoKind.Object"/>. 832if (Kind != JsonTypeInfoKind.Object) 1000if (Kind == JsonTypeInfoKind.Object) 1519Debug.Assert(Kind == JsonTypeInfoKind.Object); 1631Debug.Assert(Kind == JsonTypeInfoKind.Object); 1689if (Kind is JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary) 1757case ConverterStrategy.Object: return JsonTypeInfoKind.Object; 1783public override bool IsReadOnly => _jsonTypeInfo._properties == this && _jsonTypeInfo.IsReadOnly || _jsonTypeInfo.Kind != JsonTypeInfoKind.Object; 1791if (_jsonTypeInfo.Kind != JsonTypeInfoKind.Object)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
98if (derivedTypeInfo.JsonTypeInfo.Kind is JsonTypeInfoKind.Object)