Skip to content

Commit

Permalink
Merge pull request #604 from MUzairS15/generation
Browse files Browse the repository at this point in the history
[Generator] Remove processing on platform specific fields.
  • Loading branch information
MUzairS15 authored Oct 3, 2024
2 parents 3addd46 + da74630 commit 717f833
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions utils/component/openapi_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"
"errors"
"fmt"
"strings"

"cuelang.org/go/cue"
"cuelang.org/go/cue/cuecontext"
Expand Down Expand Up @@ -39,7 +38,7 @@ func GenerateFromOpenAPI(resource string, pkg models.Package) ([]component.Compo

parsedManifest := cuectx.BuildExpr(cueParsedManExpr)
definitions, err := utils.Lookup(parsedManifest, "components.schemas")

if err != nil {
return nil, err
}
Expand All @@ -58,7 +57,6 @@ func GenerateFromOpenAPI(resource string, pkg models.Package) ([]component.Compo
continue
}
kind, err := kindCue.String()
kind = strings.ToLower(kind)
if err != nil {
fmt.Printf("%v", err)
continue
Expand Down

0 comments on commit 717f833

Please sign in to comment.