Skip to content

Add structured output: JSON schema for ParseResult #12

@kiyeonjeon21

Description

@kiyeonjeon21

What

Export the ParseResult Pydantic model as JSON Schema so other tools can validate parsemux output.

How

Add to CLI:
```bash
parsemux schema --output-schema # prints ParseResult JSON Schema
```

Implementation

```python
from parsemux.core.models import ParseResult
print(ParseResult.model_json_schema())
```

Files

  • `src/parsemux/cli/main.py` — add to schema command

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions