From 604f5d0932650b6099ebc606d8a5d33cdbd3db45 Mon Sep 17 00:00:00 2001 From: Bart Koelman <104792814+bart-vmware@users.noreply.github.com> Date: Thu, 29 Jan 2026 14:55:04 +0100 Subject: [PATCH] Update schema for Steeltoe 4.1 --- .../Discovery_Consul/ConfigurationSchema.json | 2 +- .../Management_Endpoint/ConfigurationSchema.json | 10 ++++++++-- .../Baseline/merge-actual.json | 12 +++++++++--- .../Baseline/merge-expected.json | 12 +++++++++--- 4 files changed, 27 insertions(+), 9 deletions(-) diff --git a/ConfigurationSchemaGeneratorTest/Baseline/InputFiles/Discovery_Consul/ConfigurationSchema.json b/ConfigurationSchemaGeneratorTest/Baseline/InputFiles/Discovery_Consul/ConfigurationSchema.json index 74e9bf9..3111a53 100644 --- a/ConfigurationSchemaGeneratorTest/Baseline/InputFiles/Discovery_Consul/ConfigurationSchema.json +++ b/ConfigurationSchemaGeneratorTest/Baseline/InputFiles/Discovery_Consul/ConfigurationSchema.json @@ -173,7 +173,7 @@ }, "Scheme": { "type": "string", - "description": "Gets or sets the scheme to register the running app with (\"http\" or \"https\"). Default value: http." + "description": "Gets or sets the scheme to register the running app with (\"http\" or \"https\")." }, "ServiceName": { "type": "string", diff --git a/ConfigurationSchemaGeneratorTest/Baseline/InputFiles/Management_Endpoint/ConfigurationSchema.json b/ConfigurationSchemaGeneratorTest/Baseline/InputFiles/Management_Endpoint/ConfigurationSchema.json index 9797067..883f304 100644 --- a/ConfigurationSchemaGeneratorTest/Baseline/InputFiles/Management_Endpoint/ConfigurationSchema.json +++ b/ConfigurationSchemaGeneratorTest/Baseline/InputFiles/Management_Endpoint/ConfigurationSchema.json @@ -624,9 +624,13 @@ "SerializerOptions": { "type": "object", "properties": { + "AllowDuplicateProperties": { + "type": "boolean", + "description": "Gets or sets a value that indicates whether duplicate property names are allowed when deserializing JSON objects." + }, "AllowOutOfOrderMetadataProperties": { "type": "boolean", - "description": "Allows JSON metadata properties to be specified after regular properties in a deserialized JSON object." + "description": "Gets or sets a value that indicates whether JSON metadata properties can be specified after regular properties in a deserialized JSON object." }, "AllowTrailingCommas": { "type": "boolean", @@ -641,7 +645,9 @@ "Never", "Always", "WhenWritingDefault", - "WhenWritingNull" + "WhenWritingNull", + "WhenWriting", + "WhenReading" ], "description": "Gets or sets a value that determines when properties with default values are ignored during serialization or deserialization. The default value is 'System.Text.Json.Serialization.JsonIgnoreCondition.Never'." }, diff --git a/ConfigurationSchemaGeneratorTest/Baseline/merge-actual.json b/ConfigurationSchemaGeneratorTest/Baseline/merge-actual.json index e6b5222..c730fd3 100644 --- a/ConfigurationSchemaGeneratorTest/Baseline/merge-actual.json +++ b/ConfigurationSchemaGeneratorTest/Baseline/merge-actual.json @@ -214,7 +214,7 @@ }, "Scheme": { "type": "string", - "description": "Gets or sets the scheme to register the running app with (\"http\" or \"https\"). Default value: http." + "description": "Gets or sets the scheme to register the running app with (\"http\" or \"https\")." }, "ServiceName": { "type": "string", @@ -1233,9 +1233,13 @@ "SerializerOptions": { "type": "object", "properties": { + "AllowDuplicateProperties": { + "type": "boolean", + "description": "Gets or sets a value that indicates whether duplicate property names are allowed when deserializing JSON objects." + }, "AllowOutOfOrderMetadataProperties": { "type": "boolean", - "description": "Allows JSON metadata properties to be specified after regular properties in a deserialized JSON object." + "description": "Gets or sets a value that indicates whether JSON metadata properties can be specified after regular properties in a deserialized JSON object." }, "AllowTrailingCommas": { "type": "boolean", @@ -1250,7 +1254,9 @@ "Never", "Always", "WhenWritingDefault", - "WhenWritingNull" + "WhenWritingNull", + "WhenWriting", + "WhenReading" ], "description": "Gets or sets a value that determines when properties with default values are ignored during serialization or deserialization. The default value is 'System.Text.Json.Serialization.JsonIgnoreCondition.Never'." }, diff --git a/ConfigurationSchemaGeneratorTest/Baseline/merge-expected.json b/ConfigurationSchemaGeneratorTest/Baseline/merge-expected.json index e6b5222..c730fd3 100644 --- a/ConfigurationSchemaGeneratorTest/Baseline/merge-expected.json +++ b/ConfigurationSchemaGeneratorTest/Baseline/merge-expected.json @@ -214,7 +214,7 @@ }, "Scheme": { "type": "string", - "description": "Gets or sets the scheme to register the running app with (\"http\" or \"https\"). Default value: http." + "description": "Gets or sets the scheme to register the running app with (\"http\" or \"https\")." }, "ServiceName": { "type": "string", @@ -1233,9 +1233,13 @@ "SerializerOptions": { "type": "object", "properties": { + "AllowDuplicateProperties": { + "type": "boolean", + "description": "Gets or sets a value that indicates whether duplicate property names are allowed when deserializing JSON objects." + }, "AllowOutOfOrderMetadataProperties": { "type": "boolean", - "description": "Allows JSON metadata properties to be specified after regular properties in a deserialized JSON object." + "description": "Gets or sets a value that indicates whether JSON metadata properties can be specified after regular properties in a deserialized JSON object." }, "AllowTrailingCommas": { "type": "boolean", @@ -1250,7 +1254,9 @@ "Never", "Always", "WhenWritingDefault", - "WhenWritingNull" + "WhenWritingNull", + "WhenWriting", + "WhenReading" ], "description": "Gets or sets a value that determines when properties with default values are ignored during serialization or deserialization. The default value is 'System.Text.Json.Serialization.JsonIgnoreCondition.Never'." },