Support for files other than markdown as spec artifacts

Abierto
#2,115 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
html, markdown, typescript, yaml

Línea de trabajo

Start with schema.yaml and the existing artifact loading and delta-processing workflow to understand how Markdown extensions and required markers are currently handled. Done means schema-defined formats can select an extension and identify delta sections reliably, allowing artifacts such as spec to use formats including Gherkin, HTML, and MDX without changing the workflow.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement needs-triage
The problem, in one or two sentences

I have often used HTML for specifications that require rich interaction, Gherkin when authoring scenarios, and sometimes even MDX. Right now, OpenSpec uses Markdown (.md), especially for the spec artifact itself.

I am wondering if the format could be made configurable. As long as the markers required for the delta format are present and can be reliably identified, the underlying file format should not matter.

Who this affects

Affects power users of OpenSpec who are creating their own schemas. Right now we are working around.

What you tried

My workaround: https://github.com/intent-driven-dev/intent-driven-template#experimental-spec-as-source

What you have in mind

Make the artifact format configurable in schema.yaml. A format definition could specify the file extension, type, and the placeholders or markers required for the delta format. Artifacts such as spec could then reference one of these format definitions.

This would allow spec to use Markdown, Gherkin, HTML, MDX, or other formats without changing the artifact workflow, as long as the selected format defines how the required delta sections are represented.

Lenguaje dominante
TypeScript
Estrellas
76k
Forks
5.2k
Merge medio
1 d 5 h
PR fusionados (30 d)
58

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Fission-AI/OpenSpec

Todos los issues de Fission-AI/OpenSpec

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.