Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swagger: update ConfigurationSourceType to provide parameter descriptors
The list of ConfigurationParameterDescriptor replaces the list of QueryParameterKeys. Using just the keys would be too restrictive and ambiguous for clients to implement. see also: eclipse-cdt-cloud/theia-trace-extension#1025 Change-Id: Iec49d2d5d6e6e7e6bc9ee8981c6093417136dcf7 Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com> Reviewed-on: https://git.eclipse.org/r/c/tracecompass.incubator/org.eclipse.tracecompass.incubator/+/204663 Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org> Tested-by: Patrick Tasse <patrick.tasse@gmail.com> Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
- Loading branch information
Showing
3 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
...ubator/internal/trace/server/jersey/rest/core/model/ConfigurationParameterDescriptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023 Ericsson | ||
* | ||
* All rights reserved. This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 which | ||
* accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
|
||
package org.eclipse.tracecompass.incubator.internal.trace.server.jersey.rest.core.model; | ||
|
||
import org.eclipse.jdt.annotation.NonNullByDefault; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
/** | ||
* Contributes to the model used for TSP swagger-core annotations. | ||
*/ | ||
@NonNullByDefault | ||
public interface ConfigurationParameterDescriptor { | ||
|
||
/** | ||
* @return the name of the configuration parameter | ||
*/ | ||
@Schema(description = "The unique key name of the configuration parameter") | ||
String getKeyName(); | ||
|
||
/** | ||
* @return the ID for of the configuration parameter | ||
*/ | ||
@Schema(description = "The data type hint of the configuration parameter") | ||
String getDataType(); | ||
|
||
/** | ||
* @return a short description of this configuration parameter | ||
*/ | ||
@Schema(description = "Describes the configuration parameter") | ||
String getDescription(); | ||
|
||
/** | ||
* @return true if parameter is required else false. | ||
*/ | ||
@Schema(description = "A flag indicating whether the configuration parameter is required or not") | ||
Boolean isRequired(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters