HarryWu-CHN commented on issue #29893:
URL: https://github.com/apache/airflow/issues/29893#issuecomment-1875515968

   @potiuk 
   Thank you for telling me about the task in detail!🌸 But just for `dags` or 
`dagRuns`, isn't it OK to just add 'only' parameter when the Schema() is 
created.
   ```
   dag_schema = DAGSchema(only=fields)
   return dag_schema.dump(dag, )
   ```
   And add `nullable: true` to `airflow/api_connexion/openapi/v1.yaml` in 
returns properties.
   
   I think it's hard to solve this task generally for now because swagger yaml 
files are not automatically generated from the schema. If it can be generated 
automatically, yaml can also set `nullable` values based on whether the schema 
field `required` is true or not


-- 
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