Skip to content

Display encoding information in schema views #30

@Sam-Bolling

Description

@Sam-Bolling

Summary

The library parses encoding metadata (TextEncoding, JSONEncoding, BinaryEncoding, XMLEncoding) via parseEncoding(), but the demo never displays how observation/command data is encoded.

Current Behavior

  • Schema display shows fields, types, UoM, and definitions
  • No indication of how values are actually encoded (delimiters, block separators, byte order, etc.)

Proposed Change

  • After the schema field table, add an "Encoding" section showing:
    • Encoding type badge (Text / JSON / Binary / XML)
    • For TextEncoding: tokenSeparator, blockSeparator, decimalSeparator, collapseWhiteSpace
    • For BinaryEncoding: byteOrder, byteEncoding, member details
    • For JSON/XML: minimal config display
  • Gate behind the schema response parser output (depends on feat: SWE Common schema display for datastreams #2 — using parseDatastreamSchemaResponse())

Library Support

  • parseEncoding() is fully implemented and exported
  • Returns typed encoding objects with all relevant configuration

Priority

Medium — helpful for understanding data formats, especially for interoperability testing

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions