Skip to content

Commit

Permalink
[builder] add clear cache method
Browse files Browse the repository at this point in the history
  • Loading branch information
fifteen-clement authored and schmurfy committed Mar 29, 2024
1 parent b43e951 commit 374022f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ func (b *Builder) Method(r chi.Router, pattern string, method string, reqObject
return nil
}

func (b *Builder) ClearCache() {
b.swagger.Components.Schemas = make(openapi3.Schemas)
}

func (b *Builder) GenerateJson(ctx context.Context, callbacksObject shared.ChipiCallbacks) ([]byte, error) {

swagger := *b.swagger
Expand Down

0 comments on commit 374022f

Please sign in to comment.