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 880465d commit 0826afe
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 0826afe

Please sign in to comment.