Replies: 1 comment
-
| Sovled by setting the content type to  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I may be completely incorrect here, but I'm not quite sure how to handle this situation based on examples in the docs. I have a route that returns a
Response. Inside this I have two pydantic classes as a union. I have attached a test I found from the powertools code that is essentially my scenario:Ignoring the schema asserts, when I take this code, and run
resolveon the app instance, I get back a payload which is a dictionary containing the typeOrder, rather than a serialised version ofOrder. This isn't something I can return from my lambda handler to API gateways so I was wondering what the correct way to do this is (if at all)?Beta Was this translation helpful? Give feedback.
All reactions