Skip to content

Fix OpenAPI schema by adding missing tags#41

Merged
moutonjeremy merged 3 commits intomainfrom
fix-openapi-schema
Mar 10, 2026
Merged

Fix OpenAPI schema by adding missing tags#41
moutonjeremy merged 3 commits intomainfrom
fix-openapi-schema

Conversation

@moutonjeremy
Copy link
Member

Add missing YAML tags to the SecurityScheme struct for better OpenAPI schema compliance.

Copilot AI review requested due to automatic review settings March 10, 2026 21:39
Copy link
Contributor

Copilot AI 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 improves OpenAPI YAML spec correctness by ensuring SecurityScheme fields serialize with the proper OpenAPI key casing when the spec is served as YAML.

Changes:

  • Added yaml struct tags to SecurityScheme fields to match existing json tags.
  • Ensured omitempty behavior is consistent across JSON and YAML outputs for optional fields.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@moutonjeremy moutonjeremy merged commit 68c8c5a into main Mar 10, 2026
4 checks passed
@moutonjeremy moutonjeremy deleted the fix-openapi-schema branch March 10, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants