From 60bf429acd9ecd773a8f0f78745f89a740c680fe Mon Sep 17 00:00:00 2001 From: Yu-Hua Yang Date: Tue, 29 Sep 2026 20:34:09 +0000 Subject: [PATCH] fix(generator): include payment_authentication in common schemas Fixes #64 (payment_authentication exclusion) generate_models.sh previously omitted common/payment_authentication.json, leaving dev.ucp.common.payment.authentication schemas ungenerated. This adds payment_actions and dev.ucp.shopping.checkout definitions under schemas/common/payment_authentication.json to QUICKTYPE_ARGS. --- generate_models.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/generate_models.sh b/generate_models.sh index 2531871..7387614 100755 --- a/generate_models.sh +++ b/generate_models.sh @@ -176,6 +176,10 @@ if [[ -d "$SPEC_DIR/schemas/common" ]]; then --src "$SPEC_DIR/schemas/common/payment_ap2_mandate.json#/\$defs/checkout_mandate" --src "$SPEC_DIR/schemas/common/payment_ap2_mandate.json#/\$defs/error_code" ) + [[ -f "$SPEC_DIR/schemas/common/payment_authentication.json" ]] && QUICKTYPE_ARGS+=( + --src "$SPEC_DIR/schemas/common/payment_authentication.json#/\$defs/payment_actions" + --src "$SPEC_DIR/schemas/common/payment_authentication.json#/\$defs/dev.ucp.shopping.checkout" + ) fi if [[ -d "$SPEC_DIR/schemas/transports" ]]; then