Skip to content

Commit

Permalink
Reset compiledPattern when updating Pattern (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reuven Harrison authored Mar 20, 2021
1 parent 3690b66 commit 2b6e6b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openapi3/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ func (schema *Schema) WithMaxLengthDecodedBase64(i int64) *Schema {

func (schema *Schema) WithPattern(pattern string) *Schema {
schema.Pattern = pattern
schema.compiledPattern = nil
return schema
}

Expand Down

0 comments on commit 2b6e6b5

Please sign in to comment.