File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed 
resources/item-type-definition Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,11 @@ func DeleteCmd(options *clioptions.CLIOptions) *cobra.Command {
8282
8383	ITDFlagName  :=  options .AddItemTypeDefinitionNameFlag (cmd .Flags ())
8484
85- 	cmd .MarkFlagRequired (ITDFlagName )
85+ 	err  :=  cmd .MarkFlagRequired (ITDFlagName )
86+ 	if  err  !=  nil  {
87+ 		// the error is only due to a programming error (missing command flag), hence panic 
88+ 		panic (err )
89+ 	}
8690
8791	return  cmd 
8892}
Original file line number Diff line number Diff line change @@ -69,7 +69,11 @@ func GetCmd(options *clioptions.CLIOptions) *cobra.Command {
6969
7070	nameFlagName  :=  options .AddItemTypeDefinitionNameFlag (cmd .Flags ())
7171
72- 	cmd .MarkFlagRequired (nameFlagName )
72+ 	err  :=  cmd .MarkFlagRequired (nameFlagName )
73+ 	if  err  !=  nil  {
74+ 		// the error is only due to a programming error (missing command flag), hence panic 
75+ 		panic (err )
76+ 	}
7377
7478	return  cmd 
7579}
Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ type GenericItemTypeDefinition map[string]interface{}
3434
3535type  ItemTypeDefinitionMetadataVisibility  struct  {
3636	Scope  string    `json:"scope"` 
37- 	Ids    []string  `json:"ids"` 
37+ 	IDs    []string  `json:"ids"`   //nolint: tagliatelle 
3838}
3939
4040type  ItemTypeDefinitionMetadataNamespace  struct  {
4141	Scope  string  `json:"scope"` 
42- 	Id     string  `json:"id"` 
42+ 	ID     string  `json:"id"` 
4343}
4444
4545type  ItemTypeDefinitionMetadataPublisher  struct  {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments