Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
smoya committed Aug 8, 2023
1 parent 6038799 commit a858c62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ruleset/functions/documentStructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ function prepareResults(errors: ErrorObject[]): void {
}
}

// this is needed because some v3 object fields are expected to be only `$ref` to other objects.
// In order to validate resolved references, we modify those schemas and instead allow the definition of the object
function prepareV3ResolvedSchema(copied: any): any {
// channel object
const channelObject = copied.definitions['http://asyncapi.com/definitions/3.0.0/channel.json'];
Expand Down

0 comments on commit a858c62

Please sign in to comment.