Skip to content

Commit 00398d1

Browse files
committed
fix: Update common to 0.1.1. Add file url to ApiSpecDoc model.
1 parent 5acef29 commit 00398d1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/golang/mock v1.6.0
88
github.com/kelseyhightower/envconfig v1.4.0
99
github.com/rabbitmq/amqp091-go v1.4.0
10-
github.com/rog-golang-buddies/api_hub_common v0.1.0
10+
github.com/rog-golang-buddies/api_hub_common v0.1.1
1111
github.com/stretchr/testify v1.8.0
1212
github.com/wagslane/go-rabbitmq v0.10.0
1313
go.uber.org/zap v1.23.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
2828
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2929
github.com/rabbitmq/amqp091-go v1.4.0 h1:T2G+J9W9OY4p64Di23J6yH7tOkMocgnESvYeBjuG9cY=
3030
github.com/rabbitmq/amqp091-go v1.4.0/go.mod h1:JsV0ofX5f1nwOGafb8L5rBItt9GyhfQfcJj+oyz0dGg=
31-
github.com/rog-golang-buddies/api_hub_common v0.1.0 h1:th96e/uCNgjJcG9RNa/tnXFm+9JyJ1u/WZCku3GRt/U=
32-
github.com/rog-golang-buddies/api_hub_common v0.1.0/go.mod h1:lK3L/e21s8rYwOZYrSrnP3yaAST3fgKlh00WW6igI0s=
31+
github.com/rog-golang-buddies/api_hub_common v0.1.1 h1:z9DLRTj2+E+rHJHGBGCOs/1svNvMPMYw3Fq/qlB94Ew=
32+
github.com/rog-golang-buddies/api_hub_common v0.1.1/go.mod h1:lK3L/e21s8rYwOZYrSrnP3yaAST3fgKlh00WW6igI0s=
3333
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
3434
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
3535
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=

internal/parse/converter.go

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func (c *ConverterImpl) Convert(ctx context.Context, file *fileresource.FileReso
3232
if err != nil {
3333
return nil, err
3434
}
35+
apiSpec.Url = file.Link
3536
c.log.Infof("file %s successfully parsed", file.Link)
3637

3738
return apiSpec, nil

0 commit comments

Comments
 (0)