Project

General

Profile

Feature #34164

Add an enum plugin validator

Added by Ewoud Kohl van Wijngaarden 12 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Category:
Plugins
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

For some settings you really want to check if a value is one of some options. An enum validator could easily enforce that.


Related issues

Related to Smart Proxy - Feature #29468: Add a default URL validator for pluginsClosed

Associated revisions

Revision 685c026e (diff)
Added by Ewoud Kohl van Wijngaarden 10 months ago

Fixes #34164 - Add enum plugin validator

This allows using:

validate :setting, enum: %w[first second]

History

#1 Updated by Ewoud Kohl van Wijngaarden 12 months ago

  • Related to Feature #29468: Add a default URL validator for plugins added

#2 Updated by The Foreman Bot 10 months ago

  • Assignee set to Ewoud Kohl van Wijngaarden
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/809 added

#3 Updated by The Foreman Bot 10 months ago

  • Fixed in Releases 3.2.0 added

#4 Updated by Ewoud Kohl van Wijngaarden 10 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF