-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matthias Gatto <[email protected]>
- Loading branch information
1 parent
a9bcfd4
commit 1805d18
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# funclist | ||
|
||
usage: | ||
``` | ||
./funclist api.json | ||
``` | ||
|
||
Look in an OpenAPI JSON file for the list of functions. To do this, identify which objects in components.schemas end with 'Request'. Each function call is separated by a space. | ||
|
||
# line_check | ||
|
||
usage: | ||
``` | ||
./line_check "test_keywork" "this_arg" <<< "there is this_arg in this line" | ||
``` | ||
|
||
Will return "this_arg". | ||
|
||
This utility was created to avoid calling grep for each keyword we need to check. With this utility, we can pass all our keywords to line_check and then switch based on which keyword was found. | ||
|
||
This is also much faster than multiple calls to grep. | ||
|
||
# osc-api-seems-valid.sh | ||
|
||
This utility is used to check if osc-api.json has been generated correctly. It verifies that the file is a valid JSON and contains at least one API function. |