Skip to content

Commit a352c06

Browse files
authored
Update schema for Steeltoe 4.1 (#15)
1 parent 3fc56f3 commit a352c06

File tree

4 files changed

+27
-9
lines changed

4 files changed

+27
-9
lines changed

ConfigurationSchemaGeneratorTest/Baseline/InputFiles/Discovery_Consul/ConfigurationSchema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
},
174174
"Scheme": {
175175
"type": "string",
176-
"description": "Gets or sets the scheme to register the running app with (\"http\" or \"https\"). Default value: http."
176+
"description": "Gets or sets the scheme to register the running app with (\"http\" or \"https\")."
177177
},
178178
"ServiceName": {
179179
"type": "string",

ConfigurationSchemaGeneratorTest/Baseline/InputFiles/Management_Endpoint/ConfigurationSchema.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,13 @@
624624
"SerializerOptions": {
625625
"type": "object",
626626
"properties": {
627+
"AllowDuplicateProperties": {
628+
"type": "boolean",
629+
"description": "Gets or sets a value that indicates whether duplicate property names are allowed when deserializing JSON objects."
630+
},
627631
"AllowOutOfOrderMetadataProperties": {
628632
"type": "boolean",
629-
"description": "Allows JSON metadata properties to be specified after regular properties in a deserialized JSON object."
633+
"description": "Gets or sets a value that indicates whether JSON metadata properties can be specified after regular properties in a deserialized JSON object."
630634
},
631635
"AllowTrailingCommas": {
632636
"type": "boolean",
@@ -641,7 +645,9 @@
641645
"Never",
642646
"Always",
643647
"WhenWritingDefault",
644-
"WhenWritingNull"
648+
"WhenWritingNull",
649+
"WhenWriting",
650+
"WhenReading"
645651
],
646652
"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'."
647653
},

ConfigurationSchemaGeneratorTest/Baseline/merge-actual.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
},
215215
"Scheme": {
216216
"type": "string",
217-
"description": "Gets or sets the scheme to register the running app with (\"http\" or \"https\"). Default value: http."
217+
"description": "Gets or sets the scheme to register the running app with (\"http\" or \"https\")."
218218
},
219219
"ServiceName": {
220220
"type": "string",
@@ -1233,9 +1233,13 @@
12331233
"SerializerOptions": {
12341234
"type": "object",
12351235
"properties": {
1236+
"AllowDuplicateProperties": {
1237+
"type": "boolean",
1238+
"description": "Gets or sets a value that indicates whether duplicate property names are allowed when deserializing JSON objects."
1239+
},
12361240
"AllowOutOfOrderMetadataProperties": {
12371241
"type": "boolean",
1238-
"description": "Allows JSON metadata properties to be specified after regular properties in a deserialized JSON object."
1242+
"description": "Gets or sets a value that indicates whether JSON metadata properties can be specified after regular properties in a deserialized JSON object."
12391243
},
12401244
"AllowTrailingCommas": {
12411245
"type": "boolean",
@@ -1250,7 +1254,9 @@
12501254
"Never",
12511255
"Always",
12521256
"WhenWritingDefault",
1253-
"WhenWritingNull"
1257+
"WhenWritingNull",
1258+
"WhenWriting",
1259+
"WhenReading"
12541260
],
12551261
"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'."
12561262
},

ConfigurationSchemaGeneratorTest/Baseline/merge-expected.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
},
215215
"Scheme": {
216216
"type": "string",
217-
"description": "Gets or sets the scheme to register the running app with (\"http\" or \"https\"). Default value: http."
217+
"description": "Gets or sets the scheme to register the running app with (\"http\" or \"https\")."
218218
},
219219
"ServiceName": {
220220
"type": "string",
@@ -1233,9 +1233,13 @@
12331233
"SerializerOptions": {
12341234
"type": "object",
12351235
"properties": {
1236+
"AllowDuplicateProperties": {
1237+
"type": "boolean",
1238+
"description": "Gets or sets a value that indicates whether duplicate property names are allowed when deserializing JSON objects."
1239+
},
12361240
"AllowOutOfOrderMetadataProperties": {
12371241
"type": "boolean",
1238-
"description": "Allows JSON metadata properties to be specified after regular properties in a deserialized JSON object."
1242+
"description": "Gets or sets a value that indicates whether JSON metadata properties can be specified after regular properties in a deserialized JSON object."
12391243
},
12401244
"AllowTrailingCommas": {
12411245
"type": "boolean",
@@ -1250,7 +1254,9 @@
12501254
"Never",
12511255
"Always",
12521256
"WhenWritingDefault",
1253-
"WhenWritingNull"
1257+
"WhenWritingNull",
1258+
"WhenWriting",
1259+
"WhenReading"
12541260
],
12551261
"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'."
12561262
},

0 commit comments

Comments
 (0)