Skip to content

Commit

Permalink
swagger: Document schema in TmfConfigurationSourceType
Browse files Browse the repository at this point in the history
Signed-off-by: Bernd Hufmann <[email protected]>
  • Loading branch information
bhufmann committed Aug 30, 2024
1 parent 992d620 commit c20d985
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ public interface ConfigurationSourceType {
* configuration instance of this type. Use 'path' key for file
* URIs.
*/
@Schema(description = "A list of configuration parameter descriptors to be passed when creating or updating a configuration instance of this type.")
@Schema(description = "A list of configuration parameter descriptors to be "
+ "passed when creating or updating a configuration instance of this "
+ "type. Use this instead of schema. Omit if not used.")
List<ConfigurationParameterDescriptor> getParameterDescriptors();

/**
* @return a JSON schema that describes the parameters that the front-end
* needs to provide with corresponding values. Use this for complex
* parameter descriptions instead of parameterDescriptors.
*/
@Schema(description = "A JSON schema that describes the parameters that the "
+ "front-end needs to provide with corresponding values. "
+ "Use this for complex parameter descriptions instead of parameterDescriptors. "
+ "Omit if not used.")
String getShema();
}

0 comments on commit c20d985

Please sign in to comment.