question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Swagger shows redundant data for user apis

See original GitHub issue

When we visit http://localhost:9004/swagger-ui.html#/user-controller/updateUserPasswordUsingPOST we will see lots of redundant data which is generated automatically from User model. How can we get read of them?

accountNonExpired boolean (query) accountNonLocked boolean (query) active boolean (query) authorities[0].authority string (query) createdAt string($date-time) (query) credentialsNonExpired boolean (query) email string (query) emailVerified boolean (query) enabled boolean (query) firstName string (query) id integer($int64) (query) lastName string (query) password string (query) roles[0].adminRole boolean (query) roles[0].id integer($int64) (query) roles[0].role string (query) Available values : ROLE_ADMIN, ROLE_USER

roles[0].userList[0].active boolean (query) roles[0].userList[0].createdAt string($date-time) (query) roles[0].userList[0].email string (query) roles[0].userList[0].emailVerified boolean (query) roles[0].userList[0].firstName string (query) roles[0].userList[0].id integer($int64) (query) roles[0].userList[0].lastName string (query) roles[0].userList[0].password string (query) roles[0].userList[0].updatedAt string($date-time) (query) roles[0].userList[0].username string (query) updatePasswordRequest (body)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
isopropylcyanidecommented, Apr 1, 2021

@krupalshah Thanks for pitching in.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicate endpoints with Swagger UI · Issue #598 - GitHub
Automatic documentation generated with swagger UI adds duplicated endpoints. This is the normal behavior but I want to keep my database as ...
Read more >
Duplicate Entries in Swagger - Stack Overflow
I'm writing an API using the HalBuilder ...
Read more >
Swagger RESTful API Documentation Specification
1. Introduction. Swagger™ is a project used to describe and document RESTful APIs. The Swagger specification defines a set of files required to...
Read more >
Duplicate attributes when using '@' | Open APIs
When generating models using the Swagger definition using the swagger-codegen-maven-plugin (v2.3.1), there are some entities where the use ...
Read more >
Swagger UI tutorial | Documenting APIs - Idratherbewriting.com
Swagger UI provides a display framework that reads an OpenAPI specification document and generates an interactive documentation website.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found