def own

ezmcp@0.1.0.0 · src/openapi.bend:470

import ezmcp@0.1.0.0/src/openapi.bend as Openapi
import Base

470# a schema's own members as an input schema has them: the OpenAPI 3.0
471# extras left out, `integer` as `number`, and `nullable` true adding null to
472# an explicit type, every other member as it is, in order
473def own(+ps: List<&2, Mem()>) -> List<&2, Mem()>:
474  typed.of(drop.all(extras(), ps), lookup(ps, "type"),
475    is_true(value(ps, "nullable")))

Uses (8)

Used by (1)