Project

General

Profile

Bug #22754

Content view filter rule name param is wrongly documented as enum

Added by Tomáš Strachota over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

The author probably intended to mark that the parameter accepts either string or array:

param :name, [String, Array], :desc => N_("package, package group, or docker tag names")

but apipie (and hammer) interprets this array syntax as enum and actually validates if the value is "String" or "Array".


Related issues

Related to Foreman - Bug #22753: Some API parameters are wrongly documented as enum typesClosed2018-03-02
Has duplicate Hammer CLI - Bug #23214: cannot create content view filter ruleDuplicate2018-04-11

History

#1 Updated by The Foreman Bot over 3 years ago

  • Assignee set to Tomáš Strachota
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7220 added

#2 Updated by Tomáš Strachota over 3 years ago

  • Related to Bug #22753: Some API parameters are wrongly documented as enum types added

#3 Updated by John Mitsch over 3 years ago

  • Legacy Backlogs Release (now unused) set to 338

#4 Updated by Tomáš Strachota over 3 years ago

  • Has duplicate Bug #23214: cannot create content view filter rule added

#5 Updated by Tomáš Strachota about 3 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF