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
This issue might be out of scope for json-schema-form. We are discussing internally the possibility of deprecating customProperties in favor of moving mutations to JSON Schemas outside createHeadlessForm().
So in this case, we'd instead recommend doing this:
importmutatefrom'json-schema-form';constnewSchema=mutate(schema,{fields: {year: {"x-jsf-errorMessage": {required: "Cannot be empty (custom error)"}},}});constform=createHeadlessForm(newSchema)
Given the following JSON Schema, I cannot override its
errorMessage
usingcreateHeadlessForm()
JSF Config:
The text was updated successfully, but these errors were encountered: