Skip to content

Document case sensitivity of name fields in API docs#5079

Open
philippthun wants to merge 1 commit intocloudfoundry:mainfrom
sap-contributions:document-name-case-sensitivity
Open

Document case sensitivity of name fields in API docs#5079
philippthun wants to merge 1 commit intocloudfoundry:mainfrom
sap-contributions:document-name-case-sensitivity

Conversation

@philippthun
Copy link
Copy Markdown
Member

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.

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

@philippthun
Copy link
Copy Markdown
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.
@philippthun philippthun force-pushed the document-name-case-sensitivity branch from 0d9771f to 3d74764 Compare May 5, 2026 08:28
@philippthun philippthun marked this pull request as ready for review May 5, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant