Skip to content

Commit

Permalink
exclude createNewID and createNewParam
Browse files Browse the repository at this point in the history
  • Loading branch information
FelicixAwe committed Aug 22, 2024
1 parent ad81616 commit c86c945
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 148 deletions.
33 changes: 0 additions & 33 deletions src/ruleset/asyncapi-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import addField from './functions/addField';
import deleteEndingSlash from './functions/deleteEndingSlash';
import latestVersionUpdate from './functions/latestVersionUpdate';
import deleteEmptyParam from './functions/deleteEmptyParam';
import createNewParam from './functions/createNewParam';
import deleteID from './functions/deleteID';
import createNewID from './functions/createNewID';
import deleteRepeatedTags from './functions/deleteRepeatedTags';
import renameRepeatedTag from './functions/renameRepeatedTag';
import addDescription from './functions/addDescription';
Expand Down Expand Up @@ -123,13 +121,6 @@ export default {
given: '$.channels.',
field: '',
function: deleteEmptyParam
},
{
name: 'Quick fix - create new param',
given: '$.chennels',
field: 'channels',
function: createNewParam

}
]
},
Expand All @@ -143,27 +134,9 @@ export default {
given: '$.channels.',
field: 'messsageId',
function: deleteID
},
{
name: 'Quick fix - create new messageId',
given: '$..messageId',
field: 'messageId',
function: createNewID
}
]
},
"asyncapi-operation-operationId": {
description: 'Operation must have "operationId".',
recommended: true,
given: '$',
fix: {
name: 'Quick fix - create an operationId',
given: '$.channels[*][publish,subscribe]',
field: 'operationId',
function: createNewID

}
},
"asyncapi-operation-operationId-uniqueness": {
description: '"operationId" must be unique across all the operations.',
recommended: true,
Expand All @@ -174,12 +147,6 @@ export default {
given: '$.channels[*][publish,subscribe]',
field: 'operationId',
function: deleteID
},
{
name: 'Quick fix - create new operationId',
given: '$.channels[*][publish,subscribe]',
field: 'operationId',
function: createNewID
}
]
},
Expand Down
79 changes: 0 additions & 79 deletions src/ruleset/functions/createNewID.ts

This file was deleted.

36 changes: 0 additions & 36 deletions src/ruleset/functions/createNewParam.ts

This file was deleted.

0 comments on commit c86c945

Please sign in to comment.