/* SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ /* * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. * * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you 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. */ using System.Collections.Generic; namespace ApiGenerator.Configuration.Overrides { public class GlobalOverrides : EndpointOverridesBase { public IDictionary> ObsoleteEnumMembers { get; set; } = new Dictionary>() { { "VersionType", new Dictionary() { { "force", "Force is no longer accepted by the server as of 7.5.0 and will result in an error when used" } } } }; public override IDictionary ObsoleteQueryStringParams { get; set; } = new Dictionary { { "copy_settings", "" } }; public override IDictionary RenameQueryStringParams { get; } = new Dictionary { { "_source", "source_enabled" }, { "_source_includes", "source_includes" }, { "_source_excludes", "source_excludes" }, { "rest_total_hits_as_int", "total_hits_as_integer" }, { "docvalue_fields", "doc_value_fields" }, { "q", "query_on_query_string" }, //make cat parameters more descriptive { "h", "Headers" }, { "s", "sort_by_columns" }, { "v", "verbose" }, { "ts", "include_timestamp" }, { "if_seq_no", "if_sequence_number" }, { "seq_no_primary_term", "sequence_number_primary_term" }, }; public override IEnumerable RenderPartial => new[] { "stored_fields", "docvalue_fields" }; public override IEnumerable SkipQueryStringParams { get; } = new[] { "copy_settings", //this still needs a PR? "source", // allows the body to be specified as a request param, we do not want to advertise this with a strongly typed method "timestamp", "time" }; } }