def typed.null

ezmcp@0.1.0.0 · src/openapi.bend:452

import ezmcp@0.1.0.0/src/openapi.bend as Openapi
import Base
import emerging-ezjson@1.2.0.0/src/value.bend as Value

452def typed.null(nullable: Bool, +typ: Value.Json) -> Value.Json:
453  match nullable:
454    case True{}:
455      with.null(number(typ))
456    case False{}:
457      number(typ)

Uses (4)

Used by (1)