Skip to content

Reserved-field conflict in generate() tested only for 'messages' #54

Description

@deyna256

File: src/promptum/validation/validators.py:73-74

JsonSchema.validate() has an explicit if not isinstance(data, dict) branch returning {"error": "Response is not a JSON object"}; no test passes a valid JSON non-dict value (e.g., an array or number).

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomerstestingTest coverage, quality, and correctness

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions