Hi I want to connect some S3 service and the JSON needs Felds with - in the name.
class CookiesSchema(Schema):
CloudFront_Policy: str = Field(..., alias="CloudFront-Policy")
How can I return {"CloudFront-Policy": "abcde"}
I get this Error:
Error extracting attribute: TemplateSyntaxError: Invalid character ('-') in variable name: 'CloudFront-Policy' [type=get_attribute_error, input_value=<DjangoGetter: CookiesSch...air_Id='KEDIJMZ6J0APU')>, input_type=DjangoGetter]
For further information visit https://errors.pydantic.dev/2.12/v/get_attribute_error
Hi I want to connect some S3 service and the JSON needs Felds with - in the name.
How can I return {"CloudFront-Policy": "abcde"}
I get this Error:
Error extracting attribute: TemplateSyntaxError: Invalid character ('-') in variable name: 'CloudFront-Policy' [type=get_attribute_error, input_value=<DjangoGetter: CookiesSch...air_Id='KEDIJMZ6J0APU')>, input_type=DjangoGetter]
For further information visit https://errors.pydantic.dev/2.12/v/get_attribute_error