Skip to content

Commit 71dc3b7

Browse files
NPA-4511: Updated Makefile to check consent endpoint schemas
1 parent 7fe091d commit 71dc3b7

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

Makefile

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,34 @@ RESET := \033[0m
9191

9292

9393
schema-all:
94-
make schema-consent \
94+
make schema-get-consent \
95+
schema-post-consent \
96+
schema-patch-consent \
9597
schema-related-person \
9698
schema-questionnaire \
9799
schema-errors
98100

99-
schema-consent:
101+
schema-get-consent:
100102
@for file in specification/examples/responses/GET_Consent/*.yaml; do \
101103
echo "Processing $$file"; \
102104
poetry run python scripts/validate_schema.py consent "$$(realpath $$file)"; \
103105
echo -e "$(GREEN)Success!$(RESET)"; \
104106
done
105107

108+
schema-post-consent:
109+
@for file in specification/examples/responses/POST_Consent/*.yaml; do \
110+
echo "Processing $$file"; \
111+
poetry run python scripts/validate_schema.py operationoutcome "$$(realpath $$file)"; \
112+
echo -e "$(GREEN)Success!$(RESET)"; \
113+
done
114+
115+
schema-patch-consent:
116+
@for file in specification/examples/responses/PATCH_Consent/*.yaml; do \
117+
echo "Processing $$file"; \
118+
poetry run python scripts/validate_schema.py operationoutcome "$$(realpath $$file)"; \
119+
echo -e "$(GREEN)Success!$(RESET)"; \
120+
done
121+
106122
schema-related-person:
107123
@for file in specification/examples/responses/GET_RelatedPerson/*.yaml; do \
108124
echo "Processing $$file"; \

0 commit comments

Comments
 (0)