@@ -13,10 +13,12 @@ npm run build:all # Generate all variants with Swagger
1313
1414** Validation workflow:**
1515``` bash
16- npm install # Install dependencies
17- npm run build:core # Build and verify compilation
18- npm run build:gcp # Build GCP variant
19- ls -l schemas/* /openapi.yaml # Confirm outputs exist
16+ npm install # Install dependencies
17+ ./build-schema.sh gcp # Build GCP OpenAPI 3.0
18+ ./build-schema.sh gcp --swagger # Build GCP OpenAPI 2.0 (Swagger)
19+ ./build-schema.sh core # Build core OpenAPI 3.0
20+ ./build-schema.sh core --swagger # Build core OpenAPI 2.0 (Swagger)
21+ ls -l schemas/* /openapi.yaml # Confirm outputs exist
2022```
2123
2224## Key Concepts
@@ -98,7 +100,11 @@ services/
98100- Commit ` node_modules/ ` or build artifacts
99101
100102** DO:**
101- - Run ` npm run build:all ` before committing schema changes
103+ - Run builds in this order before committing schema changes:
104+ 1 . ` ./build-schema.sh gcp `
105+ 2 . ` ./build-schema.sh gcp --swagger `
106+ 3 . ` ./build-schema.sh core `
107+ 4 . ` ./build-schema.sh core --swagger `
102108- Test both provider variants when modifying shared models
103109- Keep TypeSpec files focused (one resource per service file)
104110- Use semantic versioning for releases (see RELEASING.md)
@@ -187,8 +193,10 @@ Build: `npm run build:gcp`
187193Before submitting changes:
188194
189195- [ ] Dependencies installed: ` npm install `
190- - [ ] Core variant builds: ` npm run build:core `
191- - [ ] GCP variant builds: ` npm run build:gcp `
196+ - [ ] GCP variant builds: ` ./build-schema.sh gcp `
197+ - [ ] GCP Swagger builds: ` ./build-schema.sh gcp --swagger `
198+ - [ ] Core variant builds: ` ./build-schema.sh core `
199+ - [ ] Core Swagger builds: ` ./build-schema.sh core --swagger `
192200- [ ] Schema files generated: ` ls schemas/*/openapi.yaml `
193201- [ ] No TypeSpec compilation errors (check output)
194202- [ ] Changes committed including schema updates
0 commit comments