Skip to content

Commit

Permalink
- patched e2e test cases
Browse files Browse the repository at this point in the history
- removing Style logic
  • Loading branch information
adranwit committed Nov 11, 2024
1 parent d910f8d commit 6069a01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/translator/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ func (s *Service) updateExplicitInputType(resource *Resource, viewlet *Viewlet)
}
inputState.Append(resource.State[i])
if item.In.Kind == state.KindRequestBody {
item.Schema.SetType(rootViewlet.View.Schema.Type())
if rootViewlet.View != nil && rootViewlet.View.Schema != nil {
item.Schema.SetType(rootViewlet.View.Schema.Type())
}
}
}

Expand Down

0 comments on commit 6069a01

Please sign in to comment.