Skip to content

Commit

Permalink
Merge branch 'main' into taefi/log-validation-error-messages
Browse files Browse the repository at this point in the history
  • Loading branch information
taefi authored Dec 9, 2024
2 parents 1a2ff35 + 9e1c08c commit 74629e5
Show file tree
Hide file tree
Showing 62 changed files with 11,922 additions and 11,567 deletions.
1,321 changes: 669 additions & 652 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@remcovaes/web-test-runner-vite-plugin": "^1.2.1",
"@types/karma": "^6.3.8",
"@types/node": "^20.11.19",
"@vaadin/react-components": "24.6.0-beta1",
"@vaadin/react-components": "24.6.0-rc1",
"@vitejs/plugin-react": "^4.3.1",
"@web/test-runner": "^0.19.0",
"chai-dom": "^1.12.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2023 Vaadin Ltd.
* Copyright 2000-2024 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
Expand Down Expand Up @@ -76,7 +76,7 @@ AccessAnnotationChecker accessAnnotationChecker() {
* Registers a default {@link EndpointAccessChecker} bean instance.
*
* @param accessAnnotationChecker
* the access controlks checker to use
* the access controls checker to use
* @return the default Vaadin endpoint access checker bean
*/
@Bean
Expand Down Expand Up @@ -112,7 +112,8 @@ CsrfChecker csrfChecker(ServletContext servletContext) {
* qualifier to override the mapper.
*/
@Bean
ObjectMapper endpointObjectMapper(ApplicationContext applicationContext,
ObjectMapper hillaEndpointObjectMapper(
ApplicationContext applicationContext,
@Autowired(required = false) @Qualifier(EndpointController.ENDPOINT_MAPPER_FACTORY_BEAN_QUALIFIER) JacksonObjectMapperFactory endpointMapperFactory) {
if (this.endpointMapper == null) {
this.endpointMapper = endpointMapperFactory != null
Expand All @@ -139,7 +140,7 @@ private static ObjectMapper createDefaultEndpointMapper(
*
* @param applicationContext
* The Spring application context
* @param endpointObjectMapper
* @param hillaEndpointObjectMapper
* ObjectMapper instance that is used for Hilla endpoints'
* serializing and deserializing request and response bodies.
* @param explicitNullableTypeChecker
Expand All @@ -154,11 +155,12 @@ private static ObjectMapper createDefaultEndpointMapper(
*/
@Bean
EndpointInvoker endpointInvoker(ApplicationContext applicationContext,
ObjectMapper endpointObjectMapper,
ObjectMapper hillaEndpointObjectMapper,
ExplicitNullableTypeChecker explicitNullableTypeChecker,
ServletContext servletContext, EndpointRegistry endpointRegistry) {
return new EndpointInvoker(applicationContext, endpointObjectMapper,
explicitNullableTypeChecker, servletContext, endpointRegistry);
return new EndpointInvoker(applicationContext,
hillaEndpointObjectMapper, explicitNullableTypeChecker,
servletContext, endpointRegistry);
}

/**
Expand Down Expand Up @@ -275,9 +277,9 @@ private RequestMappingInfo prependEndpointPrefixUrl(
}

/**
* Can re-generate the TypeScipt code.
* Can re-generate the TypeScript code.
*
* @param context
* @param servletContext
* the servlet context
* @param endpointController
* the endpoint controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public class SignalsConfiguration {
private final EndpointInvoker endpointInvoker;

public SignalsConfiguration(EndpointInvoker endpointInvoker,
ObjectMapper endpointObjectMapper) {
ObjectMapper hillaEndpointObjectMapper) {
this.endpointInvoker = endpointInvoker;
Signal.setMapper(endpointObjectMapper);
Signal.setMapper(hillaEndpointObjectMapper);
}

/**
Expand Down
Loading

0 comments on commit 74629e5

Please sign in to comment.