Skip to content

Conversation

@stepanenkoxx
Copy link
Contributor

No description provided.

@stepanenkoxx stepanenkoxx marked this pull request as ready for review September 3, 2025 09:27
Comment on lines +61 to +75
const actionToPathMap = new Map<Function, {serviceName: string; actionName: string}>();

Object.entries(gatewayApi).forEach(([serviceName, actions]) => {
Object.entries(actions).forEach(([actionName, action]) => {
actionToPathMap.set(action, {serviceName, actionName});
});
});

const security = securityTypes.map((type) => ({
[type]: [],
}));

Object.entries(proxyMap).forEach(([version, actions]) => {
Object.entries(actions).forEach(([action, {resolve, openApi}]) => {
const gatewayApiAction = resolve(gatewayApi);
Copy link
Contributor Author

@stepanenkoxx stepanenkoxx Sep 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now i understand that we will need this logic of resolving action to its schema also in controller for validation
So i'll move this part of code back to controller and make mapping from action to its schema

@stepanenkoxx stepanenkoxx merged commit 8fcbfd2 into CHARTS-11469-schema Sep 7, 2025
2 of 6 checks passed
@stepanenkoxx stepanenkoxx deleted the DLAPI-400-split-api-and-public-api branch September 7, 2025 20:57
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.

3 participants