or run

npx @tessl/cli init
Log in

Version

Files

tile.json

task.mdevals/scenario-7/

Plot Schema Helper

Builds lightweight tooling around the charting library's published schema so engineers can inspect trace attributes and validate figure definitions.

Capabilities

Summarize trace attributes

  • Given a trace type and a list of attribute paths, return per-attribute summaries (path, schema-declared type, whether array values are allowed, short description from the schema), preserving the order of the requested paths and avoiding hardcoded metadata. @test

List array-valued attributes

  • For any trace type, return the attribute paths that accept array values, and for scatter traces the list includes at least coordinate arrays and color arrays such as x, y, and marker.color. @test

Validate figures against schema

  • Validate a figure object (data/layout/config) against the package schema and return structured issues with dot/bracket paths and human-readable messages for every unknown or incorrectly typed property; an invalid marker size or string layout width is reported with the relevant paths, while a valid figure yields an empty list. @test

Implementation

@generates

API

/**
 * Returns ordered schema summaries for requested attributes on a given trace type.
 */
export function summarizeTraceAttributes(traceType, attributePaths);

/**
 * Lists schema paths on the trace type that accept array values.
 */
export function listArrayLinkedAttributes(traceType);

/**
 * Validates a figure object and returns structured issues from schema validation.
 */
export function validateFigureSpec(figure);

Dependencies { .dependencies }

Charting package schema + validator { .dependency }

Uses the charting library's published schema metadata and built-in validation utilities. @satisfied-by