Skip to content

Commit

Permalink
Nit: Add a sort to the JSON schema generation for test consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocketknight1 committed Jul 2, 2024
1 parent 0908989 commit 1446a25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/utils/test_chat_template_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def fn(x: List[List[Union[str, int]]]):
"properties": {
"x": {
"type": "array",
"items": {"type": "array", "items": {"type": ["string", "integer"]}},
"items": {"type": "array", "items": {"type": ["integer", "string"]}},
"description": "The input",
}
},
Expand Down Expand Up @@ -455,13 +455,13 @@ def fn(
},
"y": {
"type": "array",
"items": {"type": ["string", "integer"]},
"items": {"type": ["integer", "string"]},
"nullable": True,
"description": "The second input. It's a big list with a single-line description.",
},
"z": {
"type": "array",
"prefixItems": [{"type": ["string", "integer"]}, {"type": "string"}],
"prefixItems": [{"type": ["integer", "string"]}, {"type": "string"}],
"description": "The third input. It's some kind of tuple with a default arg.",
},
},
Expand Down

0 comments on commit 1446a25

Please sign in to comment.