Repository navigation
chore: move the in-development version to 0.3.0.dev0 #691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,9 +19,9 @@ | |
|
|
||
| # Apache Ossie - Core Metadata Specification | ||
|
|
||
| > **DRAFT version** — in development, schema may change before 0.2.0 is released. | ||
| > **DRAFT version** — in development, schema may change before 0.3.0 is released. | ||
|
|
||
| **Version:** 0.2.0.dev0 | ||
| **Version:** 0.3.0.dev0 | ||
|
|
||
| ## Goals | ||
|
|
||
|
|
@@ -96,7 +96,7 @@ not define a bundle format or cross-model references. | |
|
|
||
| | Field | Type | Required | Description | | ||
| |-------|------|----------|-------------| | ||
| | `version` | string | Yes | Apache Ossie specification version (`0.2.0.dev0`) | | ||
| | `version` | string | Yes | Apache Ossie specification version (`0.3.0.dev0`) | | ||
| | `name` | string | Yes | Unique identifier for the semantic model | | ||
| | `description` | string | No | Human-readable description | | ||
| | `ai_context` | string/object | No | Additional context for AI tools (e.g., custom instructions) | | ||
|
|
@@ -108,7 +108,7 @@ not define a bundle format or cross-model references. | |
| ### Example | ||
|
|
||
| ```yaml | ||
| version: 0.2.0.dev0 | ||
| version: 0.3.0.dev0 | ||
| name: sales_analytics | ||
| description: Sales and customer analytics model | ||
| ai_context: | ||
|
|
@@ -127,7 +127,7 @@ The same document structure in JSON: | |
|
|
||
| ```json | ||
| { | ||
| "version": "0.2.0.dev0", | ||
| "version": "0.3.0.dev0", | ||
| "name": "sales_analytics", | ||
| "datasets": [ | ||
| {"name": "orders", "source": "sales.public.orders"} | ||
|
|
@@ -137,13 +137,13 @@ The same document structure in JSON: | |
|
|
||
| ### Migrating earlier document shapes | ||
|
|
||
| This is a breaking change in the unreleased `0.2.0.dev0` specification. Earlier | ||
| This is a breaking change in the unreleased `0.3.0.dev0` specification. Earlier | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: the break is still in the 0.2.0.dev0 snapshot. 0.3.0.dev0 should always have the flattening applied. (non-blocking side note: perhaps these kinds of migration notes should in a separate file rather than the core -spec. the core spec just states the current state w/o reflecting on the past) |
||
| releases and earlier development snapshots use a `semantic_model` array. The | ||
| current schema accepts only the flat document shape; it does not accept the array | ||
| or an object-valued wrapper. | ||
|
|
||
| To migrate a document containing one model, move that model's properties to the | ||
| root and remove `semantic_model`. Use `version: 0.2.0.dev0` for the migrated | ||
| root and remove `semantic_model`. Use `version: 0.3.0.dev0` for the migrated | ||
| document. Remove any root-level `dialects` and `vendors` declarations; preserve | ||
| per-expression dialects and vendor information in `custom_extensions`. For | ||
| multiple models, create one document per model and validate each result. An empty | ||
|
|
@@ -671,7 +671,7 @@ Future versions may add these. | |
| Here's a complete semantic model example showing all components working together: | ||
|
|
||
| ```yaml | ||
| version: 0.2.0.dev0 | ||
| version: 0.3.0.dev0 | ||
| name: ecommerce_analytics | ||
| description: E-commerce sales and customer analytics | ||
| ai_context: | ||
|
|
@@ -799,7 +799,8 @@ ai_context: | |
|
|
||
| ## Version History | ||
|
|
||
| - **0.2.0.dev0** (Unreleased): In-development next minor release. Schema is mutable; do not depend on this version in production. | ||
| - **0.3.0.dev0** (Unreleased): In-development next minor release. Schema is mutable; do not depend on this version in production. | ||
| - Replaces `0.2.0.dev0`: there is no 0.2.0 release. Documents that declare `version: 0.2.0.dev0` must declare `0.3.0.dev0`. | ||
| - Breaking: each standalone document contains one model directly at the root; the `semantic_model` array is removed. | ||
| - Breaking: metric expressions, `primary_key`, `unique_keys`, and relationship `from_columns`/`to_columns` refer to dataset fields, not columns of the dataset's `source`. Model-scoped metric expressions must use qualified `dataset.field` references; dataset-scoped metric expressions use unqualified field names. Earlier versions did not specify this, and some converters read these names as source columns; those converters must now resolve them as fields. See [Name Resolution](#name-resolution). | ||
| - **0.1.1** (2025-12-11): Initial release | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker, but no workflow runs anything under compliance/. validation-ci.yml and python-ci.yml do not list it in their paths, and neither runs the grader tests or validates the fixtures. So the green checks on this PR do not cover this file or the nine *.ossie.yaml fixtures. Locally, the 13 grader tests pass and all nine fixtures validate.
This matters more after the rename. #631 adds five more portability fixtures that declare 0.2.0.dev0, and #310 adds an ontology example that no CI step validates. Either one can merge green after this PR and leave a document on main that the schema rejects. Should we add compliance/** to the Validation CI paths, with steps that run the grader tests and validate the fixtures? A follow-up PR is fine too.