vincbeck commented on code in PR #27892:
URL: https://github.com/apache/airflow/pull/27892#discussion_r1032602702


##########
airflow/api_internal/openapi/internal_api_v1.yaml:
##########
@@ -0,0 +1,100 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF 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.
+
+---
+openapi: 3.0.2
+info:
+  title: Airflow Internal API
+  version: 1.0.0
+  description: |
+    This is Airflow Internal API - which is a proxy for components running
+    customer code for connecting to Airflow Database.
+
+    It is not intended to be used by any external code.
+
+    You can find more information in AIP-44
+    
https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-44+Airflow+Internal+API
+
+
+servers:
+  - url: /internal/v1
+    description: Airflow Internal API
+paths:
+  "/rpcapi":
+    post:
+      operationId: rpcapi
+      deprecated: false
+      x-openapi-router-controller: 
airflow.api_internal.endpoints.rpc_api_endpoint
+      operationId: json_rpc

Review Comment:
   I am not an expert in `openapi` but from the 
[doc](https://swagger.io/docs/specification/paths-and-operations/) it seems 
this field is used to identity an operation  and need to be unique across all 
operations. While this is true because we have only one operation, I dont think 
`json_rpc` is very good identifier for the operation (since the value will 
always be `2.0`). From the doc it says this field is optional, should not we 
drop it then?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to