diff --git a/.gitignore b/.gitignore index 1877423..b286c9c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .env .envrc .idea +.vscode coverage.out coverage/ bin/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a994002..5c01973 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -32,18 +32,18 @@ changelog: - "^test:" release: github: - owner: omissis + owner: sighupio name: go-jsonschema name_template: "{{ .Tag }}" prerelease: auto brews: - name: go-jsonschema repository: - owner: omissis + owner: sighupio name: homebrew-go-jsonschema skip_upload: auto folder: Formula - homepage: "https://gihub.com/omissis/go-jsonschema" + homepage: "https://gihub.com/sighupio/go-jsonschema" description: "go-jsonschema binary" test: | system "#{bin}/go-jsonschema" @@ -53,7 +53,7 @@ dockers: - skip_push: auto use: buildx image_templates: - - "omissis/go-jsonschema:{{ .Version }}-amd64" + - "sighupio/go-jsonschema:{{ .Version }}-amd64" build_flag_templates: - "--target=go-jsonschema" - "--label=org.opencontainers.image.created={{.Date}}" @@ -65,7 +65,7 @@ dockers: - skip_push: auto use: buildx image_templates: - - "omissis/go-jsonschema:{{ .Version }}-arm64v8" + - "sighupio/go-jsonschema:{{ .Version }}-arm64v8" build_flag_templates: - "--target=go-jsonschema" - "--label=org.opencontainers.image.created={{.Date}}" @@ -76,22 +76,22 @@ dockers: goarch: arm64 docker_manifests: - skip_push: auto - name_template: "omissis/go-jsonschema:latest" + name_template: "sighupio/go-jsonschema:latest" image_templates: - - "omissis/go-jsonschema:{{ .Version }}-amd64" - - "omissis/go-jsonschema:{{ .Version }}-arm64v8" + - "sighupio/go-jsonschema:{{ .Version }}-amd64" + - "sighupio/go-jsonschema:{{ .Version }}-arm64v8" - skip_push: auto - name_template: "omissis/go-jsonschema:{{ .Major }}" + name_template: "sighupio/go-jsonschema:{{ .Major }}" image_templates: - - "omissis/go-jsonschema:{{ .Version }}-amd64" - - "omissis/go-jsonschema:{{ .Version }}-arm64v8" + - "sighupio/go-jsonschema:{{ .Version }}-amd64" + - "sighupio/go-jsonschema:{{ .Version }}-arm64v8" - skip_push: auto - name_template: "omissis/go-jsonschema:{{ .Major }}.{{ .Minor }}" + name_template: "sighupio/go-jsonschema:{{ .Major }}.{{ .Minor }}" image_templates: - - "omissis/go-jsonschema:{{ .Version }}-amd64" - - "omissis/go-jsonschema:{{ .Version }}-arm64v8" + - "sighupio/go-jsonschema:{{ .Version }}-amd64" + - "sighupio/go-jsonschema:{{ .Version }}-arm64v8" - skip_push: auto - name_template: "omissis/go-jsonschema:{{ .Version }}" + name_template: "sighupio/go-jsonschema:{{ .Version }}" image_templates: - - "omissis/go-jsonschema:{{ .Version }}-amd64" - - "omissis/go-jsonschema:{{ .Version }}-arm64v8" + - "sighupio/go-jsonschema:{{ .Version }}-amd64" + - "sighupio/go-jsonschema:{{ .Version }}-arm64v8" diff --git a/.rules/.golangci.yml b/.rules/.golangci.yml index b9d195d..f915f7e 100644 --- a/.rules/.golangci.yml +++ b/.rules/.golangci.yml @@ -446,7 +446,7 @@ issues: # # Default: [] exclude: - - "local replacement are not allowed: github.com/atombender/go-jsonschema/tests/data" + - "local replacement are not allowed: github.com/sighupio/go-jsonschema/tests/data" # Excluding configuration per-path, per-linter, per-text and per-source exclude-rules: diff --git a/.tool-versions b/.tool-versions index 56064eb..0658760 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,8 +1,9 @@ adr-tools 3.0.0 golang 1.21.5 golangci-lint 1.55.2 -goreleaser 1.21.2 +goreleaser 1.24.0 hadolint 2.12.0 shellcheck 0.9.0 shfmt 3.7.0 yamllint 1.30.0 +make 4.4.1 diff --git a/Makefile b/Makefile index d20a9a4..1b35c30 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ _DOCKER_MAKEFILELINT_IMAGE=cytopia/checkmake:latest-0.5 _DOCKER_MARKDOWNLINT_IMAGE=davidanson/markdownlint-cli2:v0.6.0 _DOCKER_SHELLCHECK_IMAGE=koalaman/shellcheck-alpine:v0.9.0 _DOCKER_SHFMT_IMAGE=mvdan/shfmt:v3-alpine -_DOCKER_TOOLS_IMAGE=omissis/go-jsonschema:tools-latest +_DOCKER_TOOLS_IMAGE=sighupio/go-jsonschema:tools-latest _DOCKER_YAMLLINT_IMAGE=cytopia/yamllint:1 _PROJECT_DIRECTORY=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) diff --git a/README.md b/README.md index 5945994..dd6b1bc 100644 --- a/README.md +++ b/README.md @@ -3,34 +3,34 @@ This tool generates Go data types and structs that corresponds to definitions in the schema, along with unmarshalling code that validates the input JSON according to the schema's validation rules. ## Badges -[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/omissis/go-jsonschema?style=flat)](https://github.com/omissis/go-jsonschema/releases/latest) -[![GitHub Workflow Status (event)](https://img.shields.io/github/actions/workflow/status/omissis/go-jsonschema/development.yaml?style=flat)](https://github.com/omissis/go-jsonschema/actions?workflow=development) -[![License](https://img.shields.io/github/license/omissis/go-jsonschema?style=flat)](/LICENSE.md) -[![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/omissis/go-jsonschema?style=flat)](https://tip.golang.org/doc/go1.21) -[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/omissis/go-jsonschema?style=flat)](https://github.com/omissis/go-jsonschema) -[![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/omissis/go-jsonschema?style=flat)](https://github.com/omissis/go-jsonschema) -[![GitHub all releases](https://img.shields.io/github/downloads/omissis/go-jsonschema/total?style=flat)](https://github.com/omissis/go-jsonschema) -[![GitHub commit activity](https://img.shields.io/github/commit-activity/y/omissis/go-jsonschema?style=flat)](https://github.com/omissis/go-jsonschema/commits) +[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/sighupio/go-jsonschema?style=flat)](https://github.com/sighupio/go-jsonschema/releases/latest) +[![GitHub Workflow Status (event)](https://img.shields.io/github/actions/workflow/status/sighupio/go-jsonschema/development.yaml?style=flat)](https://github.com/sighupio/go-jsonschema/actions?workflow=development) +[![License](https://img.shields.io/github/license/sighupio/go-jsonschema?style=flat)](/LICENSE.md) +[![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/sighupio/go-jsonschema?style=flat)](https://tip.golang.org/doc/go1.21) +[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/sighupio/go-jsonschema?style=flat)](https://github.com/sighupio/go-jsonschema) +[![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/sighupio/go-jsonschema?style=flat)](https://github.com/sighupio/go-jsonschema) +[![GitHub all releases](https://img.shields.io/github/downloads/sighupio/go-jsonschema/total?style=flat)](https://github.com/sighupio/go-jsonschema) +[![GitHub commit activity](https://img.shields.io/github/commit-activity/y/sighupio/go-jsonschema?style=flat)](https://github.com/sighupio/go-jsonschema/commits) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat)](https://conventionalcommits.org) -[![Codecov](https://img.shields.io/codecov/c/gh/omissis/go-jsonschema?style=flat&token=lPWlXd3MVK)](https://codecov.io/gh/omissis/go-jsonschema) -[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/omissis/go-jsonschema?style=flat)](https://codeclimate.com/github/omissis/go-jsonschema) -[![Go Report Card](https://goreportcard.com/badge/github.com/omissis/go-jsonschema)](https://goreportcard.com/report/github.com/omissis/go-jsonschema) +[![Codecov](https://img.shields.io/codecov/c/gh/sighupio/go-jsonschema?style=flat&token=lPWlXd3MVK)](https://codecov.io/gh/sighupio/go-jsonschema) +[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/sighupio/go-jsonschema?style=flat)](https://codeclimate.com/github/sighupio/go-jsonschema) +[![Go Report Card](https://goreportcard.com/badge/github.com/sighupio/go-jsonschema)](https://goreportcard.com/report/github.com/sighupio/go-jsonschema) ## Installing -* **Download**: Get a release [here](https://github.com/atombender/go-jsonschema/releases). +* **Download**: Get a release [here](https://github.com/sighupio/go-jsonschema/releases). * **Install from source**: To install with Go 1.16+: ```shell -$ go get github.com/atombender/go-jsonschema/... -$ go install github.com/atombender/go-jsonschema@latest +$ go get github.com/sighupio/go-jsonschema/... +$ go install github.com/sighupio/go-jsonschema@latest ``` * **Install with Brew**: To install with [Homebrew](https://brew.sh): ```shell -$ brew tap omissis/go-jsonschema +$ brew tap sighupio/go-jsonschema $ brew install go-jsonschema ``` diff --git a/go.mod b/go.mod index 4ce786c..dc12554 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/atombender/go-jsonschema +module github.com/sighupio/go-jsonschema go 1.21 diff --git a/go.sum b/go.sum index 19a8ab9..40e003d 100644 --- a/go.sum +++ b/go.sum @@ -40,12 +40,6 @@ github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312 h1:UsFdQ3ZmlzS0Bq github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/exp v0.0.0-20231214170342-aacd6d4b4611 h1:qCEDpW1G+vcj3Y7Fy52pEM1AWm3abj8WimGYejI3SC4= -golang.org/x/exp v0.0.0-20231214170342-aacd6d4b4611/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= -golang.org/x/exp v0.0.0-20231219180239-dc181d75b848 h1:+iq7lrkxmFNBM7xx+Rae2W6uyPfhPeDWD+n+JgppptE= -golang.org/x/exp v0.0.0-20231219180239-dc181d75b848/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b h1:kLiC65FbiHWFAOu+lxwNPujcsl8VYyTYYEZnsOO1WK4= -golang.org/x/exp v0.0.0-20231226003508-02704c960a9b/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc h1:ao2WRsKSzW6KuUY9IWPwWahcHCgR0s52IfwutMfEbdM= golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/main.go b/main.go index 1c35d81..9a3833c 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/cobra" - "github.com/atombender/go-jsonschema/pkg/generator" + "github.com/sighupio/go-jsonschema/pkg/generator" ) const ( diff --git a/pkg/codegen/model.go b/pkg/codegen/model.go index 0229c7c..fc63882 100644 --- a/pkg/codegen/model.go +++ b/pkg/codegen/model.go @@ -6,7 +6,7 @@ import ( "golang.org/x/exp/slices" - "github.com/atombender/go-jsonschema/pkg/schemas" + "github.com/sighupio/go-jsonschema/pkg/schemas" "github.com/sanity-io/litter" ) @@ -26,7 +26,7 @@ type File struct { } func (p *File) Generate(out *Emitter) { - out.Comment("Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT.") + out.Comment("Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT.") out.Newline() p.Package.Generate(out) } diff --git a/pkg/codegen/utils.go b/pkg/codegen/utils.go index ed4b79b..366bb91 100644 --- a/pkg/codegen/utils.go +++ b/pkg/codegen/utils.go @@ -3,7 +3,7 @@ package codegen import ( "fmt" - "github.com/atombender/go-jsonschema/pkg/schemas" + "github.com/sighupio/go-jsonschema/pkg/schemas" ) var ( @@ -74,7 +74,7 @@ func PrimitiveTypeFromJSONSchemaType(jsType, format string, pointer bool) (Type, QualifiedName: "types", Imports: []Import{ { - QualifiedName: "github.com/atombender/go-jsonschema/pkg/types", + QualifiedName: "github.com/sighupio/go-jsonschema/pkg/types", }, }, }, @@ -89,7 +89,7 @@ func PrimitiveTypeFromJSONSchemaType(jsType, format string, pointer bool) (Type, QualifiedName: "types", Imports: []Import{ { - QualifiedName: "github.com/atombender/go-jsonschema/pkg/types", + QualifiedName: "github.com/sighupio/go-jsonschema/pkg/types", }, }, }, diff --git a/pkg/generator/formatter.go b/pkg/generator/formatter.go index cc1b23c..54b6550 100644 --- a/pkg/generator/formatter.go +++ b/pkg/generator/formatter.go @@ -1,7 +1,7 @@ package generator import ( - "github.com/atombender/go-jsonschema/pkg/codegen" + "github.com/sighupio/go-jsonschema/pkg/codegen" ) type formatter interface { diff --git a/pkg/generator/generate.go b/pkg/generator/generate.go index 93669e2..601b64f 100644 --- a/pkg/generator/generate.go +++ b/pkg/generator/generate.go @@ -7,9 +7,9 @@ import ( "os" "strings" - "github.com/atombender/go-jsonschema/internal/x/text" - "github.com/atombender/go-jsonschema/pkg/codegen" - "github.com/atombender/go-jsonschema/pkg/schemas" + "github.com/sighupio/go-jsonschema/internal/x/text" + "github.com/sighupio/go-jsonschema/pkg/codegen" + "github.com/sighupio/go-jsonschema/pkg/schemas" ) const ( diff --git a/pkg/generator/json_formatter.go b/pkg/generator/json_formatter.go index 3c5e193..3c7cdbf 100644 --- a/pkg/generator/json_formatter.go +++ b/pkg/generator/json_formatter.go @@ -3,7 +3,7 @@ package generator import ( "strings" - "github.com/atombender/go-jsonschema/pkg/codegen" + "github.com/sighupio/go-jsonschema/pkg/codegen" ) const ( diff --git a/pkg/generator/output.go b/pkg/generator/output.go index 035105d..e5d87d0 100644 --- a/pkg/generator/output.go +++ b/pkg/generator/output.go @@ -3,8 +3,8 @@ package generator import ( "fmt" - "github.com/atombender/go-jsonschema/pkg/codegen" - "github.com/atombender/go-jsonschema/pkg/schemas" + "github.com/sighupio/go-jsonschema/pkg/codegen" + "github.com/sighupio/go-jsonschema/pkg/schemas" ) type output struct { diff --git a/pkg/generator/schema_generator.go b/pkg/generator/schema_generator.go index 6133724..5fe0ec3 100644 --- a/pkg/generator/schema_generator.go +++ b/pkg/generator/schema_generator.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/atombender/go-jsonschema/pkg/codegen" - "github.com/atombender/go-jsonschema/pkg/schemas" + "github.com/sighupio/go-jsonschema/pkg/codegen" + "github.com/sighupio/go-jsonschema/pkg/schemas" ) type schemaGenerator struct { diff --git a/pkg/generator/utils.go b/pkg/generator/utils.go index 77aff3e..f8683a3 100644 --- a/pkg/generator/utils.go +++ b/pkg/generator/utils.go @@ -3,8 +3,8 @@ package generator import ( "sort" - "github.com/atombender/go-jsonschema/pkg/codegen" - "github.com/atombender/go-jsonschema/pkg/schemas" + "github.com/sighupio/go-jsonschema/pkg/codegen" + "github.com/sighupio/go-jsonschema/pkg/schemas" ) func sortPropertiesByName(props map[string]*schemas.Type) []string { diff --git a/pkg/generator/validator.go b/pkg/generator/validator.go index bd8d1fb..6004ff9 100644 --- a/pkg/generator/validator.go +++ b/pkg/generator/validator.go @@ -8,7 +8,7 @@ import ( "github.com/pkg/errors" "github.com/sanity-io/litter" - "github.com/atombender/go-jsonschema/pkg/codegen" + "github.com/sighupio/go-jsonschema/pkg/codegen" ) type validator interface { diff --git a/pkg/generator/yaml_formatter.go b/pkg/generator/yaml_formatter.go index aff67bb..6f0fdb2 100644 --- a/pkg/generator/yaml_formatter.go +++ b/pkg/generator/yaml_formatter.go @@ -3,7 +3,7 @@ package generator import ( "strings" - "github.com/atombender/go-jsonschema/pkg/codegen" + "github.com/sighupio/go-jsonschema/pkg/codegen" ) const ( diff --git a/pkg/schemas/parse.go b/pkg/schemas/parse.go index a0ceaf8..d8b3b2b 100644 --- a/pkg/schemas/parse.go +++ b/pkg/schemas/parse.go @@ -8,7 +8,7 @@ import ( "github.com/goccy/go-yaml" - "github.com/atombender/go-jsonschema/pkg/yamlutils" + "github.com/sighupio/go-jsonschema/pkg/yamlutils" ) func FromJSONFile(fileName string) (*Schema, error) { diff --git a/scripts/docker-build.sh b/scripts/docker-build.sh index 739268b..23c2753 100755 --- a/scripts/docker-build.sh +++ b/scripts/docker-build.sh @@ -3,4 +3,4 @@ set -e set -o errexit -o nounset -docker build --tag omissis/go-jsonschema:latest --file Dockerfile --target go-jsonschema . +docker build --tag sighupio/go-jsonschema:latest --file Dockerfile --target go-jsonschema . diff --git a/scripts/docker-tools.sh b/scripts/docker-tools.sh index d34cf1a..fcef158 100755 --- a/scripts/docker-tools.sh +++ b/scripts/docker-tools.sh @@ -3,4 +3,4 @@ set -e set -o errexit -o nounset -docker build --tag omissis/go-jsonschema:tools-latest --file Dockerfile --target tools . +docker build --tag sighupio/go-jsonschema:tools-latest --file Dockerfile --target tools . diff --git a/tests/data/core/array/array.go b/tests/data/core/array/array.go index 9b91d96..7b80720 100644 --- a/tests/data/core/array/array.go +++ b/tests/data/core/array/array.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/date/date.go b/tests/data/core/date/date.go index adbf75d..38cc508 100644 --- a/tests/data/core/date/date.go +++ b/tests/data/core/date/date.go @@ -1,10 +1,10 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test import "encoding/json" import "fmt" -import "github.com/atombender/go-jsonschema/pkg/types" +import "github.com/sighupio/go-jsonschema/pkg/types" type DateMyObject struct { // MyDate corresponds to the JSON schema field "myDate". diff --git a/tests/data/core/dateTime/dateTime.go b/tests/data/core/dateTime/dateTime.go index b2e40e0..0d46ac3 100644 --- a/tests/data/core/dateTime/dateTime.go +++ b/tests/data/core/dateTime/dateTime.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/ip/ip.go b/tests/data/core/ip/ip.go index 5794f27..2382b40 100644 --- a/tests/data/core/ip/ip.go +++ b/tests/data/core/ip/ip.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/nullableType/nullableType.go b/tests/data/core/nullableType/nullableType.go index 9d92356..06514d7 100644 --- a/tests/data/core/nullableType/nullableType.go +++ b/tests/data/core/nullableType/nullableType.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/object/object.go b/tests/data/core/object/object.go index cb85254..172d3d1 100644 --- a/tests/data/core/object/object.go +++ b/tests/data/core/object/object.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/objectAdditionalProperties/objectAdditionalProperties.go b/tests/data/core/objectAdditionalProperties/objectAdditionalProperties.go index 358312c..3dd7869 100644 --- a/tests/data/core/objectAdditionalProperties/objectAdditionalProperties.go +++ b/tests/data/core/objectAdditionalProperties/objectAdditionalProperties.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/objectEmpty/objectEmpty.go b/tests/data/core/objectEmpty/objectEmpty.go index 00e18d0..2f8644b 100644 --- a/tests/data/core/objectEmpty/objectEmpty.go +++ b/tests/data/core/objectEmpty/objectEmpty.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/objectNested/objectNested.go b/tests/data/core/objectNested/objectNested.go index 395ba87..e67065e 100644 --- a/tests/data/core/objectNested/objectNested.go +++ b/tests/data/core/objectNested/objectNested.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/primitives/primitives.go b/tests/data/core/primitives/primitives.go index 6567163..e6ecd81 100644 --- a/tests/data/core/primitives/primitives.go +++ b/tests/data/core/primitives/primitives.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/ref/ref.go b/tests/data/core/ref/ref.go index 195355c..e9a1467 100644 --- a/tests/data/core/ref/ref.go +++ b/tests/data/core/ref/ref.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/refExternalFile/refExternalFile.go b/tests/data/core/refExternalFile/refExternalFile.go index 8d4c635..9e56cb7 100644 --- a/tests/data/core/refExternalFile/refExternalFile.go +++ b/tests/data/core/refExternalFile/refExternalFile.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/refExternalFileWithDupe/refExternalFileWithDupe.go b/tests/data/core/refExternalFileWithDupe/refExternalFileWithDupe.go index 6e6a5c9..3168dc3 100644 --- a/tests/data/core/refExternalFileWithDupe/refExternalFileWithDupe.go +++ b/tests/data/core/refExternalFileWithDupe/refExternalFileWithDupe.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/refExternalFileWithScheme/refExternalFileWithScheme.go b/tests/data/core/refExternalFileWithScheme/refExternalFileWithScheme.go index fa04dd6..3d3e5f6 100644 --- a/tests/data/core/refExternalFileWithScheme/refExternalFileWithScheme.go +++ b/tests/data/core/refExternalFileWithScheme/refExternalFileWithScheme.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/refExternalFileYaml/refExternalFile.go b/tests/data/core/refExternalFileYaml/refExternalFile.go index 5ba90e9..5f7f7b1 100644 --- a/tests/data/core/refExternalFileYaml/refExternalFile.go +++ b/tests/data/core/refExternalFileYaml/refExternalFile.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/refOld/refOld.go b/tests/data/core/refOld/refOld.go index efcd81d..e15f658 100644 --- a/tests/data/core/refOld/refOld.go +++ b/tests/data/core/refOld/refOld.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/refToEnum/refToEnum.go b/tests/data/core/refToEnum/refToEnum.go index aac189a..02d05bb 100644 --- a/tests/data/core/refToEnum/refToEnum.go +++ b/tests/data/core/refToEnum/refToEnum.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/refToPrimitiveString/refToPrimitiveString.go b/tests/data/core/refToPrimitiveString/refToPrimitiveString.go index 5361082..ee6fb24 100644 --- a/tests/data/core/refToPrimitiveString/refToPrimitiveString.go +++ b/tests/data/core/refToPrimitiveString/refToPrimitiveString.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/core/time/time.go b/tests/data/core/time/time.go index f79004f..2380fb6 100644 --- a/tests/data/core/time/time.go +++ b/tests/data/core/time/time.go @@ -1,10 +1,10 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test import "encoding/json" import "fmt" -import "github.com/atombender/go-jsonschema/pkg/types" +import "github.com/sighupio/go-jsonschema/pkg/types" type TimeMyObject struct { // MyTime corresponds to the JSON schema field "myTime". diff --git a/tests/data/crossPackage/other/other.go b/tests/data/crossPackage/other/other.go index 72cda06..21ed6df 100644 --- a/tests/data/crossPackage/other/other.go +++ b/tests/data/crossPackage/other/other.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package other diff --git a/tests/data/crossPackage/schema/schema.go b/tests/data/crossPackage/schema/schema.go index ddc8198..d647f07 100644 --- a/tests/data/crossPackage/schema/schema.go +++ b/tests/data/crossPackage/schema/schema.go @@ -1,8 +1,8 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package schema -import other "github.com/atombender/go-jsonschema/tests/data/crossPackage/other" +import other "github.com/sighupio/go-jsonschema/tests/data/crossPackage/other" type Schema struct { // DefInOtherSchema corresponds to the JSON schema field "defInOtherSchema". diff --git a/tests/data/crossPackageNoOutput/schema/schema.go b/tests/data/crossPackageNoOutput/schema/schema.go index f488fa9..1509adb 100644 --- a/tests/data/crossPackageNoOutput/schema/schema.go +++ b/tests/data/crossPackageNoOutput/schema/schema.go @@ -1,8 +1,8 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package schema -import other "github.com/atombender/go-jsonschema/tests/helpers/other" +import other "github.com/sighupio/go-jsonschema/tests/helpers/other" type Schema struct { // DefInOtherSchema corresponds to the JSON schema field "defInOtherSchema". diff --git a/tests/data/extraImports/gopkgYAMLv3/gopkgYAMLv3.go b/tests/data/extraImports/gopkgYAMLv3/gopkgYAMLv3.go index 3f366e2..e7bfe9e 100644 --- a/tests/data/extraImports/gopkgYAMLv3/gopkgYAMLv3.go +++ b/tests/data/extraImports/gopkgYAMLv3/gopkgYAMLv3.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/misc/booleanAsSchema/booleanAsSchema.go b/tests/data/misc/booleanAsSchema/booleanAsSchema.go index 3d17e4b..a74e6ff 100644 --- a/tests/data/misc/booleanAsSchema/booleanAsSchema.go +++ b/tests/data/misc/booleanAsSchema/booleanAsSchema.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/misc/capitalization/capitalization.go b/tests/data/misc/capitalization/capitalization.go index 42ee5d9..e94587a 100644 --- a/tests/data/misc/capitalization/capitalization.go +++ b/tests/data/misc/capitalization/capitalization.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/misc/onlyModels/onlyModels.go b/tests/data/misc/onlyModels/onlyModels.go index 0499d09..6890538 100644 --- a/tests/data/misc/onlyModels/onlyModels.go +++ b/tests/data/misc/onlyModels/onlyModels.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/misc/specialCharacters/specialCharacters.go b/tests/data/misc/specialCharacters/specialCharacters.go index eb3eb26..b87043f 100644 --- a/tests/data/misc/specialCharacters/specialCharacters.go +++ b/tests/data/misc/specialCharacters/specialCharacters.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/misc/tags/tags.go b/tests/data/misc/tags/tags.go index 83ae7b4..6ff0170 100644 --- a/tests/data/misc/tags/tags.go +++ b/tests/data/misc/tags/tags.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/miscWithDefaults/case/case.go b/tests/data/miscWithDefaults/case/case.go index ed4b01e..545b982 100644 --- a/tests/data/miscWithDefaults/case/case.go +++ b/tests/data/miscWithDefaults/case/case.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/miscWithDefaults/caseDupes/caseDupes.go b/tests/data/miscWithDefaults/caseDupes/caseDupes.go index f97542b..863287f 100644 --- a/tests/data/miscWithDefaults/caseDupes/caseDupes.go +++ b/tests/data/miscWithDefaults/caseDupes/caseDupes.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/miscWithDefaults/cyclic/cyclic.go b/tests/data/miscWithDefaults/cyclic/cyclic.go index ab8bb98..0295652 100644 --- a/tests/data/miscWithDefaults/cyclic/cyclic.go +++ b/tests/data/miscWithDefaults/cyclic/cyclic.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/miscWithDefaults/cyclicAndRequired1/cyclicAndRequired1.go b/tests/data/miscWithDefaults/cyclicAndRequired1/cyclicAndRequired1.go index 7534c33..4d1f7d4 100644 --- a/tests/data/miscWithDefaults/cyclicAndRequired1/cyclicAndRequired1.go +++ b/tests/data/miscWithDefaults/cyclicAndRequired1/cyclicAndRequired1.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/miscWithDefaults/rootEmptyJustDefinitions/rootEmptyJustDefinitions.go b/tests/data/miscWithDefaults/rootEmptyJustDefinitions/rootEmptyJustDefinitions.go index 2081161..861d53c 100644 --- a/tests/data/miscWithDefaults/rootEmptyJustDefinitions/rootEmptyJustDefinitions.go +++ b/tests/data/miscWithDefaults/rootEmptyJustDefinitions/rootEmptyJustDefinitions.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/miscWithDefaults/rootIsArrayOfString/rootIsArrayOfString.go b/tests/data/miscWithDefaults/rootIsArrayOfString/rootIsArrayOfString.go index fbf1a6b..8ecde56 100644 --- a/tests/data/miscWithDefaults/rootIsArrayOfString/rootIsArrayOfString.go +++ b/tests/data/miscWithDefaults/rootIsArrayOfString/rootIsArrayOfString.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/nameFromTitle/ref/ref.go b/tests/data/nameFromTitle/ref/ref.go index b1efc1e..9fc1610 100644 --- a/tests/data/nameFromTitle/ref/ref.go +++ b/tests/data/nameFromTitle/ref/ref.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/nameFromTitle/refExternalFile/refExternalFile.go b/tests/data/nameFromTitle/refExternalFile/refExternalFile.go index 7d8b192..78139cb 100644 --- a/tests/data/nameFromTitle/refExternalFile/refExternalFile.go +++ b/tests/data/nameFromTitle/refExternalFile/refExternalFile.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/regressions/issue32/issue32.go b/tests/data/regressions/issue32/issue32.go index 6dc056b..63c8507 100644 --- a/tests/data/regressions/issue32/issue32.go +++ b/tests/data/regressions/issue32/issue32.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/regressions/issue51/issue51.go b/tests/data/regressions/issue51/issue51.go index dd51544..88094d4 100644 --- a/tests/data/regressions/issue51/issue51.go +++ b/tests/data/regressions/issue51/issue51.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/description/description.go b/tests/data/validation/description/description.go index 6f12de0..c40deaa 100644 --- a/tests/data/validation/description/description.go +++ b/tests/data/validation/description/description.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/enum/enum.go b/tests/data/validation/enum/enum.go index 616c795..3cc9bdc 100644 --- a/tests/data/validation/enum/enum.go +++ b/tests/data/validation/enum/enum.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/maxItems/maxItems.go b/tests/data/validation/maxItems/maxItems.go index 562642d..23cb3a3 100644 --- a/tests/data/validation/maxItems/maxItems.go +++ b/tests/data/validation/maxItems/maxItems.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/maxLength/maxLength.go b/tests/data/validation/maxLength/maxLength.go index 92cf124..172605b 100644 --- a/tests/data/validation/maxLength/maxLength.go +++ b/tests/data/validation/maxLength/maxLength.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/minItems/minItems.go b/tests/data/validation/minItems/minItems.go index 17df697..e9d09f4 100644 --- a/tests/data/validation/minItems/minItems.go +++ b/tests/data/validation/minItems/minItems.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/minLength/minLength.go b/tests/data/validation/minLength/minLength.go index 2502034..63f600e 100644 --- a/tests/data/validation/minLength/minLength.go +++ b/tests/data/validation/minLength/minLength.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/minMaxItems/minMaxItems.go b/tests/data/validation/minMaxItems/minMaxItems.go index 5f60d3e..2e400ae 100644 --- a/tests/data/validation/minMaxItems/minMaxItems.go +++ b/tests/data/validation/minMaxItems/minMaxItems.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/requiredFields/requiredFields.go b/tests/data/validation/requiredFields/requiredFields.go index b28390c..61748a9 100644 --- a/tests/data/validation/requiredFields/requiredFields.go +++ b/tests/data/validation/requiredFields/requiredFields.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/typeMultiple/typeMultiple.go b/tests/data/validation/typeMultiple/typeMultiple.go index 45452a3..ea9c453 100644 --- a/tests/data/validation/typeMultiple/typeMultiple.go +++ b/tests/data/validation/typeMultiple/typeMultiple.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/typed_default/typed_default.go b/tests/data/validation/typed_default/typed_default.go index b30c1bd..80c60a0 100644 --- a/tests/data/validation/typed_default/typed_default.go +++ b/tests/data/validation/typed_default/typed_default.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/typed_default_empty/typed_default_empty.go b/tests/data/validation/typed_default_empty/typed_default_empty.go index 322d269..91d4334 100644 --- a/tests/data/validation/typed_default_empty/typed_default_empty.go +++ b/tests/data/validation/typed_default_empty/typed_default_empty.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/validation/typed_default_enums/typed_default_enums.go b/tests/data/validation/typed_default_enums/typed_default_enums.go index 922d932..a21fa31 100644 --- a/tests/data/validation/typed_default_enums/typed_default_enums.go +++ b/tests/data/validation/typed_default_enums/typed_default_enums.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/yaml/yamlMultilineDescriptions/yamlMultilineDescriptions.go b/tests/data/yaml/yamlMultilineDescriptions/yamlMultilineDescriptions.go index 6b4a785..e34ca83 100644 --- a/tests/data/yaml/yamlMultilineDescriptions/yamlMultilineDescriptions.go +++ b/tests/data/yaml/yamlMultilineDescriptions/yamlMultilineDescriptions.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/data/yaml/yamlStructNameFromFile/yamlStructNameFromFile.go b/tests/data/yaml/yamlStructNameFromFile/yamlStructNameFromFile.go index 549aaff..618dfb7 100644 --- a/tests/data/yaml/yamlStructNameFromFile/yamlStructNameFromFile.go +++ b/tests/data/yaml/yamlStructNameFromFile/yamlStructNameFromFile.go @@ -1,4 +1,4 @@ -// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. +// Code generated by github.com/sighupio/go-jsonschema, DO NOT EDIT. package test diff --git a/tests/generation_test.go b/tests/generation_test.go index ca987fc..1242d07 100644 --- a/tests/generation_test.go +++ b/tests/generation_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - "github.com/atombender/go-jsonschema/pkg/generator" + "github.com/sighupio/go-jsonschema/pkg/generator" ) var ( @@ -55,12 +55,12 @@ func TestCrossPackage(t *testing.T) { cfg.SchemaMappings = []generator.SchemaMapping{ { SchemaID: "https://example.com/schema", - PackageName: "github.com/atombender/go-jsonschema/tests/helpers/schema", + PackageName: "github.com/sighupio/go-jsonschema/tests/helpers/schema", OutputName: "schema.go", }, { SchemaID: "https://example.com/other", - PackageName: "github.com/atombender/go-jsonschema/tests/data/crossPackage/other", + PackageName: "github.com/sighupio/go-jsonschema/tests/data/crossPackage/other", OutputName: "../other/other.go", }, } @@ -74,12 +74,12 @@ func TestCrossPackageNoOutput(t *testing.T) { cfg.SchemaMappings = []generator.SchemaMapping{ { SchemaID: "https://example.com/schema", - PackageName: "github.com/atombender/go-jsonschema/tests/helpers/schema", + PackageName: "github.com/sighupio/go-jsonschema/tests/helpers/schema", OutputName: "schema.go", }, { SchemaID: "https://example.com/other", - PackageName: "github.com/atombender/go-jsonschema/tests/helpers/other", + PackageName: "github.com/sighupio/go-jsonschema/tests/helpers/other", }, } testExampleFile(t, cfg, "./data/crossPackageNoOutput/schema/schema.json") diff --git a/tests/go.mod b/tests/go.mod index b7ffd7a..5532121 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -1,16 +1,16 @@ -module github.com/atombender/go-jsonschema/tests +module github.com/sighupio/go-jsonschema/tests go 1.21 replace ( - github.com/atombender/go-jsonschema => ../ - github.com/atombender/go-jsonschema/tests/helpers/other => ./helpers/other + github.com/sighupio/go-jsonschema => ../ + github.com/sighupio/go-jsonschema/tests/helpers/other => ./helpers/other ) require ( - github.com/atombender/go-jsonschema v0.0.0-00010101000000-000000000000 - github.com/atombender/go-jsonschema/tests/helpers/other v0.0.0-00010101000000-000000000000 github.com/magiconair/properties v1.8.7 + github.com/sighupio/go-jsonschema v0.0.0-00010101000000-000000000000 + github.com/sighupio/go-jsonschema/tests/helpers/other v0.0.0-00010101000000-000000000000 gopkg.in/yaml.v3 v3.0.1 ) @@ -22,7 +22,7 @@ require ( github.com/mitchellh/go-wordwrap v1.0.1 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/sanity-io/litter v1.5.5 // indirect - golang.org/x/exp v0.0.0-20231214170342-aacd6d4b4611 // indirect + golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc // indirect golang.org/x/sys v0.14.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect ) diff --git a/tests/go.sum b/tests/go.sum index 0122c93..0db0928 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -34,8 +34,8 @@ github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312 h1:UsFdQ3ZmlzS0Bq github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/exp v0.0.0-20231214170342-aacd6d4b4611 h1:qCEDpW1G+vcj3Y7Fy52pEM1AWm3abj8WimGYejI3SC4= -golang.org/x/exp v0.0.0-20231214170342-aacd6d4b4611/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= +golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc h1:ao2WRsKSzW6KuUY9IWPwWahcHCgR0s52IfwutMfEbdM= +golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= diff --git a/tests/helpers/other/go.mod b/tests/helpers/other/go.mod index 2ae8410..ccdf1bb 100644 --- a/tests/helpers/other/go.mod +++ b/tests/helpers/other/go.mod @@ -1,3 +1,3 @@ -module github.com/atombender/go-jsonschema/tests/example/other +module github.com/sighupio/go-jsonschema/tests/example/other go 1.21 diff --git a/tests/serializable_date_test.go b/tests/serializable_date_test.go index e1027b6..0dc5c7f 100644 --- a/tests/serializable_date_test.go +++ b/tests/serializable_date_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/atombender/go-jsonschema/pkg/types" + "github.com/sighupio/go-jsonschema/pkg/types" ) func TestSerializableDateMarshalsToJSON(t *testing.T) { diff --git a/tests/serializable_time_test.go b/tests/serializable_time_test.go index a87b38f..9547f95 100644 --- a/tests/serializable_time_test.go +++ b/tests/serializable_time_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/atombender/go-jsonschema/pkg/types" + "github.com/sighupio/go-jsonschema/pkg/types" ) func TestSerializableTimeMarshalsToJSON(t *testing.T) { diff --git a/tests/unmarshal_test.go b/tests/unmarshal_test.go index deb68ca..d930149 100644 --- a/tests/unmarshal_test.go +++ b/tests/unmarshal_test.go @@ -7,7 +7,7 @@ import ( "github.com/magiconair/properties/assert" yamlv3 "gopkg.in/yaml.v3" - test "github.com/atombender/go-jsonschema/tests/data/extraImports/gopkgYAMLv3" + test "github.com/sighupio/go-jsonschema/tests/data/extraImports/gopkgYAMLv3" ) func TestYamlV3Unmarshal(t *testing.T) { diff --git a/tests/validation_test.go b/tests/validation_test.go index d89b4f1..1c0c1a7 100644 --- a/tests/validation_test.go +++ b/tests/validation_test.go @@ -5,9 +5,9 @@ import ( "errors" "testing" - testMaxLength "github.com/atombender/go-jsonschema/tests/data/validation/maxLength" - testMinLength "github.com/atombender/go-jsonschema/tests/data/validation/minLength" - "github.com/atombender/go-jsonschema/tests/helpers" + testMaxLength "github.com/sighupio/go-jsonschema/tests/data/validation/maxLength" + testMinLength "github.com/sighupio/go-jsonschema/tests/data/validation/minLength" + "github.com/sighupio/go-jsonschema/tests/helpers" ) func TestMaxStringLength(t *testing.T) {