Skip to content

Commit

Permalink
chore: move time-related types to the pkg folder
Browse files Browse the repository at this point in the history
  • Loading branch information
omissis committed Oct 5, 2023
1 parent 9f6d0a5 commit 4be8c74
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/codegen/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func PrimitiveTypeFromJSONSchemaType(jsType, format string, pointer bool) (Type,
QualifiedName: "types",
Imports: []Import{
{
QualifiedName: "github.com/atombender/go-jsonschema/types",
QualifiedName: "github.com/atombender/go-jsonschema/pkg/types",
},
},
},
Expand All @@ -89,7 +89,7 @@ func PrimitiveTypeFromJSONSchemaType(jsType, format string, pointer bool) (Type,
QualifiedName: "types",
Imports: []Import{
{
QualifiedName: "github.com/atombender/go-jsonschema/types",
QualifiedName: "github.com/atombender/go-jsonschema/pkg/types",
},
},
},
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/data/core/date/date.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/data/core/time/time.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/serializable_date_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/atombender/go-jsonschema/types"
"github.com/atombender/go-jsonschema/pkg/types"
)

func TestSerializableDateMarshalsToJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion tests/serializable_time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/atombender/go-jsonschema/types"
"github.com/atombender/go-jsonschema/pkg/types"
)

func TestSerializableTimeMarshalsToJSON(t *testing.T) {
Expand Down

0 comments on commit 4be8c74

Please sign in to comment.