@@ -21,10 +21,6 @@ public static class RequestValidator implements io.envoyproxy.pgv.ValidatorImpl<
2121
2222
2323
24- private final com .soustify .input .Input .StatusRequest [] EN_STATUS__IN = new com .soustify .input .Input .StatusRequest []{
25- com .soustify .input .Input .StatusRequest .forNumber (0 ),
26- com .soustify .input .Input .StatusRequest .forNumber (1 ),
27- };
2824
2925
3026
@@ -42,16 +38,14 @@ public static class RequestValidator implements io.envoyproxy.pgv.ValidatorImpl<
4238
4339
4440
45-
46-
4741
4842
4943
5044 public void assertValid (com .soustify .addresses .Addresses .Request proto , io .envoyproxy .pgv .ValidatorIndex index ) throws io .envoyproxy .pgv .ValidationException {
5145
5246 io .envoyproxy .pgv .StringValidation .uuid (".addresses.Request.id" , proto .getId ());
5347
54- io .envoyproxy .pgv .CollectiveValidation . in (".addresses.Request.en_status " , proto .getEnStatus (), EN_STATUS__IN );
48+ io .envoyproxy .pgv .StringValidation . maxLength (".addresses.Request.neighborhood " , proto .getNeighborhood (), 200 );
5549
5650 io .envoyproxy .pgv .StringValidation .maxLength (".addresses.Request.street" , proto .getStreet (), 200 );
5751 // no validation rules for Number
@@ -66,8 +60,6 @@ public void assertValid(com.soustify.addresses.Addresses.Request proto, io.envoy
6660
6761 io .envoyproxy .pgv .StringValidation .maxLength (".addresses.Request.complement" , proto .getComplement (), 200 );
6862
69- io .envoyproxy .pgv .StringValidation .maxLength (".addresses.Request.neighborhood" , proto .getNeighborhood (), 200 );
70-
7163
7264 }
7365}
@@ -84,8 +76,6 @@ public static class ResponseValidator implements io.envoyproxy.pgv.ValidatorImpl
8476
8577
8678
87-
88-
8979 private final Double LATITUDE__LTE = 90D ;
9080 private final Double LATITUDE__GTE = -90D ;
9181
@@ -105,8 +95,6 @@ public static class ResponseValidator implements io.envoyproxy.pgv.ValidatorImpl
10595 public void assertValid (com .soustify .addresses .Addresses .Response proto , io .envoyproxy .pgv .ValidatorIndex index ) throws io .envoyproxy .pgv .ValidationException {
10696
10797 io .envoyproxy .pgv .StringValidation .uuid (".addresses.Response.id" , proto .getId ());
108- // no validation rules for Status
109-
11098
11199 io .envoyproxy .pgv .StringValidation .uuid (".addresses.Response.id_auditable" , proto .getIdAuditable ());
112100
0 commit comments