Skip to content

Commit

Permalink
feat: Rest compliance warnings in boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachid Flih authored and Rachid Flih committed Jul 29, 2024
1 parent f17012a commit 4ab23d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/api/scripts/commonObject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# THIS SCRIPT GENERATES THE BOILERPLATE FOR NEW COMMON OBJECTS
# Usage: ./commonObject.sh "account,other_object" "accounting"

# Warning: if the objectCap does not end with the letter 's'
[[ ! $ObjectCap =~ s$ ]] && echo "Warning: ObjectCap does not end with the letter 's' - this object maybe doesn't comply with RESTful naming conventions"

if [ "$#" -ne 2 ]; then
echo "Usage: $0 <object_types_comma_separated> <vertical_object>"
exit 1
Expand Down

0 comments on commit 4ab23d9

Please sign in to comment.