@meshery/schemas 1.3.50 → 1.3.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -948,7 +948,7 @@ schemas/constructs/ (OpenAPI YAML source files)
948
948
 
949
949
  ### Go Generation Pipeline
950
950
 
951
- `build/generate-golang.js` runs a 10-stage pipeline per package. The pipeline generates, transforms, and validates Go structs.
951
+ `build/generate-golang.js` runs an 11-stage pipeline per package. The pipeline generates, transforms, and validates Go structs.
952
952
 
953
953
  | Stage | Function | What it does |
954
954
  | --- | --- | --- |
@@ -962,6 +962,7 @@ schemas/constructs/ (OpenAPI YAML source files)
962
962
  | 8 | `ensureRequiredImports()` | Adds missing Go imports (e.g., `uuid`) when inlined `x-go-type` requires them |
963
963
  | 9 | `validateGeneratedDbTags()` | Verifies every `db:` tag declared in the schema is present in generated Go |
964
964
  | 10 | `validateGeneratedJsonTags()` | Verifies every `json:` tag in generated Go matches the schema property name |
965
+ | 11 | `formatGoFile()` | Runs `gofmt -w` on the finished file so generated Go is gofmt-clean as generated |
965
966
 
966
967
  The **property name is the single source of truth** for the json wire format. oapi-codegen reads it verbatim (stage 1), and `validateGeneratedJsonTags` confirms it survived the pipeline unchanged (stage 10).
967
968