Another OpenAPI tool crashes and burns

FenTiger @fentiger@zotum.net

Just over a year after Go's OpenAPI generator let me down, the #ActivityPub Content-Type causes the same problem again, this time in Python:
example_client/api/default/put_object.py:34:62: SyntaxError: Simple statements must be separated by newlines or semicolons
   |
33 |     _kwargs["json"] = _body
34 |     headers["Content-Type"] = "application/ld+json; profile="https://www.w3.org/ns/activitystreams""
   |                                                              ^
Is it really that unusual to include parameters in MIME types like this? I'm sure I've seen them all over the place.

Or am I venturing off the beaten track by trying to be explicit about them in my openapi.yml file?

#ActivityPubDev #BangHeadHere
Read more →
0
0

If you have a fediverse account, you can quote this note from your own instance. Search https://zotum.net/item/c0d4c6ef-9f02-4e64-a152-7fe38f571900 on your instance and quote it. (Note that quoting is not supported in Mastodon.)