Commit Graph

2 Commits

Author SHA1 Message Date
zhaog100
3f627561f0 fix: relax JSON Schema constraints for node IDs and properties
- Remove strict patternProperties regex for node IDs (runtime allows any string key)
- Change node additionalProperties to true (runtime allows extra metadata fields)
- Update docs to clarify node ID format is not constrained by schema

Fixes coderabbit Major review comments on #13094
2026-03-22 13:27:49 +08:00
zhaog100
bdead4bc04 Add JSON Schema for Prompt API Format
Closes #8899

- schemas/prompt.json: Draft-07 JSON Schema documenting the prompt format
  - Node objects with class_type (required), inputs (required), _meta (optional)
  - Node links as [source_id, output_index] arrays
  - Self-validating examples included in schema
- docs/api/prompt-schema.md: Documentation with validation rules, examples,
  and common error types

Based on analysis of execution.py:validate_prompt() and server.py
2026-03-22 03:53:01 +08:00