We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4da8ff commit a517d43Copy full SHA for a517d43
apidef/oas/validator.go
@@ -289,8 +289,9 @@ type schemaModifier struct {
289
}
290
291
func (c *schemaModifier) cacheKey() string {
292
- allowedFields := slices.SortedFunc(slices.Values(c.allowedFields), strings.Compare)
293
- return fmt.Sprintf("%s:%#v", c.version, allowedFields)
+ allowedFields := slices.Clone(c.allowedFields)
+ slices.SortFunc(allowedFields, strings.Compare)
294
+ return c.version + ":" + strings.Join(allowedFields, ":")
295
296
297
func (c *schemaModifier) getSchema() ([]byte, error) {
0 commit comments