Skip to content

Validate documented Model Target model enum fields - #3436

Merged
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/model-target-issue-pr-v8
Aug 13, 2026
Merged

Validate documented Model Target model enum fields#3436
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/model-target-issue-pr-v8

Conversation

@adamtheturtle

@adamtheturtle adamtheturtle commented Aug 12, 2026

Copy link
Copy Markdown
Member

Towards #3193.

The spec audit on that issue lists the documented enumerations which the mock does not check: simplify, automaticColoring, optimizeTrackingFor, realisticAppearance, motionHint and trackingMode (cadDataFormat is already validated).

This change validates those model fields against the values documented in the Model Target OpenAPI specification, following the existing cadDataFormat pattern: a non-string value is rejected with error.expected.jsstring and a string outside the enumeration with error.expected.validenum.

realisticAppearance is documented as a model-level enumeration ("true"/"false"/"auto") for CadModelAdvanced only, so it is validated for advanced datasets only and standard dataset creation does not validate it.

  • Standard-dataset cases are covered in the verified fake TestErrorResponses.test_invalid_dataset_request parametrisation, so they will run against real Vuforia once working credentials are available.
  • The advanced-only realisticAppearance case is in TestMockOnlyErrors with the same documented reason as the other advanced cases: the available test account lacks the advanced-dataset scope, so real Vuforia returns a 403 before validating the body.
  • docs/source/differences-to-vws.rst is updated to describe the validated fields and the standard/advanced split.

🤖 Generated with Claude Code

Towards #3193: validate the model fields which the Model Target OpenAPI
specification documents as enumerations - automaticColoring, motionHint,
optimizeTrackingFor, simplify and trackingMode, plus realisticAppearance
for advanced datasets only - following the existing cadDataFormat
validation pattern.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant