Skip to content

Add inheritdoc to generated Json serializers #67

Add inheritdoc to generated Json serializers

Add inheritdoc to generated Json serializers #67

Re-run triggered November 11, 2024 19:13
Status Failure
Total duration 41s
Artifacts

ci.yaml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 1 warning
TransparentValueObjects.Tests.SourceOutput.Augments.JsonAugmentTestsReferenceType.Test_JsonAugment
VerifyException : Directory: /home/runner/work/TransparentValueObjects/TransparentValueObjects/tests/TransparentValueObjects.Tests/SourceOutput/Augments NotEqual: - Received: JsonAugmentTestsReferenceType.Test_JsonAugment.received.cs Verified: JsonAugmentTestsReferenceType.Test_JsonAugment.verified.cs FileContent: NotEqual: Received: JsonAugmentTestsReferenceType.Test_JsonAugment.received.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { /// <inheritdoc /> public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var innerValue = reader.GetString(); return innerValue is null ? DefaultValue : From(innerValue); } /// <inheritdoc /> public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteStringValue(value.Value); } /// <inheritdoc /> public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var innerValue = reader.GetString(); return innerValue is null ? DefaultValue : From(innerValue); } /// <inheritdoc /> public override void WriteAsPropertyName(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WritePropertyName(value.Value); } } #endregion JSON Augment Verified: JsonAugmentTestsReferenceType.Test_JsonAugment.verified.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var innerValue = reader.GetString(); return innerValue is null ? DefaultValue : From(innerValue); } public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteStringValue(value.Value); } public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var innerValue = reader.GetString(); return innerValue is null ? DefaultValue : From(innerValue); } public override void WriteAsPropertyName(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WritePropertyName(value.Value); } } #endregion JSON Augment
TransparentValueObjects.Tests.SourceOutput.Augments.JsonAugmentTestsValueType.Test_JsonAugment
VerifyException : Directory: /home/runner/work/TransparentValueObjects/TransparentValueObjects/tests/TransparentValueObjects.Tests/SourceOutput/Augments NotEqual: - Received: JsonAugmentTestsValueType.Test_JsonAugment.received.cs Verified: JsonAugmentTestsValueType.Test_JsonAugment.verified.cs FileContent: NotEqual: Received: JsonAugmentTestsValueType.Test_JsonAugment.received.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { /// <inheritdoc /> public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var innerValue = reader.GetGuid(); return From(innerValue); } /// <inheritdoc /> public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteStringValue(value.Value); } /// <inheritdoc /> public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var innerValue = reader.GetString(); return From(innerValue is null ? global::System.Guid.Empty : global::System.Guid.Parse(innerValue)); } /// <inheritdoc /> public override void WriteAsPropertyName(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WritePropertyName(value.Value.ToString()); } } #endregion JSON Augment Verified: JsonAugmentTestsValueType.Test_JsonAugment.verified.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var innerValue = reader.GetGuid(); return From(innerValue); } public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteStringValue(value.Value); } public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var innerValue = reader.GetString(); return From(innerValue is null ? global::System.Guid.Empty : global::System.Guid.Parse(innerValue)); } public override void WriteAsPropertyName(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WritePropertyName(value.Value.ToString()); } } #endregion JSON Augment
TransparentValueObjects.Tests.SourceOutput.Augments.JsonAugmentTestsNumbers.Test_UInt16
VerifyException : Directory: /home/runner/work/TransparentValueObjects/TransparentValueObjects/tests/TransparentValueObjects.Tests/SourceOutput/Augments NotEqual: - Received: JsonAugmentTestsNumbers.Test_UInt16.received.cs Verified: JsonAugmentTestsNumbers.Test_UInt16.verified.cs FileContent: NotEqual: Received: JsonAugmentTestsNumbers.Test_UInt16.received.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { /// <inheritdoc /> public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { if ((options.NumberHandling & global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString) == global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString && reader.TokenType == global::System.Text.Json.JsonTokenType.String) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.UInt16.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } return From(reader.GetUInt16()); } /// <inheritdoc /> public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteNumberValue(value.Value); } /// <inheritdoc /> public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.UInt16.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } /// <inheritdoc /> public override void WriteAsPropertyName(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WritePropertyName(value.Value.ToString(global::System.Globalization.CultureInfo.InvariantCulture)); } } #endregion JSON Augment Verified: JsonAugmentTestsNumbers.Test_UInt16.verified.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { if ((options.NumberHandling & global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString) == global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString && reader.TokenType == global::System.Text.Json.JsonTokenType.String) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.UInt16.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } return From(reader.GetUInt16()); } public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteNumberValue(value.Value); } public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.UInt16.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.Cu
TransparentValueObjects.Tests.SourceOutput.Augments.JsonAugmentTestsNumbers.Test_UInt32
VerifyException : Directory: /home/runner/work/TransparentValueObjects/TransparentValueObjects/tests/TransparentValueObjects.Tests/SourceOutput/Augments NotEqual: - Received: JsonAugmentTestsNumbers.Test_UInt32.received.cs Verified: JsonAugmentTestsNumbers.Test_UInt32.verified.cs FileContent: NotEqual: Received: JsonAugmentTestsNumbers.Test_UInt32.received.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { /// <inheritdoc /> public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { if ((options.NumberHandling & global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString) == global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString && reader.TokenType == global::System.Text.Json.JsonTokenType.String) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.UInt32.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } return From(reader.GetUInt32()); } /// <inheritdoc /> public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteNumberValue(value.Value); } /// <inheritdoc /> public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.UInt32.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } /// <inheritdoc /> public override void WriteAsPropertyName(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WritePropertyName(value.Value.ToString(global::System.Globalization.CultureInfo.InvariantCulture)); } } #endregion JSON Augment Verified: JsonAugmentTestsNumbers.Test_UInt32.verified.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { if ((options.NumberHandling & global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString) == global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString && reader.TokenType == global::System.Text.Json.JsonTokenType.String) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.UInt32.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } return From(reader.GetUInt32()); } public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteNumberValue(value.Value); } public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.UInt32.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.Cu
TransparentValueObjects.Tests.SourceOutput.Augments.JsonAugmentTestsNumbers.Test_UInt64
VerifyException : Directory: /home/runner/work/TransparentValueObjects/TransparentValueObjects/tests/TransparentValueObjects.Tests/SourceOutput/Augments NotEqual: - Received: JsonAugmentTestsNumbers.Test_UInt64.received.cs Verified: JsonAugmentTestsNumbers.Test_UInt64.verified.cs FileContent: NotEqual: Received: JsonAugmentTestsNumbers.Test_UInt64.received.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { /// <inheritdoc /> public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { if ((options.NumberHandling & global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString) == global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString && reader.TokenType == global::System.Text.Json.JsonTokenType.String) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.UInt64.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } return From(reader.GetUInt64()); } /// <inheritdoc /> public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteNumberValue(value.Value); } /// <inheritdoc /> public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.UInt64.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } /// <inheritdoc /> public override void WriteAsPropertyName(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WritePropertyName(value.Value.ToString(global::System.Globalization.CultureInfo.InvariantCulture)); } } #endregion JSON Augment Verified: JsonAugmentTestsNumbers.Test_UInt64.verified.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { if ((options.NumberHandling & global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString) == global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString && reader.TokenType == global::System.Text.Json.JsonTokenType.String) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.UInt64.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } return From(reader.GetUInt64()); } public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteNumberValue(value.Value); } public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.UInt64.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.Cu
TransparentValueObjects.Tests.SourceOutput.Augments.JsonAugmentTestsNumbers.Test_Int16
VerifyException : Directory: /home/runner/work/TransparentValueObjects/TransparentValueObjects/tests/TransparentValueObjects.Tests/SourceOutput/Augments NotEqual: - Received: JsonAugmentTestsNumbers.Test_Int16.received.cs Verified: JsonAugmentTestsNumbers.Test_Int16.verified.cs FileContent: NotEqual: Received: JsonAugmentTestsNumbers.Test_Int16.received.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { /// <inheritdoc /> public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { if ((options.NumberHandling & global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString) == global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString && reader.TokenType == global::System.Text.Json.JsonTokenType.String) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.Int16.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } return From(reader.GetInt16()); } /// <inheritdoc /> public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteNumberValue(value.Value); } /// <inheritdoc /> public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.Int16.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } /// <inheritdoc /> public override void WriteAsPropertyName(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WritePropertyName(value.Value.ToString(global::System.Globalization.CultureInfo.InvariantCulture)); } } #endregion JSON Augment Verified: JsonAugmentTestsNumbers.Test_Int16.verified.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { if ((options.NumberHandling & global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString) == global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString && reader.TokenType == global::System.Text.Json.JsonTokenType.String) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.Int16.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } return From(reader.GetInt16()); } public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteNumberValue(value.Value); } public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.Int16.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.
TransparentValueObjects.Tests.SourceOutput.Augments.JsonAugmentTestsNumbers.Test_Int64
VerifyException : Directory: /home/runner/work/TransparentValueObjects/TransparentValueObjects/tests/TransparentValueObjects.Tests/SourceOutput/Augments NotEqual: - Received: JsonAugmentTestsNumbers.Test_Int64.received.cs Verified: JsonAugmentTestsNumbers.Test_Int64.verified.cs FileContent: NotEqual: Received: JsonAugmentTestsNumbers.Test_Int64.received.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { /// <inheritdoc /> public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { if ((options.NumberHandling & global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString) == global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString && reader.TokenType == global::System.Text.Json.JsonTokenType.String) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.Int64.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } return From(reader.GetInt64()); } /// <inheritdoc /> public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteNumberValue(value.Value); } /// <inheritdoc /> public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.Int64.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } /// <inheritdoc /> public override void WriteAsPropertyName(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WritePropertyName(value.Value.ToString(global::System.Globalization.CultureInfo.InvariantCulture)); } } #endregion JSON Augment Verified: JsonAugmentTestsNumbers.Test_Int64.verified.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { if ((options.NumberHandling & global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString) == global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString && reader.TokenType == global::System.Text.Json.JsonTokenType.String) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.Int64.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } return From(reader.GetInt64()); } public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteNumberValue(value.Value); } public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.Int64.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.
TransparentValueObjects.Tests.SourceOutput.Augments.JsonAugmentTestsNumbers.Test_Int32
VerifyException : Directory: /home/runner/work/TransparentValueObjects/TransparentValueObjects/tests/TransparentValueObjects.Tests/SourceOutput/Augments NotEqual: - Received: JsonAugmentTestsNumbers.Test_Int32.received.cs Verified: JsonAugmentTestsNumbers.Test_Int32.verified.cs FileContent: NotEqual: Received: JsonAugmentTestsNumbers.Test_Int32.received.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { /// <inheritdoc /> public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { if ((options.NumberHandling & global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString) == global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString && reader.TokenType == global::System.Text.Json.JsonTokenType.String) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.Int32.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } return From(reader.GetInt32()); } /// <inheritdoc /> public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteNumberValue(value.Value); } /// <inheritdoc /> public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.Int32.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } /// <inheritdoc /> public override void WriteAsPropertyName(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WritePropertyName(value.Value.ToString(global::System.Globalization.CultureInfo.InvariantCulture)); } } #endregion JSON Augment Verified: JsonAugmentTestsNumbers.Test_Int32.verified.cs #region JSON Augment /// <summary> /// Custom JSON converter for the Value Object. /// </summary> public class JsonConverter : global::System.Text.Json.Serialization.JsonConverter<TestValueObject> { public override TestValueObject Read(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { if ((options.NumberHandling & global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString) == global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString && reader.TokenType == global::System.Text.Json.JsonTokenType.String) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.Int32.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.InvariantCulture); return From(innerValue); } return From(reader.GetInt32()); } public override void Write(global::System.Text.Json.Utf8JsonWriter writer, TestValueObject value, global::System.Text.Json.JsonSerializerOptions options) { writer.WriteNumberValue(value.Value); } public override TestValueObject ReadAsPropertyName(ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { var stringValue = reader.GetString(); var innerValue = stringValue is null ? default : global::System.Int32.Parse(stringValue, global::System.Globalization.NumberStyles.Any, global::System.Globalization.CultureInfo.
build (ubuntu-latest)
Process completed with exit code 1.
build (windows-latest)
The job was canceled because "ubuntu-latest" failed.
build (windows-latest)
The operation was canceled.
build (ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/