Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. General Discussion
  3. Another OpenAPI tool crashes and burns

Another OpenAPI tool crashes and burns

Scheduled Pinned Locked Moved General Discussion
activitypubdevbangheadhereactivitypub
1 Posts 1 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • fentiger@zotum.netF This user is from outside of this forum
    fentiger@zotum.netF This user is from outside of this forum
    fentiger@zotum.net
    wrote last edited by
    #1
    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
    ? 1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    Powered by NodeBB Contributors
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups