Skip to content

Prepare v4.2: fix Wing DTDL, add Wing to SHACL, NuGet Trusted Publishing - #290

Merged
PeteHart merged 2 commits into
mainfrom
claude/vibrant-meitner-66z8vm
Nov 19, 2026
Merged

PeteHart merged 2 commits into
mainfrom
claude/vibrant-meitner-66z8vm

Conversation

@PeteHart

Copy link
Copy Markdown
Contributor

Why

  • Merge and Generate has been failing on main since the Wing merge (Addition of new class Space:Wing and ODR. #257) (run). Wing.json used a localized object for comment, but DTDL v2 only allows a plain string there. As a result, the merged RealEstateCore.DTDLv2.jsonld, the docs and the API were never regenerated with Wing.
  • v4.1 never reached nuget.org. The publish step failed with an auth error, so nuget.org still tops out at 4.0.0.19.

Changes

  • Wing.json: comment → description (localizable in DTDL v2).
  • rec.ttl: added rec:Wing (subclass of rec:SubBuilding) to the SHACL model.
  • ReleaseNotes.md: V4.2 section (Wing, ODR 004, NuGet note).
  • push_to_nuget.yml: publishes using nuget.org Trusted Publishing (GitHub OIDC → short-lived key via NuGet/login@v1) instead of the NUGET_API_KEY secret. A matching policy (rec-github, owner RealEstateCore, workflow push_to_nuget.yml, package RealEstateCore.Ontology.DTDLv2) is now active on nuget.org.

Testing

Ran locally (.NET 8 with roll-forward):

  • DTDL Validator: valid, 5012 entities.
  • DTDL Merger: fails on current main with the same error as CI; passes with this fix, and Wing is in the output.
  • DTDL2MD and DTDL2OAS: both run cleanly on the merged output.

The Trusted Publishing login can only be tested by a real release.

Release steps after merge

  1. Confirm Merge and Generate is green. It regenerates the jsonld and docs and bumps the version to 4.1.0.1.
  2. Run Manually set .nuspec version with 4.2.0.0.
  3. Publish GitHub release v4.2.0 from main. This triggers the NuGet push.
  4. Once 4.2.0 is on nuget.org, the old NUGET_API_KEY secret can be deleted.

Generated by Claude Code

- Wing.json: use localizable 'description' instead of 'comment' (DTDL v2
  'comment' must be a plain string). This broke the DTDL merger on main
  after the Wing merge, so the merged jsonld/docs never got regenerated.
- Add rec:Wing to the SHACL model.
- Add V4.2 release notes.
- push_to_nuget: fail early with a clear message if NUGET_API_KEY is
  missing, and pass the key explicitly to nuget push.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Uh9QpXkxdXkiX7AKo3Wso
@PeteHart
PeteHart merged commit 260f917 into main Nov 19, 2026
1 check passed
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.

2 participants