File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [ Unreleased]
8
8
9
+ ### Fixed
10
+ - Do not include the endpoint property in the serialized subrequest.
11
+
9
12
## [ 1.0.0-beta.3] -- 2021-07-26
10
13
### Fixed
11
14
- Specify correct Content-Type header for 1.x servers.
Original file line number Diff line number Diff line change @@ -104,6 +104,9 @@ def send(
104
104
if sub .uri is None and sub .endpoint is not None :
105
105
sub .uri = f"{ self .session .hostname } /{ sub .endpoint } "
106
106
107
+ # Set the endpoint to None so it is not included in the serialized subrequest.
108
+ sub .endpoint = None
109
+
107
110
# Auto populate headers for each sub-request.
108
111
if "Accept" not in sub .headers :
109
112
sub .headers ["Accept" ] = "application/vnd.api+json"
@@ -118,7 +121,7 @@ def send(
118
121
119
122
# Generate the json to send. It is important to use the .json() method
120
123
# of the model for correct serialization.
121
- json = blueprint .json (exclude = { "subrequest" : { "endpoint" }}, exclude_none = True )
124
+ json = blueprint .json (exclude_none = True )
122
125
options = {"data" : json }
123
126
124
127
response = self .session .http_request (
You can’t perform that action at this time.
0 commit comments