PolicyEngine / PolicyEngine/policyengine-app-v2

Align user-association payload adapters with API contracts

Open
#195 0 comments 0 reactions 1 assignee View on GitHub

@SakshiKekre is already working on this.

Since Sep 15, 2025.

Dominant language
HTML
Stars
1
Forks
3
Avg merge
1d 50m
Merged PRs (30d)
39

Description

Base policy, household, simulation, and report creation payloads now match the API's current creation schemas. The remaining work concerns user-association payloads and endpoints.

  • Replace any in household and geographic association adapters with explicit request and response types.
  • Resolve inconsistent camel-case and snake-case conversion across association adapters.
  • Confirm that each user-*-association endpoint used by the app exists in the intended API version and matches the corresponding database schema.
  • Confirm that database-owned fields, including created_at and updated_at, are not generated or sent by the client unless an endpoint explicitly requires them. This absorbs #199.
  • Add cross-repository contract tests or generated types so future API changes fail deterministically.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.