-
-
Notifications
You must be signed in to change notification settings - Fork 124
Closed
asyncapi/optimizer
#193Labels
HacktoberfestLabel issues as available for participants of https://hacktoberfest.digitalocean.comLabel issues as available for participants of https://hacktoberfest.digitalocean.comenhancementNew feature or requestNew feature or requestreleased
Description
Reason/Context
It would be very useful when working on docs/code generators to have a set of helper functions that let you easily determine if there is or not a specific component added to the components section of the AsyncAPI document and if it has any data. These components are not required and it is not required to have any data in them, so someone can add an empty object for example.
Many models already have useful functions like hasDescription.
Description
-
Add missing functions to Components model:
- hasMessages
- hasSchemas
- hasSecuritySchemes
- hasParameters
- hasCorrelationIds
- hasOperationTraits
- hasMessageTraits
Example
hasParameterfunction from Channels model
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
HacktoberfestLabel issues as available for participants of https://hacktoberfest.digitalocean.comLabel issues as available for participants of https://hacktoberfest.digitalocean.comenhancementNew feature or requestNew feature or requestreleased