Skip to content

Commit b104cd2

Browse files
committed
Fixed library util
1 parent d039b14 commit b104cd2

File tree

4 files changed

+166
-66
lines changed

4 files changed

+166
-66
lines changed

backend/go.mod

Lines changed: 124 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,152 @@
11
module backendtest
22

3-
go 1.23.0
3+
go 1.24.0
4+
5+
toolchain go1.24.3
46

57
require (
6-
github.com/frikky/schemaless v0.0.7
8+
github.com/frikky/schemaless v0.0.18
79
github.com/gorilla/mux v1.8.1
8-
github.com/shuffle/shuffle-shared v0.5.70
10+
github.com/shuffle/shuffle-shared v0.8.96
911
)
1012

1113
require (
12-
cloud.google.com/go v0.110.0 // indirect
13-
cloud.google.com/go/compute v1.19.1 // indirect
14-
cloud.google.com/go/compute/metadata v0.2.3 // indirect
15-
cloud.google.com/go/datastore v1.11.0 // indirect
16-
cloud.google.com/go/iam v0.13.0 // indirect
17-
cloud.google.com/go/storage v1.28.1 // indirect
18-
dario.cat/mergo v1.0.0 // indirect
14+
cel.dev/expr v0.24.0 // indirect
15+
cloud.google.com/go v0.121.4 // indirect
16+
cloud.google.com/go/auth v0.16.3 // indirect
17+
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
18+
cloud.google.com/go/compute/metadata v0.7.0 // indirect
19+
cloud.google.com/go/datastore v1.20.0 // indirect
20+
cloud.google.com/go/iam v1.5.2 // indirect
21+
cloud.google.com/go/monitoring v1.24.2 // indirect
22+
cloud.google.com/go/scheduler v1.11.7 // indirect
23+
cloud.google.com/go/storage v1.55.0 // indirect
24+
dario.cat/mergo v1.0.2 // indirect
25+
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
26+
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.29.0 // indirect
27+
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.53.0 // indirect
28+
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.53.0 // indirect
1929
github.com/Masterminds/semver v1.5.0 // indirect
20-
github.com/Microsoft/go-winio v0.6.1 // indirect
21-
github.com/ProtonMail/go-crypto v1.1.3 // indirect
22-
github.com/adrg/strutil v0.2.3 // indirect
23-
github.com/algolia/algoliasearch-client-go/v3 v3.18.1 // indirect
24-
github.com/bradfitz/gomemcache v0.0.0-20230905024940-24af94b03874 // indirect
30+
github.com/Microsoft/go-winio v0.6.2 // indirect
31+
github.com/ProtonMail/go-crypto v1.3.0 // indirect
32+
github.com/adrg/strutil v0.3.1 // indirect
33+
github.com/algolia/algoliasearch-client-go/v3 v3.31.4 // indirect
34+
github.com/bradfitz/gomemcache v0.0.0-20250403215159-8d39553ac7cf // indirect
2535
github.com/bradfitz/slice v0.0.0-20180809154707-2b758aa73013 // indirect
36+
github.com/cenkalti/backoff/v5 v5.0.2 // indirect
37+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
2638
github.com/cloudflare/circl v1.6.1 // indirect
27-
github.com/cyphar/filepath-securejoin v0.2.5 // indirect
39+
github.com/cncf/xds/go v0.0.0-20250501225837-2ac532fd4443 // indirect
40+
github.com/containerd/errdefs v1.0.0 // indirect
41+
github.com/containerd/errdefs/pkg v0.3.0 // indirect
42+
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
43+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
44+
github.com/distribution/reference v0.6.0 // indirect
45+
github.com/docker/docker v28.3.2+incompatible // indirect
46+
github.com/docker/go-connections v0.5.0 // indirect
47+
github.com/docker/go-units v0.5.0 // indirect
48+
github.com/emicklei/go-restful/v3 v3.12.2 // indirect
2849
github.com/emirpasic/gods v1.18.1 // indirect
29-
github.com/frikky/kin-openapi v0.41.0 // indirect
50+
github.com/envoyproxy/go-control-plane/envoy v1.32.4 // indirect
51+
github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect
52+
github.com/felixge/httpsnoop v1.0.4 // indirect
53+
github.com/frikky/kin-openapi v0.42.0 // indirect
54+
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
3055
github.com/ghodss/yaml v1.0.0 // indirect
3156
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
32-
github.com/go-git/go-billy/v5 v5.6.0 // indirect
33-
github.com/go-git/go-git/v5 v5.13.0 // indirect
34-
github.com/go-openapi/jsonpointer v0.19.5 // indirect
35-
github.com/go-openapi/swag v0.19.5 // indirect
36-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
37-
github.com/golang/protobuf v1.5.3 // indirect
38-
github.com/google/go-cmp v0.6.0 // indirect
57+
github.com/go-git/go-billy/v5 v5.6.2 // indirect
58+
github.com/go-git/go-git/v5 v5.16.2 // indirect
59+
github.com/go-jose/go-jose/v4 v4.1.1 // indirect
60+
github.com/go-logr/logr v1.4.3 // indirect
61+
github.com/go-logr/stdr v1.2.2 // indirect
62+
github.com/go-openapi/jsonpointer v0.21.1 // indirect
63+
github.com/go-openapi/jsonreference v0.21.0 // indirect
64+
github.com/go-openapi/swag v0.23.1 // indirect
65+
github.com/gogo/protobuf v1.3.2 // indirect
66+
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
67+
github.com/golang/protobuf v1.5.4 // indirect
68+
github.com/google/gnostic-models v0.7.0 // indirect
69+
github.com/google/go-cmp v0.7.0 // indirect
3970
github.com/google/go-github/v28 v28.1.1 // indirect
40-
github.com/google/go-querystring v1.0.0 // indirect
41-
github.com/google/uuid v1.3.0 // indirect
42-
github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
43-
github.com/googleapis/gax-go/v2 v2.7.1 // indirect
71+
github.com/google/go-querystring v1.1.0 // indirect
72+
github.com/google/s2a-go v0.1.9 // indirect
73+
github.com/google/uuid v1.6.0 // indirect
74+
github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect
75+
github.com/googleapis/gax-go/v2 v2.15.0 // indirect
76+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1 // indirect
4477
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
78+
github.com/josharian/intern v1.0.0 // indirect
79+
github.com/json-iterator/go v1.1.12 // indirect
4580
github.com/kevinburke/ssh_config v1.2.0 // indirect
46-
github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e // indirect
81+
github.com/mailru/easyjson v0.9.0 // indirect
82+
github.com/moby/docker-image-spec v1.3.1 // indirect
83+
github.com/moby/sys/sequential v0.6.0 // indirect
84+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
85+
github.com/modern-go/reflect2 v1.0.2 // indirect
86+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
87+
github.com/opencontainers/go-digest v1.0.0 // indirect
88+
github.com/opencontainers/image-spec v1.1.1 // indirect
4789
github.com/opensearch-project/opensearch-go v1.1.0 // indirect
4890
github.com/opensearch-project/opensearch-go/v2 v2.3.0 // indirect
4991
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
50-
github.com/pjbgf/sha1cd v0.3.0 // indirect
51-
github.com/sashabaranov/go-openai v1.19.2 // indirect
92+
github.com/pjbgf/sha1cd v0.4.0 // indirect
93+
github.com/pkg/errors v0.9.1 // indirect
94+
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
95+
github.com/sashabaranov/go-openai v1.40.5 // indirect
5296
github.com/satori/go.uuid v1.2.0 // indirect
53-
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
54-
github.com/skeema/knownhosts v1.3.0 // indirect
97+
github.com/sendgrid/rest v2.6.9+incompatible // indirect
98+
github.com/sendgrid/sendgrid-go v3.16.1+incompatible // indirect
99+
github.com/sergi/go-diff v1.4.0 // indirect
100+
github.com/skeema/knownhosts v1.3.1 // indirect
55101
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e // indirect
102+
github.com/spf13/pflag v1.0.7 // indirect
103+
github.com/spiffe/go-spiffe/v2 v2.5.0 // indirect
104+
github.com/x448/float16 v0.8.4 // indirect
56105
github.com/xanzy/ssh-agent v0.3.3 // indirect
57-
go.opencensus.io v0.24.0 // indirect
58-
go4.org v0.0.0-20201209231011-d4a079459e60 // indirect
59-
golang.org/x/crypto v0.36.0 // indirect
60-
golang.org/x/mod v0.17.0 // indirect
61-
golang.org/x/net v0.38.0 // indirect
62-
golang.org/x/oauth2 v0.7.0 // indirect
63-
golang.org/x/sync v0.12.0 // indirect
64-
golang.org/x/sys v0.31.0 // indirect
65-
golang.org/x/text v0.23.0 // indirect
66-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
67-
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
68-
google.golang.org/api v0.114.0 // indirect
106+
github.com/zeebo/errs v1.4.0 // indirect
107+
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
108+
go.opentelemetry.io/contrib/detectors/gcp v1.37.0 // indirect
109+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.62.0 // indirect
110+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.62.0 // indirect
111+
go.opentelemetry.io/otel v1.37.0 // indirect
112+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.37.0 // indirect
113+
go.opentelemetry.io/otel/metric v1.37.0 // indirect
114+
go.opentelemetry.io/otel/sdk v1.37.0 // indirect
115+
go.opentelemetry.io/otel/sdk/metric v1.37.0 // indirect
116+
go.opentelemetry.io/otel/trace v1.37.0 // indirect
117+
go.opentelemetry.io/proto/otlp v1.7.0 // indirect
118+
go.yaml.in/yaml/v2 v2.4.2 // indirect
119+
go.yaml.in/yaml/v3 v3.0.4 // indirect
120+
go4.org v0.0.0-20230225012048-214862532bf5 // indirect
121+
golang.org/x/crypto v0.40.0 // indirect
122+
golang.org/x/net v0.42.0 // indirect
123+
golang.org/x/oauth2 v0.30.0 // indirect
124+
golang.org/x/sync v0.16.0 // indirect
125+
golang.org/x/sys v0.34.0 // indirect
126+
golang.org/x/term v0.33.0 // indirect
127+
golang.org/x/text v0.27.0 // indirect
128+
golang.org/x/time v0.12.0 // indirect
129+
google.golang.org/api v0.242.0 // indirect
69130
google.golang.org/appengine v1.6.8 // indirect
70-
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
71-
google.golang.org/grpc v1.56.3 // indirect
72-
google.golang.org/protobuf v1.33.0 // indirect
131+
google.golang.org/genproto v0.0.0-20250715232539-7130f93afb79 // indirect
132+
google.golang.org/genproto/googleapis/api v0.0.0-20250715232539-7130f93afb79 // indirect
133+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250715232539-7130f93afb79 // indirect
134+
google.golang.org/grpc v1.73.0 // indirect
135+
google.golang.org/protobuf v1.36.6 // indirect
136+
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
137+
gopkg.in/inf.v0 v0.9.1 // indirect
73138
gopkg.in/warnings.v0 v0.1.2 // indirect
74139
gopkg.in/yaml.v2 v2.4.0 // indirect
75140
gopkg.in/yaml.v3 v3.0.1 // indirect
141+
k8s.io/api v0.33.3 // indirect
142+
k8s.io/apimachinery v0.33.3 // indirect
143+
k8s.io/client-go v0.33.3 // indirect
144+
k8s.io/klog/v2 v2.130.1 // indirect
145+
k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b // indirect
146+
k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 // indirect
147+
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
148+
sigs.k8s.io/randfill v1.0.0 // indirect
149+
sigs.k8s.io/structured-merge-diff/v4 v4.7.0 // indirect
150+
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
151+
sigs.k8s.io/yaml v1.5.0 // indirect
76152
)

