Companion

object Companion

Properties

Link copied to clipboard

The empty options structure.

Functions

Link copied to clipboard
fun fromJson(json: JsonObject): ResolutionOptions

Builds options from a JSON object, as delivered by the §12.1 POST binding request body. Mirrors fromQueryParameters: a malformed versionTime or an unrecognised expandRelativeUrls/noCache value is recorded and surfaced by validate as INVALID_OPTIONS rather than thrown. Unrecognised member types (objects, arrays) are dropped defensively rather than throwing, matching the degrade style used by org.trustweave.did.resolver.DidResolutionMetadata.fromJson.

Link copied to clipboard

Builds options from query-parameter style input, as delivered by the §12.1 GET binding. A malformed versionTime or an unrecognised expandRelativeUrls/noCache value is recorded and surfaced by validate as INVALID_OPTIONS rather than thrown.