Skip to content

Support State-Based Model Targets #3348

Description

@adamtheturtle

The Model Target OpenAPI spec and the Web API Authentication page document State-Based Model Targets, which the mock has no support for:

  • stateBasedConfigurationJsonString on each model. When present, a State-Based Model Target dataset is created instead of a regular one.
  • states on each view, an array of state names which must be a subset of the states defined in the state configuration JSON, and which defaults to all states when omitted.
  • The modeltargets.statebasedmodeltarget.all and modeltargets.advancedstatebasedmodeltarget.all scopes.

Acceptance criteria

  • Dataset creation accepts stateBasedConfigurationJsonString and per-view states.
  • states entries are validated against the states declared in the state configuration JSON.
  • Verified fake tests cover creating a state-based dataset and the subset validation error, subject to the test account having the required scope.
  • Any part which cannot be verified against a real database is documented in docs/source/differences-to-vws.rst.

Scope enforcement is tracked separately in #3345, and general creation validation in #3193.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions