Skip to content

add basic support for tool resource metadata schemas#55

Merged
sblack-usu merged 11 commits intomainfrom
toolresource
Feb 10, 2026
Merged

add basic support for tool resource metadata schemas#55
sblack-usu merged 11 commits intomainfrom
toolresource

Conversation

@sblack-usu
Copy link
Contributor

@sblack-usu sblack-usu commented Jan 5, 2026

This accounts for validation issues happening with metadata extraction because ToolResource (Web App Connector) was not supported by hsmodels.

I intentionally left out the Web App Connector specific fields to implement this quickly and those fields are not being used currently. These changes recognize the ToolResource type and treat it like any other resource.

There were just under 300 resources failing validation either here in hsmodels or in the resulting cloud native schemas. I went through each issue and loosened up the validation based on those resources.

if len(creator_order_numbers) != len(set(creator_order_numbers)):
raise ValueError("creator_order values must be unique")
#if len(creator_order_numbers) != len(set(creator_order_numbers)):
# raise ValueError("creator_order values must be unique")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This validation was failing for a single resource with many creators. I just removed this validation check to allow the metadata to be written to disk.

Copy link
Member

@pkdash pkdash left a comment

Choose a reason for hiding this comment

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

Does support for the web app resource have any effect on hsclient?

gt=-90,
lt=90,
gte=-90,
lt3=90,
Copy link
Member

Choose a reason for hiding this comment

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

typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, fixing.

@sblack-usu
Copy link
Contributor Author

Does support for the web app resource have any effect on hsclient?

Yes, it means that web app resources can be retrieved and updated by hsclient now. Though a user will only be able to access the core metadata fields.

You have me thinking more deeply about this now... I think if a user updates metadata fields with this schema, the other fields would be removed when saving.

We don't necessarily need to make this release available to hsclient at this time though.

@sblack-usu sblack-usu merged commit 2f9f2af into main Feb 10, 2026
1 check failed
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.

Identify and fix validation issues when exporting user metadata for discoverable resources

2 participants

Comments