Dev-iL commented on PR #77113: URL: https://github.com/apache/airflow/pull/77113#issuecomment-7021851695
> Shouldn't the same treatment be applied to XCom responses as well? Yes, this is noted in the description under the "Not in this PR" section: > The XCom models (`execution_api/datamodels/xcom.py`) and the public API state store models have the same `JsonValue` fields. I want to measure those routes before changing them, and I will open follow-ups. --- > The pydantic docs say this https://pydantic.dev/docs/validation/latest/concepts/performance/#dont-do-validation-when-you-dont-have-to-use-any-to-keep-the-value-unchanged Right - since the `source_type` input to `_SkipJsonValueWalk` is already a validated Json, we skip revalidating it by using `Any`. That's where the savings come from. Did I miss what you meant? -- 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]
