frankframework / frank-doc

Frank!Doc
https://frankdoc.frankframework.org
Apache License 2.0
4 stars 5 forks source link

Support var-args parameter on setters too #187

Closed jkosternl closed 4 months ago

jkosternl commented 4 months ago

The output of a run with the current code in the PR, on the ApiListener.setMethods(HttpMethod... methods) is:

    <xs:attribute name="methods">
      <xs:annotation>
        <xs:documentation>HTTP method(s) to listen to, separated by comma Default: GET</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:union memberTypes="HttpMethodAttributeValuesType variableRef" />
      </xs:simpleType>
    </xs:attribute>

I have a little doubt if this is okay 'enough'. The Enum is a list, but actually we can put in multiple values as a String. So, perhaps I should change it to type xs:string when a VarArg is supplied?