-
Couldn't load subscription status.
- Fork 448
Refactor package types to use dedicated schema types per package type (NPM, PyPI, NuGet, OCI, MCPB) #634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Refactor package types to use dedicated schema types per package type (NPM, PyPI, NuGet, OCI, MCPB) #634
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
d97db44
Add discriminated union to Package schema for canonical references
rdimitrov 90a363c
Make transport required in Package struct to match schema
rdimitrov e7159e6
Update OCI validator to support canonical image references with diges…
rdimitrov 3923da9
Regenerate server.schema.json with discriminated union for packages
rdimitrov 00554ea
Update OCI validator tests to use canonical references
rdimitrov 8209174
Add implementation summary for canonical package references
rdimitrov 46d10ef
Clarify database data migration requirement
rdimitrov 6534597
Add database migration for canonical package references
rdimitrov 803b35c
Convert seed data to canonical package format
rdimitrov 4636b97
Update implementation summary with completed phases
rdimitrov 252714b
Update publisher CLI to generate canonical OCI references
rdimitrov 89b8bad
Update OCI package examples to use canonical references
rdimitrov 9004288
Mark implementation as complete in summary
rdimitrov 7bf9672
Add validation to reject old OCI package format
rdimitrov 5123d11
Add validation to reject extra fields in MCPB packages
rdimitrov 26e31d9
Add validation to reject fileSha256 in non-MCPB packages
rdimitrov b6f12cb
Fix linting errors and unit tests
rdimitrov 1c81e60
Update the migration to handle the MCPB changes too
rdimitrov b6a47f7
Update the migration to remove fileSha256 properties
rdimitrov 7c0bbf2
Streamline schema changes from type per package to flavors
rdimitrov fe2cdf5
Make schema types looser
rdimitrov dd2a68a
Revert the openapi schema to main
rdimitrov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -270,7 +270,6 @@ components: | |
| required: | ||
| - registryType | ||
| - identifier | ||
| - version | ||
| - transport | ||
| properties: | ||
| registryType: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -288,7 +288,6 @@ | |
| "required": [ | ||
| "registryType", | ||
| "identifier", | ||
| "version", | ||
| "transport" | ||
| ], | ||
| "type": "object" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[can be a follow up PR if you agree] I feel like we should use the "flavors" of Package types internally, and just map each of them to a "list of supported registry types" that can be expanded over time as support is added for more registry types. Instead of bespoke recreating each of the flavors on a per-type basis from Package in this switch statement.