Skip to content

Description and Example for Parameters/Response #4

Closed Answered by dankinsoid
VaslD asked this question in Q&A
Discussion options

You must be logged in to vote

@VaslD Hello!
I tried to minimize the code required for the documentation, so I didn’t include some features, including a description for individual fields or objects.
But it’s easy for me to add such functionality since it is in demand.
Let's think about the best way to do this.
Some ideas:

  1. It could be some property wrapper in your object
@OpenAPIDescription("Identifier") 
public var id: String
  1. Some additional parameters in openAPI method
.openAPI(
   path: PathParamters.self,
   descriptions: .path("id", "Identifier")
)
  1. Some codegen tools to use native /// Identifier directives

If you don't want to wait for the library update you can use .openAPI(custom:) func after main openAPI

.o…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@VaslD
Comment options

Answer selected by dankinsoid
Comment options

You must be logged in to vote
1 reply
@VaslD
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants