mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 02:55:19 +00:00
Merge branch 'DevFactory-staging/serializable-classes-should-have-a-version-id-fix-3'
This commit is contained in:
commit
cafea6f726
@ -26,6 +26,8 @@ import java.io.IOException;
|
|||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
public class Bootstrap extends HttpServlet {
|
public class Bootstrap extends HttpServlet {
|
||||||
|
private static final long serialVersionUID = 1400930071893332856L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void init(ServletConfig config) throws ServletException {
|
public void init(ServletConfig config) throws ServletException {
|
||||||
ServletContext context = config.getServletContext();
|
ServletContext context = config.getServletContext();
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
package io.swagger.generator.exception;
|
package io.swagger.generator.exception;
|
||||||
|
|
||||||
public class ApiException extends Exception {
|
public class ApiException extends Exception {
|
||||||
|
private static final long serialVersionUID = -5085112752305370687L;
|
||||||
private int code;
|
private int code;
|
||||||
|
|
||||||
public ApiException(int code, String msg) {
|
public ApiException(int code, String msg) {
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
package io.swagger.generator.exception;
|
package io.swagger.generator.exception;
|
||||||
|
|
||||||
public class BadRequestException extends ApiException {
|
public class BadRequestException extends ApiException {
|
||||||
|
private static final long serialVersionUID = -5540416398447252055L;
|
||||||
private int code;
|
private int code;
|
||||||
|
|
||||||
public BadRequestException(int code, String msg) {
|
public BadRequestException(int code, String msg) {
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
package io.swagger.generator.exception;
|
package io.swagger.generator.exception;
|
||||||
|
|
||||||
public class NotFoundException extends ApiException {
|
public class NotFoundException extends ApiException {
|
||||||
|
private static final long serialVersionUID = -1223255119112336573L;
|
||||||
private int code;
|
private int code;
|
||||||
|
|
||||||
public NotFoundException(int code, String msg) {
|
public NotFoundException(int code, String msg) {
|
||||||
|
@ -3,6 +3,7 @@ package io.swagger.generator.util;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class ValidationException extends Exception {
|
public class ValidationException extends Exception {
|
||||||
|
private static final long serialVersionUID = 6861195361018260380L;
|
||||||
private int code;
|
private int code;
|
||||||
private String msg;
|
private String msg;
|
||||||
private List<ValidationMessage> errors;
|
private List<ValidationMessage> errors;
|
||||||
|
Loading…
Reference in New Issue
Block a user