2 overrides of Options
Shared.Tests (2)
JsonSchemaExporter\JsonSchemaExporterTests.cs (2)
174
protected override JsonSerializerOptions
Options
=> JsonSerializerOptions.Default;
179
protected override JsonSerializerOptions
Options
=> TestTypes.TestTypesContext.Default.Options;
11 references to Options
Shared.Tests (11)
JsonSchemaExporter\JsonSchemaExporterTests.cs (11)
31
? new(opts) { TypeInfoResolver =
Options
.TypeInfoResolver }
32
:
Options
;
43
? new(opts) { TypeInfoResolver =
Options
.TypeInfoResolver }
44
:
Options
;
60
JsonNode schema =
Options
.GetJsonSchemaAsNode(referenceType, config);
76
JsonNode schema =
Options
.GetJsonSchemaAsNode(referenceType, config);
126
JsonNode schema =
Options
.GetJsonSchemaAsNode(typeof(object), config);
133
JsonNode schema =
Options
.GetJsonSchemaAsNode(typeof(TestTypes.PocoDisallowingUnmappedMembers));
142
Assert.Throws<ArgumentNullException>(() =>
Options
.GetJsonSchemaAsNode(type: null!));
156
JsonSerializerOptions options = new(
Options
) { MaxDepth = 1 };
164
var options = new JsonSerializerOptions(
Options
) { ReferenceHandler = ReferenceHandler.Preserve };