-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make signature level in API optional for signed documents #448
Conversation
@@ -25,6 +25,7 @@ public void handle(HttpExchange exchange) throws IOException { | |||
try { | |||
var body = EndpointUtils.loadFromJsonExchange(exchange, SignRequestBody.class); | |||
body.validateDocument(); | |||
body.resolveSigningLevel(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nedava zmysel tuto metodu strcit interne do validateSigningParameters? pride mi to taky temporal coupling, ze ked to nezavolas tak sa to nebude spravat dobre.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
na druhej strane, od validate by som čakal, že nebude meniť ten objekt. Ale je pravda, že je to idempotentné, takže by to nemusel byť problém.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pravda, najvacsi zmysel by to davalo uplne hore niekde kde sa to body/parametre vyrabaju.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To áno, ale tieto classy sa vyrábajú trochu magicky cez ten gson parser a nechcel som ísť teraz do toho.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hej chapem, strcme to do toho validate zatial s nejakou poznamkou
No description provided.