Closed WeiAnAn closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.01%. Comparing base (
774fc9d
) to head (7831bde
). Report is 50 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thank you for the PR! Looks good, and here's a minimal example validating the float64 argument https://go.dev/play/p/VRMIyt9Zjqz
Describe the change Fix the jsonschema validation failed failure on the integer field.
Provide OpenAI documentation link
Describe your solution Follow the #837 instruction. Because go unmarshalls all numbers as float64, we should check the value is an integer.
Tests Add
jsonschema.Integer
cases, include a success and a failed case.Additional context Add any other context or screenshots or logs about your pull request here. If the pull request relates to an open issue, please link to it.
Issue: #837