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