Skip to content

Commit 2b6e6b5

Browse files
author
Reuven Harrison
authored
Reset compiledPattern when updating Pattern (#327)
1 parent 3690b66 commit 2b6e6b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openapi3/schema.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ func (schema *Schema) WithMaxLengthDecodedBase64(i int64) *Schema {
448448

449449
func (schema *Schema) WithPattern(pattern string) *Schema {
450450
schema.Pattern = pattern
451+
schema.compiledPattern = nil
451452
return schema
452453
}
453454

0 commit comments

Comments
 (0)