@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 +7 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +7 -1
- package/dist/cli.js.map +1 -1
- package/dist/generators/discovered-schema.d.ts.map +1 -1
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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
|
-
|
|
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: [],
|