Skip to content

Should OpenAPIResponse responseCode be a String or changed to an int ? #278

Closed
@rbygrave

Description

@rbygrave

Since we are 2.x we could change this to an int if we desired.

https://github.com/avaje/avaje-http/blob/master/http-api/src/main/java/io/avaje/http/api/OpenAPIResponse.java#L45

public @interface OpenAPIResponse {

  /** the http status code of this response */
  String responseCode();

  /**
   * The description of the return value. By default uses the @return javadoc of the method as the
   * description
   */
  String description() default "";

  /**
   * The concrete type that that this endpoint returns. If status code is a 2xx code it will default
   * to the return type of the method
   */
  Class<?> type() default Void.class;
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions