You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Example apps' document forms send a "$ref" property as a string, whatever type it resolves to #6185
The schema-driven document form in both example apps chooses each editor and JSON value from the property's inline type:
SwiftExampleApp: DocumentFieldsView and CreateDocumentView.propertiesJSON.
KotlinExampleApp: DocumentPropertyField and buildPropertiesJson in CreateDocumentScreen.kt.
A property declared with "$ref": "#/$defs/<name>" has no inline type, so it gets the plain text editor and goes out as a JSON string. If the definition is an integer, number or boolean, typing 7 sends "7". DPP resolves the reference, its sanitizer does not convert text to an integer, and Rust refuses the document. Such a document cannot be created from the form.
Where this shows up:
New Document (DOC-02) and the replace form (DOC-03) on both platforms.
Fix: the apps should not get a second schema resolver. Rust should hand the form each property's resolved type (for example a projection beside propertyConstraints), or the form should offer a raw properties JSON input that keeps value types.
Activity