Skip to content

feat: schema package to return structured taxonomy#147

Merged
akijakya merged 11 commits intomainfrom
feat/schema-package-return-structured-taxonomy
Apr 2, 2026
Merged

feat: schema package to return structured taxonomy#147
akijakya merged 11 commits intomainfrom
feat/schema-package-return-structured-taxonomy

Conversation

@akijakya
Copy link
Copy Markdown
Member

@akijakya akijakya commented Mar 27, 2026

  1. schema package GetSchemaSkills etc. now returns Go struct with nested taxonomy
  2. schema package optionally caches the schema dynamically (only results that has been requested) so as long as it lives, it won't hit the OASF API anymore. The cache can be reloaded as well.
  3. added protos so the schema package can be used via the server

Closes #123

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 27, 2026

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedApr 2, 2026, 2:34 PM

@akijakya akijakya marked this pull request as ready for review March 30, 2026 10:13
@akijakya akijakya requested a review from a team as a code owner March 30, 2026 10:13
@akijakya akijakya force-pushed the feat/schema-package-return-structured-taxonomy branch from e919026 to f0d9480 Compare March 30, 2026 16:17
@akijakya akijakya self-assigned this Apr 1, 2026
Copy link
Copy Markdown
Member

@adamtagscherer adamtagscherer left a comment

Choose a reason for hiding this comment

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

Could we use Redis instead of implementing ~x hundred lines of cache in go? Otherwise LGTM

@akijakya
Copy link
Copy Markdown
Member Author

akijakya commented Apr 1, 2026

Could we use Redis instead of implementing ~x hundred lines of cache in go? Otherwise LGTM

I think using an extra service would be an overkill for this use case, and we wouldn't benefit as much from a persistent cache...

@akijakya akijakya force-pushed the feat/schema-package-return-structured-taxonomy branch 2 times, most recently from a3a4073 to 0b6b94f Compare April 1, 2026 14:00
@akijakya akijakya force-pushed the feat/schema-package-return-structured-taxonomy branch 4 times, most recently from 3cb1695 to ab142b4 Compare April 1, 2026 15:45
akijakya added 10 commits April 2, 2026 14:32
Signed-off-by: András Jáky <ajaky@cisco.com>
Signed-off-by: András Jáky <ajaky@cisco.com>
Signed-off-by: András Jáky <ajaky@cisco.com>
Signed-off-by: András Jáky <ajaky@cisco.com>
Signed-off-by: András Jáky <ajaky@cisco.com>
Signed-off-by: András Jáky <ajaky@cisco.com>
Signed-off-by: András Jáky <ajaky@cisco.com>
Signed-off-by: András Jáky <ajaky@cisco.com>
Signed-off-by: András Jáky <ajaky@cisco.com>
Signed-off-by: András Jáky <ajaky@cisco.com>
@akijakya akijakya force-pushed the feat/schema-package-return-structured-taxonomy branch from ab142b4 to 6bbaff3 Compare April 2, 2026 14:32
since there will be no caching implemented when used via the server yet

Signed-off-by: András Jáky <ajaky@cisco.com>
@akijakya akijakya merged commit 47f9a91 into main Apr 2, 2026
7 checks passed
@akijakya akijakya deleted the feat/schema-package-return-structured-taxonomy branch April 2, 2026 14:37
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.

Schema package to return structured taxonomy

3 participants