@forgezero/runtime 0.1.20 → 0.1.21

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.
@@ -141,6 +141,7 @@ function describeJsonSchema(schema, prefix = "") {
141
141
  required: required.has(name),
142
142
  description: property.description,
143
143
  writeOnly: property.writeOnly === true ? true : undefined,
144
+ readOnly: property.readOnly === true ? true : undefined,
144
145
  default: property.default,
145
146
  format: property.format,
146
147
  minLength: property.minLength,
@@ -181,6 +182,7 @@ function describeProperty(property, path, label, required) {
181
182
  required,
182
183
  description: property.description,
183
184
  writeOnly: property.writeOnly === true ? true : undefined,
185
+ readOnly: property.readOnly === true ? true : undefined,
184
186
  default: property.default,
185
187
  format: property.format,
186
188
  minLength: property.minLength,
package/dist/schema.d.ts CHANGED
@@ -61,6 +61,8 @@ export interface FormField {
61
61
  * is what routes a credential into the vault instead of onto a page.
62
62
  */
63
63
  writeOnly?: boolean;
64
+ /** Stored and validated, but supplied only by a trusted backend resolver. */
65
+ readOnly?: boolean;
64
66
  default?: unknown;
65
67
  /** `enum` only. */
66
68
  options?: readonly string[];
package/dist/schema.js CHANGED
@@ -141,6 +141,7 @@ function describeJsonSchema(schema, prefix = "") {
141
141
  required: required.has(name),
142
142
  description: property.description,
143
143
  writeOnly: property.writeOnly === true ? true : undefined,
144
+ readOnly: property.readOnly === true ? true : undefined,
144
145
  default: property.default,
145
146
  format: property.format,
146
147
  minLength: property.minLength,
@@ -181,6 +182,7 @@ function describeProperty(property, path, label, required) {
181
182
  required,
182
183
  description: property.description,
183
184
  writeOnly: property.writeOnly === true ? true : undefined,
185
+ readOnly: property.readOnly === true ? true : undefined,
184
186
  default: property.default,
185
187
  format: property.format,
186
188
  minLength: property.minLength,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgezero/runtime",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",