a2ui-project / a2ui-project/a2ui

Allow developers to define ComponentApis using raw JSON schemas rather than Zod objects

Abierto
#1,248 7 comentarios 0 reacciones 0 asignados Ver en GitHub
P2 sprint ready type: feature/enhancement
Lenguaje dominante
TypeScript
Estrellas
16.4k
Forks
1.3k
Merge medio
2 d 13 h
PR fusionados (30 d)
134

Descripción

Some developers want to define a `ComponentApi` (and a `ComponentImplementation`) based on a JSON schema that they already maintain in a format other than Zod, e.g. a plain JSON schema object, or a TS interface etc.

Currently, `ComponentApi` exposes a Zod object as the schema, so this isn't really possible without Zod.

We would ideally have a story for this.

Options:

1. Migrate to Zod 4 which has `z.fromJSONSchema()` - https://zod.dev/json-schema
2. Tell developers to use https://www.npmjs.com/package/json-schema-to-zod or similar
3. Migrate our underlying logic to use raw JSON schemas instead of Zod

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.