Skip to content

Commit 35bb627

Browse files
authored
Fix links to OpenAPI spec after GitHub changes (#714)
1 parent 6a3b779 commit 35bb627

23 files changed

Lines changed: 28 additions & 28 deletions

openapi3/callback.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (c Callbacks) JSONLookup(token string) (interface{}, error) {
2626
}
2727

2828
// Callback is specified by OpenAPI/Swagger standard version 3.
29-
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#callbackObject
29+
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#callback-object
3030
type Callback map[string]*PathItem
3131

3232
// Validate returns an error if Callback does not comply with the OpenAPI spec.

openapi3/components.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
// Components is specified by OpenAPI/Swagger standard version 3.
13-
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#componentsObject
13+
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#components-object
1414
type Components struct {
1515
ExtensionProps `json:"-" yaml:"-"`
1616

openapi3/discriminator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
// Discriminator is specified by OpenAPI/Swagger standard version 3.
10-
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#discriminatorObject
10+
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#discriminator-object
1111
type Discriminator struct {
1212
ExtensionProps `json:"-" yaml:"-"`
1313

openapi3/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Package openapi3 parses and writes OpenAPI 3 specification documents.
22
//
3-
// See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md
3+
// See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md
44
package openapi3

openapi3/encoding.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
// Encoding is specified by OpenAPI/Swagger 3.0 standard.
12-
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#encodingObject
12+
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#encoding-object
1313
type Encoding struct {
1414
ExtensionProps `json:"-" yaml:"-"`
1515

openapi3/example.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (e Examples) JSONLookup(token string) (interface{}, error) {
2828
}
2929

3030
// Example is specified by OpenAPI/Swagger 3.0 standard.
31-
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#exampleObject
31+
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#example-object
3232
type Example struct {
3333
ExtensionProps `json:"-" yaml:"-"`
3434

openapi3/header.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (h Headers) JSONLookup(token string) (interface{}, error) {
2828
}
2929

3030
// Header is specified by OpenAPI/Swagger 3.0 standard.
31-
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#headerObject
31+
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#header-object
3232
type Header struct {
3333
Parameter
3434
}

openapi3/info.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
// Info is specified by OpenAPI/Swagger standard version 3.
11-
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#infoObject
11+
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#info-object
1212
type Info struct {
1313
ExtensionProps `json:"-" yaml:"-"`
1414

@@ -58,7 +58,7 @@ func (info *Info) Validate(ctx context.Context, opts ...ValidationOption) error
5858
}
5959

6060
// Contact is specified by OpenAPI/Swagger standard version 3.
61-
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#contactObject
61+
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#contact-object
6262
type Contact struct {
6363
ExtensionProps `json:"-" yaml:"-"`
6464

@@ -85,7 +85,7 @@ func (contact *Contact) Validate(ctx context.Context, opts ...ValidationOption)
8585
}
8686

8787
// License is specified by OpenAPI/Swagger standard version 3.
88-
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#licenseObject
88+
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#license-object
8989
type License struct {
9090
ExtensionProps `json:"-" yaml:"-"`
9191

openapi3/link.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (links Links) JSONLookup(token string) (interface{}, error) {
2828
var _ jsonpointer.JSONPointable = (*Links)(nil)
2929

3030
// Link is specified by OpenAPI/Swagger standard version 3.
31-
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#linkObject
31+
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#link-object
3232
type Link struct {
3333
ExtensionProps `json:"-" yaml:"-"`
3434

openapi3/media_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
// MediaType is specified by OpenAPI/Swagger 3.0 standard.
15-
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#mediaTypeObject
15+
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#media-type-object
1616
type MediaType struct {
1717
ExtensionProps `json:"-" yaml:"-"`
1818

0 commit comments

Comments
 (0)