@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/index.js CHANGED
@@ -6130,7 +6130,13 @@ function toStandaloneJsonSchema(root, typeRegistry, resolved) {
6130
6130
  const syntheticField = {
6131
6131
  kind: "field",
6132
6132
  name: "__result",
6133
- ...syntheticFieldMetadata !== void 0 && { metadata: syntheticFieldMetadata },
6133
+ metadata: {
6134
+ ...syntheticFieldMetadata,
6135
+ // Pin apiName so metadata-policy transforms (e.g. toStripeApiCase)
6136
+ // cannot rename this synthetic wrapper field. The lookup below
6137
+ // expects "__result" in the output schema properties.
6138
+ apiName: { value: "__result", source: "explicit" }
6139
+ },
6134
6140
  type: root.type,
6135
6141
  required: true,
6136
6142
  constraints: [],