Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: snapshots passing #1486

Open
wants to merge 1 commit into
base: phale/decompose-esr-mixed-content
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"types": {
"externalserviceregistration": {
"directoryName": "externalServiceRegistrations",
"strictDirectoryName": true,
"id": "externalserviceregistration",
"ignoreParsedFullName": false,
"name": "ExternalServiceRegistration",
Expand All @@ -16,6 +17,8 @@
"suffixes": {
"externalServiceRegistration": "externalserviceregistration"
},
"strictDirectoryNames": {},
"strictDirectoryNames": {
"externalServiceRegistrations": "externalserviceregistration"
},
"childTypes": {}
}
6 changes: 5 additions & 1 deletion src/resolve/metadataResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ export class MetadataResolver {
// short circuit the component resolution unless this is a resolve for a
// source path or allowed content-only path, otherwise the adapter
// knows how to handle it
if (type.strategies?.transformer === 'decomposeExternalServiceRegistration') {
// @ts-expect-error find another way to do this?
adapter.metadataWithContent = false;
}
const shouldResolve =
isResolvingSource ||
parseAsRootMetadataXml(fsPath) ||
Expand Down Expand Up @@ -365,7 +369,7 @@ const resolveType =
/**
* Any file with a registered suffix is potentially a content metadata file.
*
* @param registry a metadata registry to resolve types agsinst
* @param registry a metadata registry to resolve types against
*/
const parseAsContentMetadataXml =
(registry: RegistryAccess) =>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<ExternalServiceRegistration xmlns="http://soap.sforce.com/2006/04/metadata">
<label>BankService</label>
<namedCredential>ntest</namedCredential>
<registrationProviderType>Custom</registrationProviderType>
<schemaType>OpenApi3</schemaType>
<schemaUrl>/accounts/schema</schemaUrl>
<serviceBinding>{"host":"","basePath":"/","allowedSchemes":[],"requestMediaTypes":[],"responseMediaTypes":[],"compatibleMediaTypes":{}}</serviceBinding>
<status>Complete</status>
<systemVersion>3</systemVersion>
</ExternalServiceRegistration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
openapi: 3.0.0
info:
title: OpenAPIChallenge
description: Now is the time for Apex OpenAPI
version: 63.1.0
paths:
/getAccountSummaryWithOpportunities:
operations:
get:
summary: need to figure out what this means
description: need to figure out what this means
operationId: getAccountSummaryWithOpportunities
responses: {}
/getActiveCases:
operations:
get:
summary: need to figure out what this means
description: need to figure out what this means
operationId: getActiveCases
responses: {}
/getAllAccounts:
operations:
get:
summary: need to figure out what this means
description: need to figure out what this means
operationId: getAllAccounts
responses: {}
/getUserDetails:
operations:
get:
summary: need to figure out what this means
description: need to figure out what this means
operationId: getUserDetails
responses: {}
/updateContactDetails:
operations:
get:
summary: need to figure out what this means
description: need to figure out what this means
operationId: updateContactDetails
responses: {}
/getWelcomeMessage:
operations:
get:
summary: need to figure out what this means
description: need to figure out what this means
operationId: getWelcomeMessage
responses: {}
Loading