Skip to content

test: Cover Organization level fields, and remove the beta:virtualTour exclusion - #519

Open
howaskew wants to merge 4 commits into
masterfrom
test/organization-level-rules
Open

howaskew wants to merge 4 commits into
masterfrom
test/organization-level-rules

Conversation

@howaskew

Copy link
Copy Markdown
Contributor

Do not merge until data-models 3.0.12 is released (openactive/data-models#213): the new tests need its Organization rules, so test fails until then. Re-run the checks after the release.

Merging releases 3.0.5 to npm and triggers the validator site and test suite. This is the first release to use the npm wait step (#518).

Summary

Test-only changes:

  1. Organization level data. data-models gives a stand-alone Organization (the top-level object, or an RPDE item's data, in feed mode) its own required and recommended fields, keyed by the containing field names $ and data. New tests in src/validate-spec.js check a stand-alone Organization (including the required beta:dateVerified, with the beta namespace mocked, and the required license) and an RPDE page of Organizations without license on each item, and that an Organization used as an organizer is unaffected. They also catch any change to how the validator names the root node ($) or the feed item's data.
  2. Remove the beta:virtualTour exclusion from the example tests. It was added while beta:virtualTour was removed from the beta namespace because its reference to 3DModel broke the model libraries (Beta property reference to 3DModel has broken the generated libraries models-lib#62). beta:virtualTour now refers to schema:3DModel (Use core schema.org terms from 30.1 and add beta:dateVerified ns-beta#42), and the examples validate without the exclusion.

Verification

With data-models from openactive/data-models#213: 456 specs, 0 failures, including lint and place_example_1.json (the only example using beta:virtualTour).

When squash-merging, check the suggested commit message does not contain a skip-CI marker.

howaskew and others added 4 commits October 30, 2026 15:02
The examples spec ignored failures mentioning beta:virtualTour while it
was temporarily removed from the beta namespace (openactive/models-lib#62).
It has been in the beta namespace since, and now refers to
schema:3DModel (openactive/ns-beta#42), so the examples validate
without the exclusion: 36 example specs and the full suite (448 specs)
pass with data-models 3.0.11 and the live beta namespace.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
data-models gives a stand-alone Organization (the top-level object, or
an RPDE item's data, in feed mode) its own required and recommended
fields, keyed by the containing field names `$` and `data`. Test both,
and that an Organization used as an organizer is unaffected, so a change
to either name is caught.

Requires the data-models release with these rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The valid Organization now includes the beta namespace context and
beta:dateVerified, with the beta namespace mocked as in the other tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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