Skip to content

Commit

Permalink
Use new impl function, pass through set rather than slice
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Nov 5, 2024
1 parent 36b0de4 commit 26d8ac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/composableschemadsl/compiler/importer.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ func ImportFile(importContext *ImportContext) (*CompiledSchema, error) {
// TODO: do we want this sort of logging here?
log.Trace().Str("schema", string(schemaBytes)).Str("file", filePath).Msg("read schema from file")

compiled, err := Compile(InputSchema{
compiled, err := compileImpl(InputSchema{
// TODO: should this point to the schema file? What is this for?
Source: input.Source("schema"),
SchemaString: string(schemaBytes),
},
importContext.names,
AllowUnprefixedObjectType(),
ExistingNames(importContext.names.AsSlice()),
SourceFolder(newSourceFolder),
)
if err != nil {
Expand Down

0 comments on commit 26d8ac0

Please sign in to comment.