`fromJsonSchemaDocument`: import the `not` keyword
Los mantenedores suelen responder en 1 día
@effect-bot ya está trabajando en esto.
Desde el 28/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
What is the problem this feature would solve?
On 4.0.7, importing a schema that uses not fails:
SchemaRepresentation.fromJsonSchemaDocument(JsonSchema.fromSchemaDraft07({
type: "object",
properties: { a: { type: "string" } },
not: { required: ["b"] }
}))
// Cannot import JSON Schema keyword "not": Effect has no equivalent constraint.
github-workflow.json uses not 9 times and dependabot-2.0.json once, mostly to forbid combinations such as branches together with branches-ignore.
Context: validating .github/dependabot.yaml and GitHub workflow files with SchemaRepresentation.fromJsonSchemaDocument against the SchemaStore documents dependabot-2.0.json and github-workflow.json, to replace ajv. Since #7410 the importer rejects keywords it cannot represent, which is the right failure, but it means both real-world documents cannot be imported at all. This is one of five gaps found in those two documents; each is filed separately.
What is the feature you are proposing to solve the problem?
Import not as a check that fails when the value decodes against the negated schema. Exporting it back to JSON Schema as not would keep round-trips lossless.
What alternatives have you considered?
- Stripping
notwithonEnter: imports, but silently accepts the invalid combinations the keyword exists to reject, which is what #7410 set out to prevent. - Keeping
ajvfor these documents: what we do today.
- Lenguaje dominante
- TypeScript
- Estrellas
- 16.7k
- Forks
- 808
- Merge medio
- 11 h 33 min
- PR fusionados (30 d)
- 855
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Effect-TS/effect
-
`fromJsonSchemaDocument`: import open `patternProperties`Posiblemente ocupada @effect-bot la tomó hoy. Abierto
Effect-TS/effect#10048 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
`fromJsonSchemaDocument`: intersect an object with `anyOf` branches that re-declare an enum propertyAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
Los mantenedores suelen responder en 1 día
-
`fromJsonSchemaDocument`: import `dependentRequired` (draft-07 `dependencies`)Posiblemente ocupada @effect-bot la tomó hoy. Abierto
Effect-TS/effect#10046 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
`fromJsonSchemaDocument`: import `if` / `then` / `else`Posiblemente ocupada @effect-bot la tomó hoy. Abierto
Effect-TS/effect#10045 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
cli: run command setup before fallback promptsPosiblemente ocupada @effect-bot la tomó hoy. Abierto
Effect-TS/effect#10043 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de Effect-TS/effect
Issues similares
-
bug ui-dashboard
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
caelestia-dots/caelestia#534 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug(scripts): install-git-hooks.sh points core.hooksPath at .githooks/, which does not existAbiertoarea: scripts bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
tdk-landscape/tdk-cli-core#2706 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
bobadilla-tech/biasmarket.com#402 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
javvadivijayprasad/sel2pw#28 ·