Add outline mode to schema generation #51

Closed
opened 2025-10-01 00:01:43 +00:00 by tegwick · 0 comments
Owner

UseCase: As a user generating schemas from example documents, I want an outline mode that captures the document structure with actual heading text and depth control, so that I can create schemas that preserve the hierarchical organization of my content.

Technical Requirements:
Extend the schema-generate command with --mode outline option, --depth parameter, and capture actual heading text in the generated schema instead of just structural patterns.

Acceptance Criteria:

  • New --mode outline option for schema-generate command
  • New --depth parameter to control outline depth (e.g., --depth 3)
  • Schema captures actual heading text from the source document
  • Schema title reads 'Schema from example.md' instead of 'Schema for example.md'
  • Outline mode works with existing --outfile parameter
  • Generated schemas are valid according to the metaschema (Issue #50)
  • CLI help documentation updated for new options

Dependencies:

  • Current schema generation system (Issue #5)
  • Metaschema definition (Issue #50)
UseCase: As a user generating schemas from example documents, I want an outline mode that captures the document structure with actual heading text and depth control, so that I can create schemas that preserve the hierarchical organization of my content. Technical Requirements: Extend the schema-generate command with --mode outline option, --depth parameter, and capture actual heading text in the generated schema instead of just structural patterns. Acceptance Criteria: - [ ] New --mode outline option for schema-generate command - [ ] New --depth parameter to control outline depth (e.g., --depth 3) - [ ] Schema captures actual heading text from the source document - [ ] Schema title reads 'Schema from example.md' instead of 'Schema for example.md' - [ ] Outline mode works with existing --outfile parameter - [ ] Generated schemas are valid according to the metaschema (Issue #50) - [ ] CLI help documentation updated for new options Dependencies: - Current schema generation system (Issue #5) - Metaschema definition (Issue #50)
Sign in to join this conversation.