You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/schema/schemagen/schema-generation.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,24 +140,36 @@ The generator will handle most common types:
140
140
141
141
For POCOs, read-only properties and fields will be marked with a `readOnly` keyword, and write-only properties (those with only a setter) will be marked with a `writeOnly` keyword. These behaviors can be overridden by applying the appropriate keyword with a `false` value.
142
142
143
-
Lastly, property names will either be listed as declared in code (default) or sorted by name. This is controlled via the `SchemaGenerationConfiguration.PropertyOrder` property.
143
+
Lastly, property names will either be listed as declared in code (default) or sorted by name. This is controlled via the `SchemaGeneratorConfiguration.PropertyOrder` property.
144
144
145
145
### XML comment support
146
146
147
147
In addition to the explicit attributes above, the XML comment `<Summary>` element can be configured to render to a `description` keyword. Because .Net saves this information into an external XML file instead of into the reflection data, you'll need to have a configuration object and register the XML filename.
148
148
149
149
```c#
150
-
varconfig=newSchemaGenerationConfiguration();
150
+
varconfig=newSchemaGeneratorConfiguration();
151
151
// MyModel is any type from the assembly. A single registration will
0 commit comments