Skip to content

Commit 2069585

Browse files
committed
Fix: add physicalName for properties
1 parent 32260c1 commit 2069585

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ image: "https://raw.githubusercontent.com/bitol-io/artwork/main/horizontal/color
66

77
This document tracks the history and evolution of the **Open Data Contract Standard**.
88

9+
# v3.0.2
10+
11+
* Added field `physicalName` for the properties in JSON schema.
12+
913
# v3.0.1 - 2024-12-22 - APPROVED
1014

1115
* Added field `authoritativeDefinitions` into JSON schema

docs/examples/all/full-example.odcs.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ schema:
3232
- name: tbl
3333
physicalName: tbl_1
3434
physicalType: table
35+
businessName: Core Payment Metrics
3536
description: Provides core payment metrics
3637
authoritativeDefinitions:
3738
- url: https://catalog.data.gov/dataset/air-quality
@@ -41,7 +42,8 @@ schema:
4142
tags: [ 'finance', 'payments']
4243
dataGranularityDescription: Aggregation on columns txn_ref_dt, pmt_txn_id
4344
properties:
44-
- name: txn_ref_dt
45+
- name: transaction_reference_date
46+
physicalName: txn_ref_dt
4547
primaryKey: false
4648
primaryKeyPosition: -1
4749
businessName: transaction reference date

schema/odcs-json-schema-v3.0.2.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,6 +1555,11 @@
15551555
"type": "string",
15561556
"description": "The physical element data type in the data source. For example, VARCHAR(2), DOUBLE, INT."
15571557
},
1558+
"physicalName": {
1559+
"type": "string",
1560+
"description": "Physical name.",
1561+
"examples": ["col_str_a"]
1562+
},
15581563
"required": {
15591564
"type": "boolean",
15601565
"default": false,

0 commit comments

Comments
 (0)