@formspec/build 0.1.0-alpha.46 → 0.1.0-alpha.48

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/dist/cli.cjs CHANGED
@@ -6295,7 +6295,13 @@ function toStandaloneJsonSchema(root, typeRegistry, resolved) {
6295
6295
  const syntheticField = {
6296
6296
  kind: "field",
6297
6297
  name: "__result",
6298
- ...syntheticFieldMetadata !== void 0 && { metadata: syntheticFieldMetadata },
6298
+ metadata: {
6299
+ ...syntheticFieldMetadata,
6300
+ // Pin apiName so metadata-policy transforms (e.g. toStripeApiCase)
6301
+ // cannot rename this synthetic wrapper field. The lookup below
6302
+ // expects "__result" in the output schema properties.
6303
+ apiName: { value: "__result", source: "explicit" }
6304
+ },
6299
6305
  type: root.type,
6300
6306
  required: true,
6301
6307
  constraints: [],