Skip to content

Hide properties and entities that have been deprecated for 2-3 releases#81

Open
Fannon wants to merge 3 commits intomainfrom
hide-deprecated-entities-and-properties
Open

Hide properties and entities that have been deprecated for 2-3 releases#81
Fannon wants to merge 3 commits intomainfrom
hide-deprecated-entities-and-properties

Conversation

@Fannon
Copy link
Copy Markdown
Member

@Fannon Fannon commented Feb 26, 2026

Goal is to make the human readable documentation less daunting by hiding properties and entities that have been deprecated for a longer time already. They are just hidden from the documentation and still part of the JSON Schema / Interfaces. So this is not a breaking change, just cosmetic cleanup.

Alternative idea: Generate the documentation twice, so there is also a version where everything can be seen. But by default show the cleaned up version.

Changed

  • Hidden deprecated properties from documentation using x-hide: true:
    • policyLevel and customPolicyLevel (deprecated since v1.9.9) - use policyLevels instead
    • entityTypeMappings (deprecated since v1.11.0) - use exposedEntityTypes instead
    • systemInstanceAware (deprecated since v1.12.0) - use perspective instead
    • Related definitions: EntityTypeMapping, ApiModelSelectorOData, ApiModelSelectorJsonPointer, EntityTypeOrdIdTarget, EntityTypeCorrelationIdTarget
  • Updated documentation to reference current concepts instead of deprecated ones:
    • Changed policyLevel/customPolicyLevel references to policyLevels in spec index
    • Changed systemInstanceAware references to perspective in access strategy docs and FAQ
  • Removed deprecated property usage from example files (systemInstanceAware, policyLevel, customPolicyLevel)

@Fannon Fannon self-assigned this Feb 26, 2026
@github-actions
Copy link
Copy Markdown

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://open-resource-discovery.github.io/pr-preview/specification/pr-81/

Built to branch main at 2026-02-26 09:36 UTC.
Preview will be ready when the GitHub Pages deployment is complete.


entityTypeMappings: &entityTypeMappings
type: array
x-hide: true
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am not sure, if we can already hide it already. BAH is not yet supporting exposedEntityTypes, S/4 is still exposing it...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, but we would just hide it from documentation. For new adopters, we don't want them to implement / see this. Also it looks like there is now no consumer for it, except BAH using it to create the links (which would be simpler with exposedEntityTypes

Hiding this would greatly help cleaning things up, as it also removes some objects

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I understand, but the support for exposedEntityTypes is not given and we still want the links and we haven't updated all guidelines to use exposedEntityTypes, do we? So documentation is still needed until one can really use exposedEntityTypes.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Then let's push BAH to support it. And the guidelines should be updated already I guess.. we'd need to check

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@swennemers do you have strong objectsions? I would prefer to do this sooner than later, as it cleans up and reduces chances that deprecated features are used for new developments.

@maiargu - how easy would it be to support in spec-toolkit that we generate the markdown documentation twice, once with and once without hidden content? Is this something we should do from the beginning?

Copy link
Copy Markdown
Member

@swennemers swennemers left a comment

Choose a reason for hiding this comment

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

in general +1, but I have doubts on hiding entityTypeMapping yet

@open-resource-discovery-bot
Copy link
Copy Markdown

PR Preview
🚀 View preview at:
https://open-resource-discovery.github.io/pr-preview/specification/pr-81/

Built to branch main at 2026-03-26 15:09 UTC.
open-resource-discovery/pr-preview-action

Comment thread CHANGELOG.md

### Changed

- Hidden deprecated properties from documentation using `x-hide: true`:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think changes done to the UI by appling x-hide don't need to be added to the changelog file, the exposed npm package JSON schema did not change at all for consumers

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'd still prefer to keep it in, because many read the documentation as a page and the changelog might at least give a hint why some things have now disappeared. Better over-communicate here :) But yes, for JSON Schema / NPM consumption, it's not changing anything

@Fannon Fannon added this to the 1.15.0 milestone May 7, 2026
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.

4 participants