Skip to content

refactor Organization.json#79

Open
zopalmer14 wants to merge 2 commits intomainfrom
rec/Organization-fix
Open

refactor Organization.json#79
zopalmer14 wants to merge 2 commits intomainfrom
rec/Organization-fix

Conversation

@zopalmer14
Copy link

Summary

In line with James's suggestion, updated the Organization class to ease the backwards compatibility with DCAT-US 1.1

Should resolve: #31

Relevant Documentation: Organization

Changes to Organization.json:

  • prefLabel - removed from 'required' array and added an option for a null value; eases backwards compatibility and aligns with the cardinality in the documentation

Documentation and jsonschema Desynchronization

I don't think these are particularly important to fix, and I also know we've discussed ditching the HTML documentation and generating the documentation from the jsonschema, but I thought I would list what I noticed here anyways:

  • prefLabel - cardinality is 0..1 in documentation, but 1 in jsonschema; fixed through above changes
  • altLabel - cardinality is 0..n on documentation, jsonschema is 0..1; does the language map change the cardinality?
  • subOrganizationOf - cardinality is 0..n in property description and jsonschema, but 0..1 in class description

- `prefLabel`: removed from 'required' array and added an option for a null value; eases backwards compatibility and aligns with documentation
@zopalmer14 zopalmer14 added enhancement New feature or request ready-for-review labels Mar 12, 2026
Copy link
Collaborator

@neilmb neilmb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this improvement for backwards compatibility. Should we use the new "type": ["null", "string"] pattern for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Recommendation] Organization

3 participants