public override OpenApiSchema CreateDefinitionSchema(Type type, SchemaRepository schemaRepository) { var schema = LinqTypeMap[type](); schema.Nullable = true; return(schema); }
public override OpenApiSchema CreateDefinitionSchema(Type type, SchemaRepository schemaRepository) { var schema = LinqTypeMap[type](); schema.Nullable = (_serializerSettings.NullValueHandling == NullValueHandling.Include); return(schema); }
public override bool CanCreateSchemaFor(Type type, out bool shouldBeReferenced) { if (LinqTypeMap.ContainsKey(type)) { shouldBeReferenced = false; return(true); } shouldBeReferenced = false; return(false); }
public override OpenApiSchema CreateDefinitionSchema(Type type, SchemaRepository schemaRepository) { return(LinqTypeMap[type]()); }