@@ -84,7 +84,7 @@ func (info *Info) Validate(ctx context.Context, opts ...ValidationOption) error
8484 return errors .New ("value of title must be a non-empty string" )
8585 }
8686
87- return validateExtensions (info .Extensions )
87+ return validateExtensions (ctx , info .Extensions )
8888}
8989
9090// Contact is specified by OpenAPI/Swagger standard version 3.
@@ -132,9 +132,9 @@ func (contact *Contact) UnmarshalJSON(data []byte) error {
132132
133133// Validate returns an error if Contact does not comply with the OpenAPI spec.
134134func (contact * Contact ) Validate (ctx context.Context , opts ... ValidationOption ) error {
135- // ctx = WithValidationOptions(ctx, opts...)
135+ ctx = WithValidationOptions (ctx , opts ... )
136136
137- return validateExtensions (contact .Extensions )
137+ return validateExtensions (ctx , contact .Extensions )
138138}
139139
140140// License is specified by OpenAPI/Swagger standard version 3.
@@ -175,11 +175,11 @@ func (license *License) UnmarshalJSON(data []byte) error {
175175
176176// Validate returns an error if License does not comply with the OpenAPI spec.
177177func (license * License ) Validate (ctx context.Context , opts ... ValidationOption ) error {
178- // ctx = WithValidationOptions(ctx, opts...)
178+ ctx = WithValidationOptions (ctx , opts ... )
179179
180180 if license .Name == "" {
181181 return errors .New ("value of license name must be a non-empty string" )
182182 }
183183
184- return validateExtensions (license .Extensions )
184+ return validateExtensions (ctx , license .Extensions )
185185}
0 commit comments