feat(P27): validated per-module examples (D-058) + schema glob fix

Add modules/<name>/examples/ directories with simple.yaml + complex.yaml
(+ mysql.yaml for RDS) for every primitive and module pattern. All 25
example contracts validate against schemas/contract.schema.json. Update
the contract schema to allow object/array input values (for env vars).
Fix the platform-test schema-validation glob to modules/*/*/examples/*.yaml
to match the nested l1/l2 path structure. Update the microservice sample
contract note (env objects now permitted by the schema).

---ci---
project: acdl
phase: 27
milestone: v1.7
status: execute
---/ci---
This commit is contained in:
Jon Chery
2026-07-22 20:22:45 +00:00
parent a9d8b31595
commit 4bd07a4fae
28 changed files with 227 additions and 8 deletions
-5
View File
@@ -1,11 +1,6 @@
# ACDL sample consumer contract — microservice module (dev)
#
# Reference example for an ECS Fargate microservice deployment.
#
# NOTE: The contract schema (schemas/contract.schema.json) restricts
# inputs to scalar types (string/number/boolean). Nested objects like
# `env: { LOG_LEVEL: info }` are not permitted; use a flat string
# (e.g. env_vars: "LOG_LEVEL=info") if environment variables are needed.
# This contract declares only the inputs the composition wires reference
# (bucket_name, region) plus a representative image/port.
uses: acdl/pipelines/deploy.yaml@v1.6