You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can you please provide a bit more information? How should it look in the code? I must admit, that I currently not creating OAS3 Apis often.
I'm also open to merge a PR.
i use something along these lines .. not sure if its worth a PR
fun Components.parameter(init: Parameter.() -> Unit) {
val parameter = Parameter()
parameter.init()
if (parameter.name.isNullOrBlank())
error("parameter name has to be set")
addParameters(parameter.name, parameter)
}
fun Operation.parameterRef(name: String) {
addParametersItem(Parameter().apply { $ref = name })
}
it would be nice to be able to define all reusable components (parameters, responses ..) in the components section
and make it possible to reference them ... maybe like parameterRef("myParam")
would that be a useful feature?
The text was updated successfully, but these errors were encountered: