Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions types/composer-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,27 @@
"requirement": "required",
"case_sensitive": false,
"native_name": "vendor",
"note": "The namespace is the vendor. The namespace is not case sensitive and must be lowercased."
"note": "The namespace is the vendor. The namespace is not case sensitive and must be lowercased.",
"normalization_rules": [
"It is not case sensitive and must be lowercased."
Copy link
Member

Choose a reason for hiding this comment

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

This is redundant with the "case_sensitive" flag IMHO that implies lowercasing?

]
},
"name_definition": {
"requirement": "required",
"case_sensitive": false,
"native_name": "name",
"note": "The name is not case sensitive and must be lowercased. Private, local packages may have no name. In this case you cannot create a purl for these."
"note": "The name is not case sensitive and must be lowercased. Private, local packages may have no name. In this case you cannot create a purl for these.",
"normalization_rules": [
"It is not case sensitive and must be lowercased."
Copy link
Member

Choose a reason for hiding this comment

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

This is redundant with the "case_sensitive" flag IMHO that implies lowercasing?

]
},
"version_definition": {
"native_name": "version"
"requirement": "required",
Copy link
Member

Choose a reason for hiding this comment

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

Versions are never required per spec.

"native_name": "version",
"note": "The version is the package version and is a required component."
},
"examples": [
"pkg:composer/laravel/[email protected]"
"pkg:composer/laravel/[email protected]",
"pkg:composer/symfony/[email protected]"
]
}
}