/*
 * Copyright 2021 B2i Healthcare Pte Ltd, http://b2i.sg
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.b2international.snowowl.core.rest.suggest;

import org.springframework.http.HttpHeaders;

import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @since 8.0
 */
public class SuggestRestParameters {
	
	@Parameter(description = "Code System path to find the concept in.")
	private String codeSystemPath;
	
	@Parameter(description = "The term to match")
	private String term;
	
	@Parameter(description = "The maximum number of items to return", example = "1", schema = @Schema(defaultValue = "1"))
	private int limit = 1;
	
	@Parameter(description = "The preferred term display in case of SNOMED CT", example = "PT", schema = @Schema(allowableValues = {"FSN", "PT", "ID_ONLY"}, defaultValue = "PT"))
	private String preferredDisplay = "PT";
	
	@Parameter(name = HttpHeaders.ACCEPT_LANGUAGE, in = ParameterIn.HEADER, description = "Accepted language tags, in order of preference", example = "en-US;q=0.8,en-GB;q=0.6")
	private String acceptLanguage = "en-US;q=0.8,en-GB;q=0.6";

	public String getCodeSystemPath() {
		return codeSystemPath;
	}
	
	public void setCodeSystemPath(String codeSystemPath) {
		this.codeSystemPath = codeSystemPath;
	}
	
	public String getTerm() {
		return term;
	}
	
	public void setTerm(String term) {
		this.term = term;
	}
	
	public int getLimit() {
		return limit;
	}
	
	public void setLimit(int limit) {
		this.limit = limit;
	}
	
	public String getPreferredDisplay() {
		return preferredDisplay;
	}
	
	public void setPreferredDisplay(String preferredDisplay) {
		this.preferredDisplay = preferredDisplay;
	}
	
	public String getAcceptLanguage() {
		return acceptLanguage;
	}
	
	public void setAcceptLanguage(String acceptLanguage) {
		this.acceptLanguage = acceptLanguage;
	}
}

@@ -683,149 +683,47 @@
 ort 
-org.springframework.http.HttpHeaders;%0A%0Aimport io.swagger.v3.oas.annotations.Parameter;%0Aimport io.swagger.v3.oas.annotations.enums.ParameterIn
+io.swagger.v3.oas.annotations.Parameter
 ;%0Aim
@@ -1389,69 +1389,8 @@
 ter(
-name = HttpHeaders.ACCEPT_LANGUAGE, in = ParameterIn.HEADER, 
 desc

remove invalid modifiers