go.mod

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
module github.com/frikky/schemaless
22

3-
go 1.23.0
3+
go 1.24.0
4+
5+
toolchain go1.24.3
46

57
require (
6-
github.com/bradfitz/gomemcache v0.0.0-20230905024940-24af94b03874
8+
github.com/bradfitz/gomemcache v0.0.0-20250403215159-8d39553ac7cf
79
github.com/google/go-github/v28 v28.1.1
10+
github.com/osteele/liquid v1.7.0
811
github.com/patrickmn/go-cache v2.1.0+incompatible
9-
github.com/sashabaranov/go-openai v1.19.2
12+
github.com/sashabaranov/go-openai v1.40.5
1013
google.golang.org/appengine v1.6.8
1114
gopkg.in/yaml.v3 v3.0.1
1215
)
1316

1417
require (
15-
github.com/golang/protobuf v1.5.2 // indirect
16-
github.com/google/go-querystring v1.0.0 // indirect
17-
golang.org/x/crypto v0.35.0 // indirect
18-
google.golang.org/protobuf v1.33.0 // indirect
18+
github.com/golang/protobuf v1.5.4 // indirect
19+
github.com/google/go-querystring v1.1.0 // indirect
20+
github.com/osteele/tuesday v1.0.3 // indirect
21+
golang.org/x/crypto v0.40.0 // indirect
22+
google.golang.org/protobuf v1.36.6 // indirect
23+
gopkg.in/yaml.v2 v2.4.0 // indirect
1924
)

