Skip to content

Conversation

@theAnuragMishra
Copy link

Description

Changes proposed in this pull request:

  • the current implementation of SchemaProperties component skips and returns null if properties is undefined which shows no patternProperties even if they are present
  • this pr converts properties and patternProperties to empty objects in case they are undefined. If there's nothing to show, Object.entries maps nothing and nothing is rendered which is desired.
  • this fixes the bug where patternProperties is omitted when properties is undefined.

Related issue(s)
closes #1197

@sonarqubecloud
Copy link

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@theAnuragMishra
Copy link
Author

@Shurtu-gal can you check this out ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

patternProperties is ignored when properties is absent

1 participant