jaxrs: Fix swagger format for date/datetime. See
@@ -120,12 +120,17 @@ public class KillBillApiDefinition implements ReaderListener {
qp.getName().equals(JaxrsResource.QUERY_START_DATE) ||
qp.getName().equals(JaxrsResource.QUERY_END_DATE)) {
qp.setType("string");
+ // Yack... See #922
+ if (op.getOperationId().equals("getCatalogJson") || op.getOperationId().equals("setTestClockTime")) {
+ qp.setFormat("date-time");
+ } else {
qp.setFormat("date");
}
}
}
}
}
+ }
public static boolean requiresTenantInformation(final String path, final String httpMethod) {
boolean shouldSkipTenantInfoForRequests = (
