Added an OpenAPI validation target and license headers.

This commit is contained in:
javier committed 2026-10-25 18:21:23 +01:00
1 parent 2d86dff608
commit 2cfacd0e14
8 files changed
+79 -9

No files matched your search

+10
View File
@@ -107,6 +107,16 @@ oas-download: ## Downloads the latest App Store Connect OpenAPI specification do
oas-patch: # Patches the OpenAPI specification document with the patches in Scripts/patch-oas.jq
@jq --from-file Scripts/patch-oas.jq "$(OAS_DOWNLOAD_OUTPUT)" > "$(OAS_DOWNLOAD_OUTPUT).tmp"
@mv "$(OAS_DOWNLOAD_OUTPUT).tmp" "$(OAS_DOWNLOAD_OUTPUT)"
@$(MAKE) --no-print-directory oas-validate
oas-validate: ## Validates the OpenAPI specification document
@swift run \
--configuration release \
--package-path "$(OAS_GENERATE_TOOLS)" \
swift-openapi-generator generate \
--config "$(OAS_GENERATE_CONFIG)" \
--dry-run \
"$(OAS_DOWNLOAD_OUTPUT)"
oas-generate: ## Generates the library source code from the OpenAPI specification document
@mkdir -p "$(OAS_GENERATE_OUTPUT)"