Path: redb-route/redb.Route.JsonTransform/JsonTransformOptions.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.JsonTransform/JsonTransformOptions.cs
----
namespace redb.Route.JsonTransform;
/// What TransformJson leaves in the body.
public enum JsonTransformOutput
{
/// JSON text (ContentType = application/json). Default.
String,
/// A System.Text.Json.Nodes.JsonNode tree, for further steps that navigate the result.
Node,
}
///
/// Package-wide settings, registered with services.AddJsonTransform(...) or
/// context.UseJsonTransform(...); defaults apply when neither was called.
///
public sealed class JsonTransformOptions
{
/// Directory relative specification paths are resolved against. Default .
public string BaseDirectory { get; set; } = AppContext.BaseDirectory;
/// Indent the JSON text output. Default false.
public bool Indent { get; set; }
}