Skip to content

[SDK] Add bidirectional transforms and round-trip validation to PA/CA example plugins #768

@SnowboardTechie

Description

@SnowboardTechie

Summary

Following from the discussion on #746, expand the existing PA and CA example plugins to exercise the full Plugin contract with real-world data. Specifically, add from_common transforms so that Plugin.schemas['Opportunity'] provides both directions, and add round-trip validation tests that assert from_common(to_common(x)) equals x against the existing PA/CA snapshot data. This closes the end-to-end validation gap surfaced in #746 without the overhead of standing up a new reference plugin or repo.

Acceptance criteria

Stretch / optional

  • Refresh the snapshot data against the current live source (PA: egrants-apibeta.azurewebsites.net/api/grants/; CA: data.ca.gov datastore API), or document why the snapshot remains pinned
  • Add a standalone live-fetch demo script (not a test) under each example showing how to pipe the live source response into the plugin end-to-end

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    py-sdkRelated to Python SDKsdkIssue or PR related to our SDKs

    Type

    No fields configured for Task.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions