Skip to content
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

Swagger API docs example value not showing proper values #2160

Closed
Zejnilovic opened this issue Jan 12, 2023 · 2 comments · Fixed by #2178
Closed

Swagger API docs example value not showing proper values #2160

Zejnilovic opened this issue Jan 12, 2023 · 2 comments · Fixed by #2178
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation priority: low Nice to have Rest-API Rest-API component affected

Comments

@Zejnilovic
Copy link
Contributor

Describe the bug

When I run swagger API docs and look at the example value for both, create and returns, and I don't very well understand them, and they don't look like what I would expect.

Screenshots

image

@Zejnilovic Zejnilovic added bug Something isn't working priority: undecided Undecided priority to be assigned after discussion Rest-API Rest-API component affected labels Jan 12, 2023
@benedeki benedeki added priority: low Nice to have documentation Improvements or additions to documentation and removed priority: undecided Undecided priority to be assigned after discussion labels Jan 17, 2023
@dk1844 dk1844 self-assigned this Feb 3, 2023
dk1844 added a commit that referenced this issue Feb 17, 2023
 - !! generated types for VersionModel descendants is incorrect !!
 - spring updated
@dk1844
Copy link
Contributor

dk1844 commented Feb 17, 2023

To be inspired by AbsaOSS/login-service#14

dk1844 added a commit that referenced this issue Feb 17, 2023
 - annotation of Dataset/VersionModel updated for SpringDoc - works relatively ok in swagger. = TODO Schema, MT, PropertyDefinition
dk1844 added a commit that referenced this issue Feb 22, 2023
…ataset, Schema updated

MappingTable.{defaultMappingValue -> defaultMappingValues} method renamed
dk1844 added a commit that referenced this issue Feb 23, 2023
dk1844 added a commit that referenced this issue Mar 1, 2023
dk1844 added a commit that referenced this issue Mar 1, 2023
dk1844 added a commit that referenced this issue Mar 1, 2023
dk1844 added a commit that referenced this issue Mar 2, 2023
dk1844 added a commit that referenced this issue Mar 3, 2023
…Value (while the getDefaultMappingValueAsMap being present, but excluded from serialization)
dk1844 added a commit that referenced this issue Mar 3, 2023
dk1844 added a commit that referenced this issue Mar 3, 2023
dk1844 added a commit that referenced this issue Mar 7, 2023
…x the issue where 404 was returned in place of 401
dk1844 added a commit that referenced this issue Mar 7, 2023
dk1844 added a commit that referenced this issue Mar 8, 2023
dk1844 added a commit that referenced this issue Mar 14, 2023
dk1844 added a commit that referenced this issue Mar 14, 2023
dk1844 added a commit that referenced this issue Mar 14, 2023
dk1844 added a commit that referenced this issue Mar 14, 2023
dk1844 added a commit that referenced this issue Mar 16, 2023
* #2160 openApi3:
 - SpringDoc replacing SpringFox
 - annotation of Dataset, VersionModel,Schema,SchemaField, Reference, MT, PropertyDefinition, Validation
 - conformance rules discriminatory schema settings for correct inheritance
 - MT.defaultMappingValue present (while the getDefaultMappingValueAsMap being present, but excluded from serialization)
 - GroupedOpenApi labels (ordering is done based on group name, not display name!)
- JWT header auth option (custom impl - just JWT header, no bearer!)
- spring profile (dev) removed -> reflected in README.md
 - 401 unauthorized api response added, authentication has custom OpenAPI description
 - 403 Forbidden response annotations added where needed (preauth), comment cleanup
 - swagger masking login pwd in UI
@dk1844
Copy link
Contributor

dk1844 commented Mar 16, 2023

Release notes:
SpringFox implementation replaced by newer SpringDoc -> brings OpenAPI 3 (can be generated from annotations), newer swagger with more info, examples, and JWT working (/api/login is part of OpenAPI and can be used in Swagger UI, too).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation priority: low Nice to have Rest-API Rest-API component affected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants