Commit 47c4ac4
committed
feat: register UpperCamelCase as primary type for input types (skip localBlob so far) (open-component-model#2057)
On-behalf-of: Gerald Morrison (SAP) <gerald.morrison@sap.com>
<!-- markdownlint-disable MD041 -->
## Summary
Register UpperCamelCase forms as the primary (default) serialization
type for all input types, consistent with the existing convention used
by access OCIImage/v1, Helm/v1 etc.
## Changes:
- Input types: File/v1 (was file/v1), Dir/v1 (was dir/v1), UTF8/v1 (was
utf8/v1), Helm/v1 (was helm/v1)
**The localBlob/v1 access type IS NOT touched in the PR.**, but already
prepared (including updating all tests using the new types) in [this
branch](https://github.com/morri-son/open-component-model/tree/align-type-notation-for-acces-and-input).
Lowercase forms remain registered as backward-compatible aliases so
existing component descriptors and constructors continue to work.
Adds named constants (Type, LegacyType) to each spec package following
the pattern already established by access type packages. Also adds Type
constants for OCIImage, OCIImageLayer, and Helm access types where
hardcoded strings were previously used in schema registrations.
## Which issue(s) this PR fixes
Usage: Fixes
open-component-model/ocm-project#962
## Dependencies
Tests for type casing have been split off to PR
open-component-model#2071
to get the CI test not failing.
## Related
- ocm-spec: open-component-model/ocm-spec#141
- ocm v1: open-component-model/ocm#1881
- ocm-website:
open-component-model#2244
## Verification
- [x] I have tested the changes locally by running `ocm`
---------
Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
Co-authored-by: Gerald Morrison (SAP) <gerald.morrison@sap.com> 77564291 parent d8f4a1a commit 47c4ac4
157 files changed
Lines changed: 2990 additions & 2263 deletions
File tree
- blog
- 2026-03-16-ocm-controllers-differences
- ocmv2
- categories
- controllers
- community
- engagement
- contributors
- docs
- concepts
- component-identity
- credential-system
- kubernetes-controllers
- kubernetes-deployer
- plugin-system
- resolvers
- resource-repositories
- signing-and-verification
- transfer-and-transport
- getting-started
- create-component-versions
- deploy-helm-charts
- install-the-ocm-cli
- set-up-controller-environments
- how-to
- configure-credentials-for-multiple-registries
- configure-credentials-for-ocm-controllers
- configure-credentials-for-signing
- configure-custom-rbac-for-deployers
- deploy-manifests-with-deployer
- download-resources-from-component-versions
- generate-signing-keys
- how-to-use-the-ocm-cli-container-image
- migrate-from-fallback-to-deterministic-repository-resolvers
- migrate-legacy-credentials
- model-software-products
- resolving-components-across-multiple-registries
- sign-component-versions
- transfer-components-across-an-air-gap
- transfer-helm-charts-with-ocm
- verify-component-versions
- overview
- benefits-of-ocm
- how-ocm-works
- specification
- the-ocm-core-model
- reference
- component-constructor
- component-descriptor
- credential-consumer-identities
- input-and-access-types
- kubernetes-api
- component
- deployer
- repository
- resource
- ocm-cli
- ocm-add-component-version
- ocm-add
- ocm-completion-bash
- ocm-completion-fish
- ocm-completion-powershell
- ocm-completion-zsh
- ocm-completion
- ocm-describe-types
- ocm-describe
- ocm-download-plugin
- ocm-download-resource
- ocm-download
- ocm-generate-docs
- ocm-generate
- ocm-get-component-version
- ocm-get-types
- ocm-get
- ocm-plugin-registry-get
- ocm-plugin-registry-list
- ocm-plugin-registry
- ocm-plugin
- ocm-sign-component-version
- ocm-sign
- ocm-transfer-component-version
- ocm-transfer
- ocm-verify-component-version
- ocm-verify
- ocm-version
- ocm
- resolver-configuration
- resource-repositories
- tutorials
- create-a-multi-component-product
- deploy-helm-charts-with-bootstrap-setup
- signing
- certificate-chains-pem
- plain-signatures
- understand-credential-resolution
- working-with-resolvers
- governance
- latest/schemas/kubernetes/controller
- legacy
- categories
- community
- contributors
- docs
- concepts
- getting-started
- overview
- reference
- ocm-cli
- add
- check
- clean
- create
- describe
- download
- get
- help
- list
- set
- show
- sign
- transfer
- verify
- tutorials
- tags
- tags
- community
- kubernetes
- release
- supply-chain
- v2
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
2 | 8 | | |
0 commit comments