Skip to content

Commit

Permalink
integrate schema rule with spectral ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu committed Aug 25, 2022
1 parent 75472a0 commit ef8a4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spectral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export function configureSpectral(parser: Parser) {
}

function configureRuleset(parser: Parser): RulesetDefinition {
// We do not use these two given rules from the official ruleset due to the fact that the given rules validate only AsyncAPI Schemas and prevent defining schemas in other formats
const rules = {
...aasRuleset.rules,
'asyncapi-schemas-v2': aas2schemaParserRule(parser),
// We do not use these two given rules from the official ruleset due to the fact that the given rules validate only AsyncAPI Schemas and prevent defining schemas in other formats
'asyncapi-payload-unsupported-schemaFormat': undefined,
'asyncapi-payload': undefined,
};
Expand Down

0 comments on commit ef8a4d4

Please sign in to comment.