Skip to content

Commit 26cf548

Browse files
Added support for config validation
1 parent 07dc922 commit 26cf548

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Client.php

+12
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,18 @@ public function presets()
8686
return $this->get('presets');
8787
}
8888

89+
/**
90+
* Validate the given config.
91+
*
92+
* @param string $config
93+
*
94+
* @return array
95+
*/
96+
public function validate($config)
97+
{
98+
return $this->get('validate', ['query' => ['config' => $config]]);
99+
}
100+
89101
/**
90102
* Send a get request, and parse the result as json.
91103
*

0 commit comments

Comments
 (0)