-
Couldn't load subscription status.
- Fork 22
feat: add package for apidom-ns-async-api-3 #5032
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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'; |
There was a problem hiding this comment.
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:
| 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'; |
There was a problem hiding this comment.
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:
| import OAuthFlowElement from '../../../../elements/OAuthFlow.ts'; | |
| import OAuthFlowElement from '../../../../elements/OauthFlow.ts'; |
|
|
||
| constructor(options:OperationsVisitorOptions) { | ||
| super(options); | ||
| this.element = new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| this.element = new | |
| this.element = new ComponentOperationsElement(); |
| import { Mixin } from 'ts-mixer'; | ||
| import { always } from 'ramda'; | ||
|
|
||
| import Amqp1ServerBindingElement from '../../../../../../elements/bindings/amqp1/Amqp1ServerBinding.ts'; |
There was a problem hiding this comment.
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:
| 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' },, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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", |
There was a problem hiding this comment.
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)
| "@swagger-api/apidom-ns-asyncapi-2": "workspace:^1.0.0-beta.51", | |
| "@swagger-api/apidom-ns-asyncapi-2": "^1.0.0-beta.51", |
Description
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Checklist
My PR contains...
src/is unmodified: changes to documentation, CI, metadata, etc.)package.json)My changes...
Documentation
Automated tests