Apply license header changes and API gen

This commit is contained in:
Seth Michael Larson
2020-04-23 14:10:49 -05:00
committed by Seth Michael Larson
parent 24c57840cb
commit 8e1798cf31
67 changed files with 585 additions and 337 deletions
+2 -3
View File
@@ -3,7 +3,6 @@
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information
import os
import json
import re
@@ -198,8 +197,8 @@ class API:
((p, parts[p]) for p in parts if parts[p]["required"]),
(("body", self.body),) if self.body else (),
((p, parts[p]) for p in parts
if not parts[p]["required"] and
p not in params),
if not parts[p]["required"]
and p not in params),
sorted(params.items(), key=lambda x: (x[0] not in parts, x[0])),
)