go.sum

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,37 @@
1-
github.com/bradfitz/gomemcache v0.0.0-20230905024940-24af94b03874 h1:N7oVaKyGp8bttX0bfZGmcGkjz7DLQXhAn3DNd3T0ous=
2-
github.com/bradfitz/gomemcache v0.0.0-20230905024940-24af94b03874/go.mod h1:r5xuitiExdLAJ09PR7vBVENGvp4ZuTBeWTGtxuX3K+c=
1+
github.com/bradfitz/gomemcache v0.0.0-20250403215159-8d39553ac7cf h1:TqhNAT4zKbTdLa62d2HDBFdvgSbIGB3eJE8HqhgiL9I=
2+
github.com/bradfitz/gomemcache v0.0.0-20250403215159-8d39553ac7cf/go.mod h1:r5xuitiExdLAJ09PR7vBVENGvp4ZuTBeWTGtxuX3K+c=
3+
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
4+
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
35
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
46
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
5-
github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
67
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
8+
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
9+
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
10+
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
711
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
812
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
913
github.com/google/go-github/v28 v28.1.1 h1:kORf5ekX5qwXO2mGzXXOjMe/g6ap8ahVe0sBEulhSxo=
1014
github.com/google/go-github/v28 v28.1.1/go.mod h1:bsqJWQX05omyWVmc00nEUql9mhQyv38lDZ8kPZcQVoM=
11-
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
1215
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
16+
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
17+
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
18+
github.com/osteele/liquid v1.7.0 h1:VsbPSchE5D5S5scylAIvERET4dnCxsO6IDri2oSJ5Dk=
19+
github.com/osteele/liquid v1.7.0/go.mod h1:xU0Z2dn2hOQIEFEWNmeltOmCtfhtoW/2fCyiNQeNG+U=
20+
github.com/osteele/tuesday v1.0.3 h1:SrCmo6sWwSgnvs1bivmXLvD7Ko9+aJvvkmDjB5G4FTU=
21+
github.com/osteele/tuesday v1.0.3/go.mod h1:pREKpE+L03UFuR+hiznj3q7j3qB1rUZ4XfKejwWFF2M=
1322
github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc=
1423
github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ=
15-
github.com/sashabaranov/go-openai v1.19.2 h1:+dkuCADSnwXV02YVJkdphY8XD9AyHLUWwk6V7LB6EL8=
16-
github.com/sashabaranov/go-openai v1.19.2/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg=
24+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
25+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
26+
github.com/sashabaranov/go-openai v1.40.5 h1:SwIlNdWflzR1Rxd1gv3pUg6pwPc6cQ2uMoHs8ai+/NY=
27+
github.com/sashabaranov/go-openai v1.40.5/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg=
28+
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
29+
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
1730
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
1831
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
1932
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
20-
golang.org/x/crypto v0.35.0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs=
21-
golang.org/x/crypto v0.35.0/go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ=
33+
golang.org/x/crypto v0.40.0 h1:r4x+VvoG5Fm+eJcxMaY8CQM7Lb0l1lsmjGBQ6s8BfKM=
34+
golang.org/x/crypto v0.40.0/go.mod h1:Qr1vMER5WyS2dfPHAlsOj01wgLbsyWtFn/aY+5+ZdxY=
2235
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
2336
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
2437
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
@@ -50,9 +63,11 @@ google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAs
5063
google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds=
5164
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
5265
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
53-
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
54-
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
66+
google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY=
67+
google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
5568
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
5669
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
70+
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
71+
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
5772
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
5873
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

translate.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,11 @@ func recurseFindKey(input map[string]interface{}, key string, depth int) (string
838838
// list. This is required
839839

840840
// If we get them recursed with .#.#
841-
return "schemaless_list"+string(marshalled), nil
841+
if len(marshalled) > 2 {
842+
return "schemaless_list"+string(marshalled), nil
843+
} else {
844+
return "", nil
845+
}
842846
} else {
843847
log.Printf("[WARNING] Schemaless reverse (8): Invalid key '%s' (%#v) found in list: %v. Should be something like '#0' or '#.key'. Not checking the list.", parsedKey, keys, string(marshalledMap))
844848
}

0 commit comments

Comments
 (0)