Re: How to setup multiple JAXRS server endpoints

2023-07-13 Thread Andriy Redko
Got it, thank you (the Swagger sometimes does surprising things).

Thursday, July 13, 2023, 1:33:07 AM, you wrote:

JPU> The @Parameter annotation seems to be ignored at this level.

JPU> -Original Message-
JPU> From: Jean Pierre URKENS 
JPU> Sent: donderdag 13 juli 2023 7:11
JPU> To: 'Andriy Redko' ; 'dev@cxf.apache.org'
JPU> 
JPU> Subject: RE: How to setup multiple JAXRS server endpoints

JPU> Yes, SwaggerUI works too!
JPU> I noticed that v2.x of swagger-jaxrs relates to OpenApi v3.1.x while my 
spec
JPU> is compliant with OpenApi v3.0.x, so I am going to stick with v2.1.13 which
JPU> seems to be that last version for OpenApi v3.0.x.

JPU> I thought the @Parameter only applied to input parameters ("query",
JPU> "header", "path" or "cookie" parameters), but I'll give it a try.

JPU> J.P.

JPU> -Original Message-
JPU> From: Andriy Redko 
JPU> Sent: woensdag 12 juli 2023 22:16
JPU> To: Jean Pierre URKENS ; 
dev@cxf.apache.org
JPU> Subject: Re: How to setup multiple JAXRS server endpoints

JPU> Hi Jean,

JPU> That's awesome, have you got SwaggerUI working as well?

JPU> Yes, you could use 2.2.15 (we already updated to this version, no
JPU> regressions). It seems like the description applies to the whole schema
JPU> (which is the same for both properties), may be you could use @Parameter
JPU> instead:

JPU> @Parameter(description="The description I want for prop1")

JPU> Thank you.

JPU> Best Regards,
JPU> Andriy Redko

>> Hi Andriy,
>> After having migrated everything to "io.swagger.v3.oas.annotations.*" the
>> swagger endpoints for each of my services became active.
>> So far so good, but I do notice that there are discrepancies when
>> annotating models, e.g.:
>>  public class Model1 {
>>   @Schema(description="The description I want for prop1")
>>private Model2 prop1;
>>   @Schema(description="The description I want for prop2")
>>private Model2 prop2;
>>   ...
>> }
>> When I generate the openapi.[json|yaml] specification I see that both
>> prop1 and prop2 have a reference to the schema component "Model2" with
>> description ' The description I want for prop2' which is inappropriate for
>> 'prop1'.
>> It is not unlikely to have multiple properties within one Model that are
>> of the same class but are semantically used in a different context. E.g.
>> something as simple as a ShipmentOrder having two 'Address' properties
>> 'from' and 'to' would result in wrong API documentation.
>> I am aware it has nothing to do with CXF but rather with
>> swagger-jaxrs2-vx.y.z.jar and depending libraries. CXF-3.5.6 has
>> dependency on swagger-jaxrs2-2.1.13.jar. Would it be an issue to replace
>> this dependency with e.g. swagger-jaxrs2-2.2.15.jar (latest stable release
>> according to maven central repo)?
>> J.P.
>> -Original Message-
>> From: Jean Pierre URKENS 
>> Sent: woensdag 12 juli 2023 8:25
>> To: 'Andriy Redko' ; 'dev@cxf.apache.org'
>> 
>> Subject: RE: How to setup multiple JAXRS server endpoints I seem to be
>> mistaken here, the endpoint was loaded (I did a manual HTTP GET test to
>> the endpoint to verify this) although no breakpoints where hit during
>> startup.
>> I am first going to complete the migration to
>> "io.swagger.v3.oas.annotations.*" annotations for all endpoints and then I
>> am going to test again.
>> The application is composed of libraries, some of which use SLF4J but most
>> use LOG4J for logging.
>> J.P.

