jsonforms icon indicating copy to clipboard operation
jsonforms copied to clipboard

Docs proposal: a custom Ajv format tested across three renderers

Open PerchAnton opened this issue 2 weeks ago • 2 comments

Is your feature request related to a problem? Please describe.

The concrete case is a code copied from a label or message: our selected one-character typo still passes a shape-only regex, but fails the checksum before lookup. Existing IDs and access checks stay in place. If ordinary IDs and search are sufficient, this adds no demonstrated value.

Describe the solution you would like

I maintain RefMint, a small library for public references with a checksum. I prepared a runnable jsonforms example for an optional order-reference field.

The example registers an order-reference format in Ajv and uses the same schema and input fixtures in React, Vue and Angular renderers. It checks selected checksum typos, namespace errors, preserved input, correction and clipboard paste in all three.

Would a small documentation recipe using this existing extension point be useful? No change or new dependency in your core library is proposed.

Describe alternatives you have considered

Keep the current ID/search when it works well. A shape-only regex does not check a checksum; an application can also implement its own validator. This proposal is an optional documentation recipe, not a request to change the core.

Additional context

Setup, fixtures and limits include the browser tests. The local suite and CI passed 40 cases with zero retries across ten renderer routes, plus 12 contract tests. This is functional coverage, not evidence of faster human entry.

Packages: React Bindings, React Vanilla Renderers, Vue Bindings, Vue Vanilla Renderers, Angular Bindings with an application-owned renderer. All use JSON Forms 3.8.0.

PerchAnton avatar Nov 16 '26 19:11 PerchAnton

Hi @PerchAnton , thanks for your interest in JSON Forms and offering a contribution ❤️ I would prefer not to add this to the documentation as this is AJV-specific configuration configuring AJV itself for a certain validation behavior. I consider this out of scope for JSON Forms and want to avoid needing to maintain this documentation. Thanks again for offering though!

lucas-koehler avatar Nov 18 '26 13:11 lucas-koehler

Thanks for explaining the documentation boundary. I understand that this configures Ajv rather than JSON Forms, and maintaining it would add work for your team. I will keep it as an external application example. I understand the decision to close the proposal.

PerchAnton avatar Nov 18 '26 20:11 PerchAnton