Skip to content

Support ODPS v1.1.0 - #11

Merged
andredlng merged 1 commit into
mainfrom
odps-1.1.0
Sep 11, 2026
Merged

Support ODPS v1.1.0#11
andredlng merged 1 commit into
mainfrom
odps-1.1.0

Conversation

@andredlng

Copy link
Copy Markdown
Collaborator

Summary

  • Vendor the ODPS v1.1.0 JSON Schema (released 2026-09-08) alongside v1.0.0. New in v1.1.0: type, context, synonyms, deprecated, customProperties[].vendor, element ids, SBOM metadata; status and port version/contractId are now optional.
  • lint validates against the bundled schema for the apiVersion the document declares, mirroring datacontract-cli #1606: v1.1.0 → v1.1.0 schema, v1.0.0/v0.9.0 → v1.0.0 schema, unknown → newest (which then reports the bad apiVersion). Needed because v1.1.0 loosened required fields, so a v1.0.0 document must not pass without status or with v1.1.0-only fields.
  • Check names state which schema ran (Data product is valid against ODPS v1.1.0 / Check that data product is valid against ODPS v1.0.0); no version is named for a custom --json-schema.
  • init writes apiVersion: v1.1.0 with a commented type stub.
  • Add dataproduct/schemas/download to refresh the vendored schemas, parallel to datacontract-cli.
  • Specs, README, AGENTS.md, and CHANGELOG updated. New fixtures and tests cover a full v1.1.0 document, optional status, v1.1.0 fields rejected under v1.0.0, the version map, and check naming.

Vendor the ODPS v1.1.0 JSON Schema and make lint pick the bundled schema
by the document's apiVersion, since v1.1.0 relaxed required fields
(status, port version/contractId) and added new ones (type, context,
synonyms, deprecated, customProperties[].vendor, element ids). v1.0.0
and v0.9.0 documents keep validating against the v1.0.0 schema. The init
template now emits apiVersion v1.1.0.
@andredlng andredlng self-assigned this Sep 11, 2026
@andredlng
andredlng merged commit 973a9e3 into main Sep 11, 2026
7 checks passed
@andredlng
andredlng deleted the odps-1.1.0 branch September 11, 2026 12:36
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