2 overrides of Options
Shared.Tests (2)
JsonSchemaExporter\JsonSchemaExporterTests.cs (2)
174protected override JsonSerializerOptions Options => JsonSerializerOptions.Default; 179protected 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; 60JsonNode schema = Options.GetJsonSchemaAsNode(referenceType, config); 76JsonNode schema = Options.GetJsonSchemaAsNode(referenceType, config); 126JsonNode schema = Options.GetJsonSchemaAsNode(typeof(object), config); 133JsonNode schema = Options.GetJsonSchemaAsNode(typeof(TestTypes.PocoDisallowingUnmappedMembers)); 142Assert.Throws<ArgumentNullException>(() => Options.GetJsonSchemaAsNode(type: null!)); 156JsonSerializerOptions options = new(Options) { MaxDepth = 1 }; 164var options = new JsonSerializerOptions(Options) { ReferenceHandler = ReferenceHandler.Preserve };