Skip to content

Commit

Permalink
Merge pull request #108 from nytimes/fix-the-path
Browse files Browse the repository at this point in the history
fixing the import path to still rely on upper NYTimes
  • Loading branch information
jprobinson authored Apr 1, 2019
2 parents ee091f8 + 0ccb61a commit 96cd4a9
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 8 deletions.
16 changes: 14 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
language: go

cache:
directories:
- $GOPATH/pkg
before_install:
- export GOCACHE=$GOPATH/pkg/cache
install:
- go mod download
script:
- go test -v ./...
- go vet -v ./...
env:
global:
- GO111MODULE=on
go:
- tip
- 1.x
2 changes: 1 addition & 1 deletion compiler/compiler.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package compiler contains tools to take openapi.* definitions and
// compile them into protobuf.* structures.
package compiler
package compiler // github.com/NYTimes/openapi2proto/compiler

import (
"bytes"
Expand Down
10 changes: 10 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module github.com/NYTimes/openapi2proto

go 1.12

require (
github.com/dolmen-go/jsonptr v0.0.0-20190227181151-a830c2c3c0fe
github.com/pkg/errors v0.8.1
github.com/pmezard/go-difflib v1.0.0
gopkg.in/yaml.v2 v2.2.2
)
9 changes: 9 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
github.com/dolmen-go/jsonptr v0.0.0-20190227181151-a830c2c3c0fe h1:7UArST+CxXqtOBr8r+/jF8/jtP9I7CLMjYnLx/GEVH0=
github.com/dolmen-go/jsonptr v0.0.0-20190227181151-a830c2c3c0fe/go.mod h1:GG6FAkYtUFD/rqS31kfcho/lSCed6Gqm1X0uiIEU0tA=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
2 changes: 1 addition & 1 deletion internal/option/option.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package option
package option // github.com/NYTimes/openapi2proto/internal/option

type Option interface {
Name() string
Expand Down
2 changes: 1 addition & 1 deletion openapi/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ type Parameter struct {
Name string `yaml:"name" json:"name"`
Description string `yaml:"description" json:"description"`
Enum []string `yaml:"enum,omitempty" json:"enum,omitempty"`
Format string `yaml:"format,omitempty", json:"format,omitempty"`
Format string `yaml:"format,omitempty" json:"format,omitempty"`
In string `yaml:"in,omitempty" json:"in,omitempty"`
Items *Schema `yaml:"items,omitempty" json:"items,omitempty"`
ProtoTag int `yaml:"x-proto-tag" json:"x-proto-tag"`
Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package openapi contains tools to read in OpenAPI specifications
// so that they can be passed to the openapi2proto compiler
package openapi
package openapi // github.com/NYTimes/openapi2proto/openapi

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion protobuf/protobuf.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package protobuf contains structures to represent a protobuf
// definition, and tools to create textual representation of the
// definition.
package protobuf
package protobuf // github.com/NYTimes/openapi2proto/protobuf
2 changes: 1 addition & 1 deletion transpiler.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package openapi2proto
package openapi2proto // github.com/NYTimes/openapi2proto

import (
"io"
Expand Down

0 comments on commit 96cd4a9

Please sign in to comment.