>> -Original Message-
>> From: Andriy Redko 
>> Sent: woensdag 12 juli 2023 1:13
>> To: Jean Pierre URKENS ;
>> dev@cxf.apache.org
>> Subject: Re: How to setup multiple JAXRS server endpoints Hi Jean, The
>> OpenApiFeature$Portable#initiliaze(…) should definitely be called
>> (otherwise you shouldn't even see the openapi.json endpoint), so I am not
>> sure why these are not triggering for you.
>>
>> For logging, it seems like you are using SLF4J
>> (org.apache.cxf.common.logging.Slf4jLogger),
>> and also reload4j (aka log4j), why do you need both?
>> Thank you.
>> Best Regards,
>> Andriy Redko
JPU>>> After some code investigation:


JPU>>> OpenApiFeature implements SwaggerUiSupport and in its
JPU>>> portable#registerSwaggerUiResources(…) method it will call
JPU>>> SwaggerUiSupport#getSwaggerUi(…) which will register the
JPU> SwaggerUiService.


JPU>>> I have put breakpoints on:
JPU>>>- OpenApiFeature$Portable#initiliaze(…)
JPU>>>- SwaggerUiService constructor
JPU>>>- SwaggerUiSupport#getSwaggerUi(…)


JPU>>> but none of them are hit when starting my application?


JPU>>> Although the (spring) logging shows all beans in my
JPU>>> cxf-endpoints.xml have been created?
JPU>>> The *WADL* and *OpenAPI* endpoints to get the specification work.
JPU>>> Even the actual endpoint seems to work although I didn’t hit any
JPU>>> of the breakpoint?


JPU>>> CXF, also doesn’t seem to log a lot, I am hardly getting any log
JPU>>> entries although log level I set to DEBUG.
JPU>>> My logging (except wire message logging) for cxf is setup
JPU>>> 

[GitHub] [cxf-fediz] dependabot[bot] opened a new pull request, #185: Bump spring-webflow from 2.5.1.RELEASE to 3.0.0

2023-07-13 Thread via GitHub


dependabot[bot] opened a new pull request, #185:
URL: https://github.com/apache/cxf-fediz/pull/185

   Bumps [spring-webflow](https://github.com/spring-projects/spring-webflow) 
from 2.5.1.RELEASE to 3.0.0.
   
   Release notes
   Sourced from https://github.com/spring-projects/spring-webflow/releases;>spring-webflow's
 releases.
   
   3.0.0-RC1
   :star: New Features
   
   Migrate Spring Faces to Spring Framework 6, Jakarta EE, and JSF 4 https://redirect.github.com/spring-projects/spring-webflow/pull/1794;>#1794
   Update JSF samples to Jakarta EE  https://redirect.github.com/spring-projects/spring-webflow/issues/1795;>#1795
   
   :notebook_with_decorative_cover: Documentation
   
   Use spring-asciidoc-backends https://redirect.github.com/spring-projects/spring-webflow/pull/112;>#112
   
   :heart: Contributors
   Thank you to all the contributors who worked on this release:
   https://github.com/liptga;>@​liptga and https://github.com/Buzzardo;>@​Buzzardo
   3.0.0-M1
   :star: New Features
   
   Compatibility with Spring Framework 6, Java 17, and Jakarta EE 
[SWF-1757] https://redirect.github.com/spring-projects/spring-webflow/issues/931;>#931
   Adopt Java 17, Spring Framework 6, Jakarta EE 9 baseline https://redirect.github.com/spring-projects/spring-webflow/pull/109;>#109
   Allow custom build of Flow ApplicationContext. https://redirect.github.com/spring-projects/spring-webflow/pull/111;>#111
   
   :heart: Contributors
   Thank you to all the contributors who worked on this release:
   https://github.com/Buzzardo;>@​Buzzardo, https://github.com/iay;>@​iay, and https://github.com/scantor;>@​scantor
   
   
   
   Commits
   
   https://github.com/spring-projects/spring-webflow/commit/3e865a691b0b88971e7471b528e5fc27c6dc3f82;>3e865a6
 [artifactory-release] Release version 3.0.0
   https://github.com/spring-projects/spring-webflow/commit/d08971531e1ecbd88cdd9fa5a4096274b747fd23;>d089715
 Minor updates in reference docs
   https://github.com/spring-projects/spring-webflow/commit/f81d3d689bd0d987c1f68ac33fa34d990796a940;>f81d3d6
 Minor updates in README.md
   https://github.com/spring-projects/spring-webflow/commit/77410d70ea44f0026e0edf483f57be57af64cdff;>77410d7
 Formatting changes in README.md
   https://github.com/spring-projects/spring-webflow/commit/43dc24af4f213b77a0f1ed13a2cd1aa9adde8d70;>43dc24a
 Remove RichFaces checks
   https://github.com/spring-projects/spring-webflow/commit/2584aadef3d7bf0f11e8e3ea6318566453f2d291;>2584aad
 Polishing contribution
   https://github.com/spring-projects/spring-webflow/commit/5b27250c70635e4e798ad7278df43cc33e923217;>5b27250
 Update dependencies
   https://github.com/spring-projects/spring-webflow/commit/bce7f0cc9184d375f86c922edacddcadb47f9b48;>bce7f0c
 Update spring-faces to Jakarta EE
   https://github.com/spring-projects/spring-webflow/commit/c0173e54d52ae363da92ccad1c092aa0652db9c3;>c0173e5
 Use spring-asciidoc-backends
   https://github.com/spring-projects/spring-webflow/commit/ed81b44dd17ea749d489ecdfaf854cea9b6e7a03;>ed81b44
 Add artifactory plugin to build script
   Additional commits viewable in https://github.com/spring-projects/spring-webflow/compare/v2.5.1.RELEASE...v3.0.0;>compare
 view
   
   
   
   
   
   [![Dependabot compatibility 
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.springframework.webflow:spring-webflow=maven=2.5.1.RELEASE=3.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
   
   Dependabot will resolve any conflicts with this PR as long as you don't 
alter it yourself. You can also trigger a rebase manually by commenting 
`@dependabot rebase`.
   
   [//]: # (dependabot-automerge-start)
   [//]: # (dependabot-automerge-end)
   
   ---
   
   
   Dependabot commands and options
   
   
   You can trigger Dependabot actions by commenting on this PR:
   - `@dependabot rebase` will rebase this PR
   - `@dependabot recreate` will recreate this PR, overwriting any edits that 
have been made to it
   - `@dependabot merge` will merge this PR after your CI passes on it
   - `@dependabot squash and merge` will squash and merge this PR after your CI 
passes on it
   - `@dependabot cancel merge` will cancel a previously requested merge and 
block automerging
   - `@dependabot reopen` will reopen this PR if it is closed
   - `@dependabot close` will close this PR and stop Dependabot recreating it. 
You can achieve the same result by closing it manually
   - `@dependabot ignore this major version` will close this PR and stop 
Dependabot creating any more for this major version (unless you reopen the PR 
or upgrade to it yourself)
   - `@dependabot ignore this minor version` will close this PR and stop 
Dependabot creating any more for this minor version (unless you reopen the PR 
or upgrade to it yourself)
   - `@dependabot ignore this dependency` will close this PR and stop 
Dependabot creating any 

[GitHub] [cxf-fediz] dependabot[bot] closed pull request #180: Bump spring.version from 5.3.27 to 5.3.28

2023-07-13 Thread via GitHub


dependabot[bot] closed pull request #180: Bump spring.version from 5.3.27 to 
5.3.28
URL: https://github.com/apache/cxf-fediz/pull/180


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cxf.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [cxf-fediz] dependabot[bot] commented on pull request #180: Bump spring.version from 5.3.27 to 5.3.28

2023-07-13 Thread via GitHub


dependabot[bot] commented on PR #180:
URL: https://github.com/apache/cxf-fediz/pull/180#issuecomment-1634179389

   Superseded by #184.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cxf.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [cxf-fediz] dependabot[bot] opened a new pull request, #184: Bump spring.version from 5.3.27 to 5.3.29

2023-07-13 Thread via GitHub


dependabot[bot] opened a new pull request, #184:
URL: https://github.com/apache/cxf-fediz/pull/184

   Bumps `spring.version` from 5.3.27 to 5.3.29.
   Updates `spring-framework-bom` from 5.3.27 to 5.3.29
   
   Release notes
   Sourced from https://github.com/spring-projects/spring-framework/releases;>spring-framework-bom's
 releases.
   
   v5.3.29
   :star: New Features
   
   Avoid illegal reflective access in 
ContextOverridingClassLoader.isEligibleForOverriding https://redirect.github.com/spring-projects/spring-framework/issues/30868;>#30868
   Improve diagnostics for CGLIB ClassLoader issues with shared classes in 
parent ClassLoader https://redirect.github.com/spring-projects/spring-framework/issues/30866;>#30866
   JdbcTemplate does not call handleWarnings in 
case of exception https://redirect.github.com/spring-projects/spring-framework/issues/30852;>#30852
   Tolerate AnnotationUtils.isCandidateClass call with 
null as annotation type https://redirect.github.com/spring-projects/spring-framework/issues/30843;>#30843
   Simplify DefaultSingletonBeanRegistry.isDependent() https://redirect.github.com/spring-projects/spring-framework/issues/30841;>#30841
   Provide explicit support for collections, maps, and arrays in 
ObjectUtils.nullSafeConciseToString() https://redirect.github.com/spring-projects/spring-framework/issues/30811;>#30811
   Extend list of supported types in 
ObjectUtils.nullSafeConciseToString() https://redirect.github.com/spring-projects/spring-framework/issues/30806;>#30806
   Align ConcurrentMapCacheManager locking behavior with 
CaffeineCacheManager https://redirect.github.com/spring-projects/spring-framework/issues/30781;>#30781
   ResolvableType.hasUnresolvableGenerics() should cache its 
result https://redirect.github.com/spring-projects/spring-framework/issues/30715;>#30715
   Ensure Spring LogFactory contains all public methods from 
Apache LogFactory https://redirect.github.com/spring-projects/spring-framework/issues/30711;>#30711
   Translate SQL Exception with State S0001 and Vendor Code 2628 to a 
Spring Exception in MSSQL 2019 https://redirect.github.com/spring-projects/spring-framework/issues/30682;>#30682
   
   :lady_beetle: Bug Fixes
   
   For a prototype bean, if first-time rejected value is null, subsequent 
value will wrongly be null always https://redirect.github.com/spring-projects/spring-framework/issues/30809;>#30809
   Revert changes to toString() in FieldError https://redirect.github.com/spring-projects/spring-framework/issues/30800;>#30800
   Fix log level on error with @TransactionalEventListener https://redirect.github.com/spring-projects/spring-framework/issues/30784;>#30784
   SerializableTypeWrapper does not consistently catch 
InvocationTargetException  https://redirect.github.com/spring-projects/spring-framework/issues/30767;>#30767
   NPE in MvcUriComponentsBuilder with no-arg target method on interface https://redirect.github.com/spring-projects/spring-framework/issues/30757;>#30757
   Jackson2ObjectMapperBuilder breaks when 
modules customizer follows modulesToInstall https://redirect.github.com/spring-projects/spring-framework/issues/30752;>#30752
   Spring ORM SpringBeanContainer when trying to create a bean fails with 
not found bean definition, and fallbacks to default hibernate bean creation https://redirect.github.com/spring-projects/spring-framework/issues/30685;>#30685
   
   :notebook_with_decorative_cover: Documentation
   
   ResultSet holdability into the View layer broken by Hibernate 5 https://redirect.github.com/spring-projects/spring-framework/issues/30863;>#30863
   Clarify ReactiveTransactionManager exception declarations 
https://redirect.github.com/spring-projects/spring-framework/issues/30819;>#30819
   Doc: JdbcTransactionManager vs 
DataSourceTransactionManager https://redirect.github.com/spring-projects/spring-framework/issues/30814;>#30814
   
   :hammer: Dependency Upgrades
   
   Upgrade to Reactor 2020.0.34 https://redirect.github.com/spring-projects/spring-framework/issues/30873;>#30873
   
   v5.3.28
   :star: New Features
   
   ClassLoader can be null in DeserializingConverter and should be 
annotated with @Nullable https://redirect.github.com/spring-projects/spring-framework/issues/30672;>#30672
   Performance optimization in 
AbstractBeanFactoryBasedTargetSource.hashCode() https://redirect.github.com/spring-projects/spring-framework/issues/30585;>#30585
   Consistent support for MultiValueMap and common Map implementations in 
CollectionFactory https://redirect.github.com/spring-projects/spring-framework/issues/30441;>#30441
   Reject null and empty SpEL expressions https://redirect.github.com/spring-projects/spring-framework/issues/30373;>#30373
   Introduce Environment.matchesProfiles() for profile 
expressions https://redirect.github.com/spring-projects/spring-framework/issues/30226;>#30226
   
   :lady_beetle: Bug Fixes
   
   Change of behaviour for UUID in bean validation output in v5.3.27