Document case sensitivity of name fields in API docs#5079
Merged
philippthun merged 1 commit intoMay 19, 2026
Merged
Conversation
Member
Author
|
Backwards Compatibility Tests need this fix: #5085 |
The API has inconsistent case sensitivity behavior across resources due to historical schema choices: some name columns use citext (case-insensitive) while others use plain varchar (case-sensitive). This was completely undocumented, causing confusion for API consumers. Add (case-insensitive) or (case-sensitive) annotations to: - Create endpoint name parameters, including uniqueness scope - List endpoint name filter parameters - Cross-resource name filters (e.g. service_broker_names) Case-insensitive: apps, organizations, spaces, domains, isolation segments, organization quotas, service plans, service offerings, tasks Case-sensitive: service instances, buildpacks, stacks, security groups, service brokers, space quotas, service credential bindings Also remove the misspelled 'case_insenstive' option from three migrations (stacks, lockings, frameworks). The typo meant the option was silently ignored, so these columns were always case-sensitive. Removing the dead option makes the code reflect actual behavior.
0d9771f to
3d74764
Compare
johha
approved these changes
May 18, 2026
ari-wg-gitbot
added a commit
to cloudfoundry/capi-release
that referenced
this pull request
May 19, 2026
Changes in cloud_controller_ng:
- Use have_queried_db_times matcher in lifecycle ordering tests
PR: cloudfoundry/cloud_controller_ng#5095
Author: Philipp Thun <philipp.thun@sap.com>
- Fix two flaky test failures caused by test isolation issues
PR: cloudfoundry/cloud_controller_ng#5084
Author: Philipp Thun <philipp.thun@sap.com>
- Document case sensitivity of name fields in API docs
PR: cloudfoundry/cloud_controller_ng#5079
Author: Philipp Thun <philipp.thun@sap.com>
- Add rubocop cop to prevent model usage in migration specs
PR: cloudfoundry/cloud_controller_ng#5066
Author: Philipp Thun <philipp.thun@sap.com>
Dependency updates in cloud_controller_ng:
- build(deps-dev): bump mock_redis from 0.53.0 to 0.54.0
PR: cloudfoundry/cloud_controller_ng#5106
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- build(deps): bump zeitwerk from 2.7.5 to 2.8.0
PR: cloudfoundry/cloud_controller_ng#5107
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- build(deps): bump oj from 3.17.0 to 3.17.1
PR: cloudfoundry/cloud_controller_ng#5108
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- build(deps-dev): bump solargraph from 0.59.0 to 0.59.1
PR: cloudfoundry/cloud_controller_ng#5109
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The API has inconsistent case sensitivity behavior across resources due to historical schema choices: some name columns use
citext(case-insensitive) while others use plainvarchar(case-sensitive). This was completely undocumented, causing confusion for API consumers.Add (case-insensitive) or (case-sensitive) annotations to:
service_broker_names)Case-insensitive: apps, organizations, spaces, domains, isolation segments, organization quotas, service plans, service offerings, tasks
Case-sensitive: service instances, buildpacks, stacks, security groups, service brokers, space quotas, service credential bindings
Also remove the misspelled 'case_insenstive' option from three migrations (stacks, lockings, frameworks). The typo meant the option was silently ignored, so these columns were always case-sensitive. Removing the dead option makes the code reflect actual behavior.
I have reviewed the contributing guide
I have viewed, signed, and submitted the Contributor License Agreement
I have made this pull request to the
mainbranchI have run all the unit tests using
bundle exec rakeI have run CF Acceptance Tests