Skip to content

Wrong Type demo for HATEOAS with Springdoc

dkwakkel/springdoc-wrong-type

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringDoc NPE issue with HATEOAS

This is a slight modification of https://github.com/didjoman/Springdoc-String-Schema-returned-mediatype-issue and is for springdoc/springdoc-openapi#2902

Run this to see the issue:

git clone https://github.com/smurf667/springdoc-npe
mvn spring-boot:run
curl --location --request GET http://localhost:8080/api-docs --header "Content-Type: application/json"

The NullPointerException can be seen in org.springdoc.core.converters.HateoasLinksConverter.resolve(AnnotatedType, ModelConverterContext, Iterator<ModelConverter>) with a debugger; it is silently handled.

About

Wrong Type demo for HATEOAS with Springdoc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%