Skip to content

feat: accept $schema property - #1784

Merged
pierrecamilleri merged 9 commits into
mainfrom
feat/infer-dp-version-2
Jun 8, 2026
Merged

feat: accept $schema property#1784
pierrecamilleri merged 9 commits into
mainfrom
feat/infer-dp-version-2

Conversation

@pierrecamilleri

@pierrecamilleri pierrecamilleri commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Adds $schema reading from descriptor and writing to_descriptor for datapackage v2 :

  • package.$schema
  • resource.$schema
  • schema.$schema
  • dialect.$schema

A root level [xxx] descriptor MAY have a $schema property

No validation is performed against the $schema properties yet.

implementation details

Implemented on Metadata (_schema_profile property, to not clash with e.g. resource.schema and as $schema is not a valid python symbol), but only child classes with explicit declaration will read it (for others, it will be considered a custom property).

@pierrecamilleri
pierrecamilleri merged commit d906565 into main Jun 8, 2026
10 checks passed
@pierrecamilleri
pierrecamilleri deleted the feat/infer-dp-version-2 branch June 8, 2026 12:32
@zaneselvans

Copy link
Copy Markdown

Thanks for adding this! I recently found that I had to manually add this to some new v2 datapackages I was writing out and was very surprised.

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