- Notifications
You must be signed in to change notification settings - Fork3.2k
Commit82c4930
committed
fix: include empty properties in get_me schema for OpenAI compatibility
OpenAI strict mode requires the `properties` field to be present inobject schemas, even when empty. The jsonschema library uses omitemptywhich causes empty maps to be omitted during JSON serialization.This change uses json.RawMessage to bypass the library's serializationand explicitly include `"properties": {}` in the output.Fixes#15481 parentf197a9f commit82c4930
2 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments
Comments
(0)