@@ -85,36 +85,41 @@ test-prod:
8585 --junitxml=test-report.xml \
8686
8787# Run schema validation check
88+ GREEN := \033[32m
89+ RESET := \033[0m
8890
89- schema-consent :
9091
92+
93+ schema-all :
94+ make schema-consent \
95+ schema-related-person \
96+ schema-questionnaire \
97+ schema-errors
98+
99+ schema-consent :
91100 @for file in specification/examples/responses/GET_Consent/* .yaml; do \
92- if [ "$$file" = "specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml" ]; then \
93- continue; \
94- fi; \
95- if [ "$$file" = "specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml" ]; then \
96- continue; \
97- fi; \
98- if [ "$$file" = "specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml" ]; then \
99- continue; \
100- fi; \
101- if [ "$$file" = "specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml" ]; then \
102- continue; \
103- fi; \
104- if [ "$$file" = "specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml" ]; then \
105- continue; \
106- fi; \
107- if [ "$$file" = "specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml" ]; then \
108- continue; \
109- fi; \
110101 echo " Processing $$ file" ; \
111102 poetry run python scripts/validate_schema.py consent " $$ (realpath $$ file)" ; \
103+ echo -e " $( GREEN) Success!$( RESET) " ; \
112104 done
113105
106+ schema-related-person :
107+ @for file in specification/examples/responses/GET_RelatedPerson/* .yaml; do \
108+ echo " Processing $$ file" ; \
109+ poetry run python scripts/validate_schema.py relatedperson " $$ (realpath $$ file)" ; \
110+ echo -e " $( GREEN) Success!$( RESET) " ; \
111+ done
114112
115- # cd scripts
113+ schema-questionnaire :
114+ @for file in specification/examples/responses/POST_Questionnaireresponse/* .yaml; do \
115+ echo " Processing $$ file" ; \
116+ poetry run python scripts/validate_schema.py operationoutcome " $$ (realpath $$ file)" ; \
117+ echo -e " $( GREEN) Success!$( RESET) " ; \
118+ done
116119
117- # $(foreach file, $(FILES), poetry run python scripts/validate_schema.py consent $(file)";)
118- #
119- # @for file in ../specification/examples/responses/GET_Consent/*.yaml; do echo $$file; done
120- # @for file in ../specification/examples/responses/GET_Consent/*.yaml; do poetry run python scripts/validate_schema.py consent $$file; done
120+ schema-errors :
121+ @for file in specification/examples/responses/errors/* .yaml; do \
122+ echo " Processing $$ file" ; \
123+ poetry run python scripts/validate_schema.py operationoutcome " $$ (realpath $$ file)" ; \
124+ echo -e " $( GREEN) Success!$( RESET) " ; \
125+ done
0 commit comments