Packages

OpenAPI Client libary for Harness Feature Flags Erlang Server SDK

Current section

Files

Jump to
harness_ff_erlang_client_api src cfapi_clause.erl
Raw

src/cfapi_clause.erl

-module(cfapi_clause).
-export([encode/1]).
-export_type([cfapi_clause/0]).
-type cfapi_clause() ::
#{ 'id' => binary(),
'attribute' := binary(),
'op' := binary(),
'values' := list(),
'negate' := boolean()
}.
encode(#{ 'id' := Id,
'attribute' := Attribute,
'op' := Op,
'values' := Values,
'negate' := Negate
}) ->
#{ 'id' => Id,
'attribute' => Attribute,
'op' => Op,
'values' => Values,
'negate' => Negate
}.