Skip to content

Feat/consys custom formats#354

Open
tipatterson-dev wants to merge 2 commits into
opensensorhub:masterfrom
tipatterson-dev:feat/consys-custom-formats
Open

Feat/consys custom formats#354
tipatterson-dev wants to merge 2 commits into
opensensorhub:masterfrom
tipatterson-dev:feat/consys-custom-formats

Conversation

@tipatterson-dev

Copy link
Copy Markdown
Member

This adds an extension for modules to add custom formats. In particular, swe+proto requires that other formats be exposed via the Connected Systems API module. See opensensorhub/osh-addons#224

… schemas

Extend the CustomObsFormat SPI with command-side hooks (getCommandBinding,
getCommandSchemaBinding) and an isAutoSelectable flag, and thread the
configured customFormats map through the obs, command, command-status,
datastream-schema and command-stream-schema handlers so a registered format
(e.g. application/swe+proto) can serve its own data and schema views.
… POST

Dispatch datastream and control-stream creation to a registered custom
format's binding when the embedded schema names it. DataStreamBindingJson
gains a custom-format branch ahead of the application/swe+ prefix match;
CommandStreamBindingJson buffers the schema object and dispatches on
commandFormat, staying backward-compatible (a missing commandFormat still
uses the default JSON binding); CommandStreamHandler threads the
customFormats map through to the binding.
@tipatterson-dev tipatterson-dev marked this pull request as draft June 29, 2026 22:05
@tipatterson-dev tipatterson-dev marked this pull request as ready for review June 29, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant