pierrejeambrun commented on code in PR #42469:
URL: https://github.com/apache/airflow/pull/42469#discussion_r1776778191
##########
airflow/api_fastapi/openapi/v1-generated.yaml:
##########
@@ -123,13 +123,56 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
+ /public/dags/{dag_id}:
+ patch:
+ tags:
+ - DAG
+ summary: Patch Dag
+ description: Update the specific DAG.
+ operationId: patch_dag_public_dags__dag_id__patch
+ parameters:
+ - name: dag_id
+ in: path
+ required: true
+ schema:
+ type: string
+ title: Dag Id
+ - name: update_mask
+ in: query
+ required: false
+ schema:
+ anyOf:
+ - type: array
+ items:
+ type: string
+ - type: 'null'
+ title: Update Mask
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DAGPatchBody'
+ responses:
+ '200':
+ description: Successful Response
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DAGResponse'
+ '422':
Review Comment:
Good point. I'll do that a follow up PR right after this one because fastapi
does not handle this natively (something easy and straight forward to do that,
beside duplicating some code which I don't like), and i'll have to indroduce
some exception wrapper HTTPException.
Just to keep things separated and easy to review because other endpoints of
the new FastAPI api will be updated, I'll merge this one and ping you on the
new one. :)
--
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]