Tips on how to create quality JSON schemas and prompts
enum type if your data has limited outcomes.
If a field has a predictable set of values (e.g., “Yes” / “No” or predefined categories), use an enum to constrain the output and improve consistency.
array at the top level. This helps the model thoroughly get each item in the list, not missing items at the end.