aboutsummaryrefslogtreecommitdiff
path: root/apps/dreki/src/dreki_tasks_cloyster.erl
blob: 3fb045d98ca0b5fde3702cb1f5879de7dd5a12c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-module(dreki_tasks_cloyster).
-export([schemas/0, schema_field/1]).

schema_field(handler_manifest) -> <<"cloyster-task">>.

schemas() ->
  #{
    <<"cloyster-task">> => #{
      default_version => <<"1.0">>,
      <<"1.0">> => #{
        version => 'draft-06',
        title => <<"Cloyster Task Definition">>,
        type => object,
        properties => #{
            <<"script">> => #{type => string}
        },
        required => [script]
      }
    }
  }.