- Notifications
You must be signed in to change notification settings - Fork899
fix: add required fields for OpenAI API#39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Pull Request Overview
This PR updates the JSON schema definitions for OpenAI function calling API validation by adding the required "additionalProperties: false" and mandatory field arrays.
- Updated schema in repositories.go to enforce "path" and "content".
- Updated schema in pullrequests.go to enforce "path", "position", and "body".
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
pkg/github/repositories.go | Adds strict object schema validation with "additionalProperties" false and required fields for file properties. |
pkg/github/pullrequests.go | Adds strict object schema validation with "additionalProperties" false and required fields for pull request review properties. |
Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused.Learn more
5eb969e
intomainUh oh!
There was an error while loading.Please reload this page.
The OpenAI function calling APIrequires that
additionalProperties: false
andrequired: []
be set for arrays.