Skip to content

Conversation

@cka121
Copy link
Contributor

@cka121 cka121 commented Oct 19, 2025

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Checklist

My PR contains...

  • No code changes (src/ is unmodified: changes to documentation, CI, metadata, etc.)
  • Dependency changes (any modification to dependencies in package.json)
  • Bug fixes (non-breaking change which fixes an issue)
  • Improvements (misc. changes to existing features)
  • Features (non-breaking change which adds functionality)

My changes...

  • are breaking changes to a public API (config options, System API, major UI change, etc).
  • are breaking changes to a private API (Redux, component props, utility functions, etc.).
  • are breaking changes to a developer API (npm script behavior changes, new dev system dependencies, etc).
  • are not breaking changes.

Documentation

  • My changes do not require a change to the project documentation.
  • My changes require a change to the project documentation.
  • If yes to above: I have updated the documentation accordingly.

Automated tests

  • My changes can not or do not need to be tested.
  • My changes can and should be tested by unit and/or integration tests.
  • If yes to above: I have added tests to cover my changes.
  • If yes to above: I have taken care to cover edge cases in my tests.
  • All new and existing tests passed.

Copy link
Contributor

@glowcloud glowcloud left a comment

Choose a reason for hiding this comment

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

We should be able to build the repo after the changes from the comments

OAuthFlowsVisitor as OAuthFlowsVisitorType,
} from '@swagger-api/apidom-ns-asyncapi-2';

import OAuthFlowsElement from '../../../../elements/OAuthFlows.ts';
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to rename the imported file to OAuthFlows (seems like that is what it was in Async 2) or:

Suggested change
import OAuthFlowsElement from '../../../../elements/OAuthFlows.ts';
import OAuthFlowsElement from '../../../../elements/OauthFlows.ts';

OAuthFlowVisitor as OAuthFlowVisitorType,
} from '@swagger-api/apidom-ns-asyncapi-2';

import OAuthFlowElement from '../../../../elements/OAuthFlow.ts';
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to rename the imported file to OAuthFlow (seems like that is what it was in Async 2) or:

Suggested change
import OAuthFlowElement from '../../../../elements/OAuthFlow.ts';
import OAuthFlowElement from '../../../../elements/OauthFlow.ts';


constructor(options:OperationsVisitorOptions) {
super(options);
this.element = new
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
this.element = new
this.element = new ComponentOperationsElement();

import { Mixin } from 'ts-mixer';
import { always } from 'ramda';

import Amqp1ServerBindingElement from '../../../../../../elements/bindings/amqp1/Amqp1ServerBinding.ts';
Copy link
Contributor

Choose a reason for hiding this comment

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

This file seems unnecessary? If not, we need to update each of the paths to point to the correct file:

Suggested change
import Amqp1ServerBindingElement from '../../../../../../elements/bindings/amqp1/Amqp1ServerBinding.ts';
import Amqp1ServerBindingElement from '../../../../elements/bindings/amqp1/Amqp1ServerBinding.ts';

correlationIds: AsyncApi2_0Specification.visitors.document.objects.Components.fixedFields.correlationIds,
replies: { $ref: '#/visitors/value' },
replyAddresses: { $ref: '#/visitors/value' },
tags: { $ref: '#/visitors/document/objects/Tags' },,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
tags: { $ref: '#/visitors/document/objects/Tags' },,
tags: { $ref: '#/visitors/document/objects/Tags' },

import { UnsupportedOperationError } from '@swagger-api/apidom-error';
import { OAuthFlowElement } from '@swagger-api/apidom-ns-asyncapi-2';

class OAuthFlow extends OAuthFlowElement {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
class OAuthFlow extends OAuthFlowElement {
/* eslint-disable class-methods-use-this */
class OAuthFlow extends OAuthFlowElement {

"dependencies": {
"@babel/runtime-corejs3": "^7.26.10",
"@swagger-api/apidom-core": "^1.0.0-beta.51",
"@swagger-api/apidom-ns-asyncapi-2": "workspace:^1.0.0-beta.51",
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to change this and run npm i in the root repo (maybe also in this namespace)

Suggested change
"@swagger-api/apidom-ns-asyncapi-2": "workspace:^1.0.0-beta.51",
"@swagger-api/apidom-ns-asyncapi-2": "^1.0.0-beta.51",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants