Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

No support for optional request/param in generated client #69

@glassfishrobot

Description

@glassfishrobot

It would be nice to support non-required parameters in client generation.
Currently when in the wadl there are optional parameter in request ("required" attribute is missing) e.g.

<request> 
   <param name="startPeriod" type="xsd:dateTime" style="query" />
   <param name="endPeriod" type="xsd:dateTime" style="query" />
</request>

The generated client doesn't support to give one of them. Either all or none.

**GeneratedClient signatures**public<T >T getAsRepresentationName(String startperiod, String endperiod, Class<T> returnType);
public<T >T getAsRepresentationName(Class<T> returnType);

If a null is given to a parameter an exception is thrown.

java.lang.IllegalArgumentException: One or more of query value parameters are null.

Affected Versions

[1.1.4]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions