def same

ezmcp@0.1.0.0 · src/openapi.bend:741

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

741# whether two Parameter Objects are one parameter: the same name and the
742# same location
743def same(+left: Value.Json, +right: Value.Json) -> Bool:
744  Bool.and(String.eq(str.at(left, "name"), str.at(right, "name")),
745    String.eq(str.at(left, "in"), str.at(right, "in")))

Uses (5)

Used by (1)