Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
woutslakhorst committed Aug 9, 2023
1 parent fea9155 commit 90c871d
Show file tree
Hide file tree
Showing 6 changed files with 253 additions and 8 deletions.
2 changes: 1 addition & 1 deletion domain/credentials/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/nuts-foundation/nuts-registry-admin-demo/domain/sp"

ssi "github.com/nuts-foundation/go-did"
vcrApi "github.com/nuts-foundation/nuts-node/vcr/api/v2"
vcrApi "github.com/nuts-foundation/nuts-node/vcr/api/vcr/v2"
"github.com/nuts-foundation/nuts-registry-admin-demo/domain"
)

Expand Down
2 changes: 1 addition & 1 deletion domain/credentials/vcr.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package credentials

import (
ssi "github.com/nuts-foundation/go-did"
v2 "github.com/nuts-foundation/nuts-node/vcr/api/v2"
v2 "github.com/nuts-foundation/nuts-node/vcr/api/vcr/v2"
)

// SearchVCRequest is the request body for searching VCs
Expand Down
8 changes: 4 additions & 4 deletions domain/sp/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ func (svc Service) GetServices() (domain.Services, error) {
compoundServices := domain.Services{}
for _, service := range services {
compoundServices = append(compoundServices, domain.Service{
ServiceID: domain.ServiceID{Id: service.Id},
ServiceID: domain.ServiceID{Id: service.ID.String()},
ServiceProperties: domain.ServiceProperties{
ServiceEndpoint: service.ServiceEndpoint,
ServiceEndpoint: service.ServiceEndpoint.(map[string]interface{}),
Name: service.Type,
},
})
Expand All @@ -191,9 +191,9 @@ func (svc Service) AddService(service domain.ServiceProperties) (*domain.Service
}

return &domain.Service{
ServiceID: domain.ServiceID{Id: cs.Id},
ServiceID: domain.ServiceID{Id: cs.ID.String()},
ServiceProperties: domain.ServiceProperties{
ServiceEndpoint: cs.ServiceEndpoint,
ServiceEndpoint: cs.ServiceEndpoint.(map[string]interface{}),
Name: cs.Type,
},
}, nil
Expand Down
59 changes: 58 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/labstack/echo/v4 v4.11.1
github.com/lestrrat-go/jwx v1.2.26
github.com/nuts-foundation/go-did v0.6.3
github.com/nuts-foundation/nuts-node v1.1.0
github.com/nuts-foundation/nuts-node v1.0.1-0.20230809121706-4d8854384f5e
github.com/sirupsen/logrus v1.9.3
github.com/spf13/pflag v1.0.5
go.etcd.io/bbolt v1.3.7
Expand All @@ -18,28 +18,49 @@ require (

require (
github.com/Regis24GmbH/go-phonetics v1.0.0 // indirect
github.com/alexandrevicenzi/go-sse v1.6.0 // indirect
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
github.com/avast/retry-go/v4 v4.5.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bsm/redislock v0.7.2 // indirect
github.com/bwesterb/byteswriter v1.0.0 // indirect
github.com/bwesterb/go-atum v1.1.5 // indirect
github.com/bwesterb/go-exptable v1.0.0 // indirect
github.com/bwesterb/go-pow v1.0.0 // indirect
github.com/bwesterb/go-xmssmt v1.5.2 // indirect
github.com/bytedance/sonic v1.10.0-rc3 // indirect
github.com/cbroglie/mustache v1.4.0 // indirect
github.com/cenkalti/backoff/v3 v3.0.0 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
github.com/chenzhuoyu/iasm v0.9.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/edsrzf/mmap-go v1.1.0 // indirect
github.com/eknkc/basex v1.0.1 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/fxamacker/cbor v1.5.1 // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/gin-gonic/gin v1.9.1 // indirect
github.com/go-chi/chi/v5 v5.0.10 // indirect
github.com/go-co-op/gocron v1.14.0 // indirect
github.com/go-errors/errors v1.4.2 // indirect
github.com/go-jose/go-jose/v3 v3.0.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.14.1 // indirect
github.com/go-redis/redis/v8 v8.11.5 // indirect
github.com/go-redsync/redsync/v4 v4.8.1 // indirect
github.com/go-sql-driver/mysql v1.6.0 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/golang-jwt/jwt/v4 v4.4.1 // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/goodsign/monday v1.0.1 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-hclog v1.2.1 // indirect
Expand All @@ -52,7 +73,10 @@ require (
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hashicorp/vault/api v1.9.2 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jinzhu/gorm v1.9.16 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.16.7 // indirect
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
github.com/labstack/gommon v0.4.0 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
Expand All @@ -61,49 +85,82 @@ require (
github.com/lestrrat-go/httpcc v1.0.1 // indirect
github.com/lestrrat-go/iter v1.0.2 // indirect
github.com/lestrrat-go/option v1.0.1 // indirect
github.com/lib/pq v1.10.6 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/mdp/qrterminal/v3 v3.1.1 // indirect
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1 // indirect
github.com/minio/highwayhash v1.0.2 // indirect
github.com/minio/sha256-simd v0.1.1 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/mr-tron/base58 v1.1.3 // indirect
github.com/multiformats/go-multihash v0.0.11 // indirect
github.com/nats-io/jwt/v2 v2.4.1 // indirect
github.com/nats-io/nats-server/v2 v2.9.21 // indirect
github.com/nats-io/nats.go v1.28.0 // indirect
github.com/nats-io/nkeys v0.4.4 // indirect
github.com/nats-io/nuid v1.0.1 // indirect
github.com/nightlyone/lockfile v1.0.0 // indirect
github.com/nuts-foundation/crypto-ecies v0.0.0-20211207143025-5b84f9efce2b // indirect
github.com/nuts-foundation/go-leia/v2 v2.0.1 // indirect
github.com/nuts-foundation/go-leia/v4 v4.0.0 // indirect
github.com/nuts-foundation/go-stoabs v1.9.0 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.9 // indirect
github.com/piprate/json-gold v0.5.1-0.20230111113000-6ddbe6e6f19f // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/pquerna/cachecontrol v0.0.0-20180517163645-1555304b9b35 // indirect
github.com/privacybydesign/gabi v0.0.0-20221012093643-8e978bfbb252 // indirect
github.com/privacybydesign/irmago v0.12.6 // indirect
github.com/prometheus/client_golang v1.16.0 // indirect
github.com/prometheus/client_model v0.4.0 // indirect
github.com/prometheus/common v0.42.0 // indirect
github.com/prometheus/procfs v0.10.1 // indirect
github.com/redis/go-redis/v9 v9.0.5 // indirect
github.com/robfig/cron/v3 v3.0.1 // indirect
github.com/ryanuber/go-glob v1.0.0 // indirect
github.com/shengdoushi/base58 v1.0.0 // indirect
github.com/sietseringers/go-sse v0.0.0-20200801161811-e2cf2c63ca50 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/cobra v1.7.0 // indirect
github.com/stretchr/testify v1.8.4 // indirect
github.com/templexxx/cpu v0.0.9 // indirect
github.com/templexxx/xorsimd v0.4.1 // indirect
github.com/tidwall/gjson v1.14.1 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/timshannon/bolthold v0.0.0-20210913165410-232392fc8a6a // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/twmb/murmur3 v1.1.8 // indirect
github.com/ugorji/go/codec v1.2.11 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
github.com/x-cray/logrus-prefixed-formatter v0.5.2 // indirect
github.com/x448/float16 v0.8.4 // indirect
go.uber.org/mock v0.2.0 // indirect
golang.org/x/arch v0.4.0 // indirect
golang.org/x/net v0.12.0 // indirect
golang.org/x/sync v0.2.0 // indirect
golang.org/x/sys v0.11.0 // indirect
golang.org/x/term v0.11.0 // indirect
golang.org/x/text v0.12.0 // indirect
golang.org/x/time v0.3.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19 // indirect
google.golang.org/grpc v1.57.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/Regis24GmbH/go-diacritics.v1 v1.0.0 // indirect
gopkg.in/Regis24GmbH/go-diacritics.v2 v2.0.3 // indirect
gopkg.in/Regis24GmbH/go-phonetics.v2 v2.0.3 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
rsc.io/qr v0.2.0 // indirect
schneider.vip/problem v1.8.1 // indirect
)
Loading

0 comments on commit 90c871d

Please sign in to comment.