Conversation
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
| "$ref": "../connectionBasicType.json#/definitions/supportsMetadataExtraction" | ||
| } | ||
| }, | ||
| "required": ["baseUrl", "companyId"], |
There was a problem hiding this comment.
⚠️ Edge Case: Username not required — BasicAuth/OAuth2 both need it
The connection schema only requires baseUrl and companyId, but the username field is described as necessary for both BasicAuth ("used as the credential username") and OAuth2 ("used as the SAML NameID"). Without username in the required array, a user can save a connection config that will always fail at runtime.
JSON Schema draft-07 doesn't support conditional required natively in a clean way, but since username is needed for both auth types, it should simply be added to required. For auth-type-specific fields (password for BasicAuth, clientId/privateKey/tokenUrl for OAuth2), you could either add them all as optional and validate at the connector level (which is the pattern most OM connectors use), or use if/then blocks.
Suggested fix:
Change line 119 from:
"required": ["baseUrl", "companyId"],
to:
"required": ["baseUrl", "companyId", "username"],
Was this helpful? React with 👍 / 👎 | Reply gitar fix to apply this suggestion
| }, | ||
| "required": ["baseUrl", "companyId"], | ||
| "additionalProperties": false | ||
| } No newline at end of file |
There was a problem hiding this comment.
💡 Quality: Missing newline at end of JSON files
Both sapSuccessFactorsConnection.json and sapsuccessfactors.json are missing a trailing newline. This is flagged by most linters and causes noisy diffs when content is appended later.
Was this helpful? React with 👍 / 👎 | Reply gitar fix to apply this suggestion
Code Review
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Gitar
|
|
🟡 Playwright Results — all passed (12 flaky)✅ 3699 passed · ❌ 0 failed · 🟡 12 flaky · ⏭️ 89 skipped
🟡 12 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |



Describe your changes:
Fixes
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
SapSuccessFactorsdatabase connector with support forBasicAuthandOAuth2Credentials.sapSuccessFactorsConnection.jsonand added test connection configurations.SapSuccessFactorsindatabaseService.jsonand updatedServiceTypeconstants for UI integration.This will update automatically on new commits.