Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove allow list, generate everything #127

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading