2 instantiations of PocoWithNullableAnnotationAttributes
Shared.Tests (2)
Generated\361d1da7f942c932\TestTypesContext.PocoWithNullableAnnotationAttributes.g.cs (1)
33ObjectCreator = () => new global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes(),
JsonSchemaExporter\TestTypes.cs (1)
551Value: new() { MaybeNull = null!, AllowNull = null, NotNull = null, DisallowNull = null!, NotNullDisallowNull = "str" },
39 references to PocoWithNullableAnnotationAttributes
Shared.Tests (39)
Generated\361d1da7f942c932\TestTypesContext.PocoWithNullableAnnotationAttributes.g.cs (36)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes>? _PocoWithNullableAnnotationAttributes; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes> PocoWithNullableAnnotationAttributes 24get => _PocoWithNullableAnnotationAttributes ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes> Create_PocoWithNullableAnnotationAttributes(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes), 60Getter = static obj => ((global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)obj).MaybeNull, 61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)obj).MaybeNull = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes).GetProperty("MaybeNull", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 79DeclaringType = typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes), 81Getter = static obj => ((global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)obj).AllowNull, 82Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)obj).AllowNull = value!, 89AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes).GetProperty("AllowNull", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 100DeclaringType = typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes), 102Getter = static obj => ((global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)obj).NotNull, 103Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)obj).NotNull = value!, 110AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes).GetProperty("NotNull", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 121DeclaringType = typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes), 123Getter = static obj => ((global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)obj).DisallowNull, 124Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)obj).DisallowNull = value!, 131AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes).GetProperty("DisallowNull", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 142DeclaringType = typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes), 144Getter = static obj => ((global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)obj).NotNullDisallowNull, 145Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)obj).NotNullDisallowNull = value!, 152AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes).GetProperty("NotNullDisallowNull", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 164private void PocoWithNullableAnnotationAttributesSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes? value) 174writer.WriteString(PropName_MaybeNull, ((global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)value).MaybeNull); 175writer.WriteString(PropName_AllowNull, ((global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)value).AllowNull); 176writer.WriteString(PropName_NotNull, ((global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)value).NotNull); 177writer.WriteString(PropName_DisallowNull, ((global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)value).DisallowNull); 178writer.WriteString(PropName_NotNullDisallowNull, ((global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes)value).NotNullDisallowNull);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.GetJsonTypeInfo.g.cs (1)
152if (type == typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNullableAnnotationAttributes))
JsonSchemaExporter\TestTypes.cs (2)
550yield return new TestData<PocoWithNullableAnnotationAttributes>( 1285[JsonSerializable(typeof(PocoWithNullableAnnotationAttributes))]