@@ -65,18 +65,17 @@ func (s *JsonProcessingStep) formatTo(buf *bytes.Buffer) {
6565 buf .WriteString ("\n - " )
6666 buf .WriteString (s .Name )
6767 if s .Description != "" {
68- buf .WriteString (": \n Description: " )
68+ buf .WriteString ("\n Description: " )
6969 buf .WriteString (s .Description )
7070 }
7171 if len (s .Params ) > 0 {
7272 buf .WriteString ("\n Parameters:" )
7373 for _ , param := range s .Params {
74- buf .WriteString ("\n " )
7574 requiredOrOptional := "required"
7675 if ! param .Required {
7776 requiredOrOptional = fmt .Sprintf ("optional, default: %v" , param .Default )
7877 }
79- fmt .Fprintf (buf , "\n %v (%v): %v" , param .Name , requiredOrOptional , param .Type )
78+ fmt .Fprintf (buf , "\n %v (%v), %v" , param .Name , param .Type , requiredOrOptional )
8079 }
8180 }
8281}
@@ -117,7 +116,7 @@ func (r ProcessorRegistry) formatSection(buf *bytes.Buffer, steps ProcessingStep
117116 for _ , step := range steps {
118117 step .formatTo (buf )
119118 }
120- return true
119+ started = true
121120 }
122121 return started
123122}
@@ -129,7 +128,7 @@ func (r ProcessorRegistry) FormatCapabilities(out io.Writer) error {
129128 started = r .formatSection (& buf , steps , "Processing steps:" , started )
130129 started = r .formatSection (& buf , batchSteps , "Batch processing steps:" , started )
131130 started = r .formatSection (& buf , forks , "Forks:" , started )
132- buf .WriteString ("\n " )
131+ buf .WriteString ("\n \n " )
133132 _ , err := buf .WriteTo (out )
134133 return err
135134}
0 commit comments