Skip to content

Commit

Permalink
feat: remove allow list, generate everything
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov committed Mar 21, 2024
1 parent 31e6873 commit 5ad6943
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 350 deletions.
157 changes: 0 additions & 157 deletions internal/filter/filter.go

This file was deleted.

171 changes: 0 additions & 171 deletions internal/filter/filter_test.go

This file was deleted.

28 changes: 6 additions & 22 deletions internal/gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"golang.org/x/sync/errgroup"

"github.com/aiven/go-api-schemas/internal/convert"
"github.com/aiven/go-api-schemas/internal/filter"
"github.com/aiven/go-api-schemas/internal/pkg/types"
"github.com/aiven/go-api-schemas/internal/pkg/util"
)
Expand Down Expand Up @@ -40,14 +39,9 @@ func serviceTypes() error {
return err
}

filtered, err := filter.ServiceTypes(r)
if err != nil {
return err
}
out := make(map[string]types.UserConfigSchema, len(r))

out := map[string]types.UserConfigSchema{}

for k, v := range filtered {
for k, v := range r {
cv, err := convert.UserConfigSchema(v.UserConfigSchema)
if err != nil {
return err
Expand All @@ -72,14 +66,9 @@ func integrationTypes() error {
return err
}

filtered, err := filter.IntegrationTypes(r)
if err != nil {
return err
}

out := map[string]types.UserConfigSchema{}
out := make(map[string]types.UserConfigSchema, len(r))

for _, v := range filtered {
for _, v := range r {
cv, err := convert.UserConfigSchema(v.UserConfigSchema)
if err != nil {
return err
Expand All @@ -104,14 +93,9 @@ func integrationEndpointTypes() error {
return err
}

filtered, err := filter.IntegrationEndpointTypes(r)
if err != nil {
return err
}

out := map[string]types.UserConfigSchema{}
out := make(map[string]types.UserConfigSchema, len(r))

for _, v := range filtered {
for _, v := range r {
cv, err := convert.UserConfigSchema(v.UserConfigSchema)
if err != nil {
return err
Expand Down

0 comments on commit 5ad6943

Please sign in to comment.