Skip to content

Replace all 'oneOf' with 'anyOf' and 'flatten' where appropriate#113

Merged
neilmb merged 2 commits intotiger-teamfrom
bug/oneOf-fix
Apr 3, 2026
Merged

Replace all 'oneOf' with 'anyOf' and 'flatten' where appropriate#113
neilmb merged 2 commits intotiger-teamfrom
bug/oneOf-fix

Conversation

@zopalmer14
Copy link
Copy Markdown

Should resolve: #90

Note: This PR only affects the JSON conventions/structure and does not change/alter the schema

Changes:

  • replace all instances of oneOf with anyOf
  • flatten anyOf structures with type null or array if they aren't too complicated

Changes:
- replace all instances of 'oneOf' with 'anyOf'
- flatten 'anyOf' structures with null and array if they aren't too complicated
@zopalmer14 zopalmer14 added bug Something isn't working ready-for-review labels Mar 31, 2026
@zopalmer14 zopalmer14 changed the title Bug/one of fix Replace all 'oneOf' with 'anyOf' and 'flatten' where appropriate Mar 31, 2026
@zopalmer14 zopalmer14 linked an issue Mar 31, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Collaborator

@jbrown-xentity jbrown-xentity left a comment

Choose a reason for hiding this comment

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

I pulled the branch and confirmed no other usage of oneOf exists, and all these changes look good! This is ready for merging with Tiger Team approval...

{
"type": "string",
"description": "reference iri of Person",
"description": "reference iri of author",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good drive-by improvement!

zopalmer14 added a commit that referenced this pull request Mar 31, 2026
Relevant classes: Activity, Agent, Catalog, Data Service, Dataset, Document, and Standard

Changes:
- change 'category' from a single entry to a list in all relevant classes but Dataset (it's already a list here)
- replace 'oneOf' with 'anyOf' and 'flatten' in line with PR #113
- fix property descriptions for consistency and to align with changes
@neilmb neilmb merged commit 3b01ece into tiger-team Apr 3, 2026
2 checks passed
@jbrown-xentity jbrown-xentity mentioned this pull request Apr 3, 2026
@zopalmer14 zopalmer14 deleted the bug/oneOf-fix branch April 13, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: usage of oneOf causing problems

3 participants