Skip to content

Commit 1da4078

Browse files
style: fix go fmt formatting
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0bc5144 commit 1da4078

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

openapi3/openapi3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type T struct {
1818

1919
OpenAPI string `json:"openapi" yaml:"openapi"` // Required
2020
Components *Components `json:"components,omitempty" yaml:"components,omitempty"`
21-
Info *Info `json:"info" yaml:"info"` // Required
21+
Info *Info `json:"info" yaml:"info"` // Required
2222
Paths *Paths `json:"paths,omitempty" yaml:"paths,omitempty"` // Required in 3.0, optional in 3.1
2323
Security SecurityRequirements `json:"security,omitempty" yaml:"security,omitempty"`
2424
Servers Servers `json:"servers,omitempty" yaml:"servers,omitempty"`

openapi3/schema.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ type Schema struct {
157157
DependentRequired map[string][]string `json:"dependentRequired,omitempty" yaml:"dependentRequired,omitempty"`
158158

159159
// JSON Schema 2020-12 identity/referencing keywords
160-
SchemaID string `json:"$id,omitempty" yaml:"$id,omitempty"`
161-
Anchor string `json:"$anchor,omitempty" yaml:"$anchor,omitempty"`
162-
DynamicRef string `json:"$dynamicRef,omitempty" yaml:"$dynamicRef,omitempty"`
163-
DynamicAnchor string `json:"$dynamicAnchor,omitempty" yaml:"$dynamicAnchor,omitempty"`
160+
SchemaID string `json:"$id,omitempty" yaml:"$id,omitempty"`
161+
Anchor string `json:"$anchor,omitempty" yaml:"$anchor,omitempty"`
162+
DynamicRef string `json:"$dynamicRef,omitempty" yaml:"$dynamicRef,omitempty"`
163+
DynamicAnchor string `json:"$dynamicAnchor,omitempty" yaml:"$dynamicAnchor,omitempty"`
164164

165165
// JSON Schema 2020-12 content vocabulary
166166
ContentMediaType string `json:"contentMediaType,omitempty" yaml:"contentMediaType,omitempty"`

0 commit comments

Comments
 (0)