@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/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
|
-
|
|
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: [],
|