Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
toby merged 1 commit intomainfromschema-fix
Mar 24, 2025
Merged

fix: add required fields for OpenAI API#39

toby merged 1 commit intomainfromschema-fix
Mar 24, 2025

Conversation

toby
Copy link
Member

The OpenAI function calling APIrequires thatadditionalProperties: false andrequired: [] be set for arrays.

@CopilotCopilotAI review requested due to automatic review settingsMarch 24, 2025 23:15
Copy link
Contributor

@CopilotCopilotAI left a 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.

FileDescription
pkg/github/repositories.goAdds strict object schema validation with "additionalProperties" false and required fields for file properties.
pkg/github/pullrequests.goAdds 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

@tobytoby merged commit5eb969e intomainMar 24, 2025
11 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@SamMorrowDrumsSamMorrowDrumsSamMorrowDrums approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@toby@SamMorrowDrums

[8]ページ先頭

©2009-2025 Movatter.jp