Skip to content

feat: export AsyncAPISchema and v2 types - #656

Merged
asyncapi-bot merged 3 commits into
asyncapi:next-majorfrom
smoya:feat/exportTypes
Oct 20, 2022
Merged

asyncapi-bot merged 3 commits into
asyncapi:next-majorfrom
smoya:feat/exportTypes

Conversation

@smoya

@smoya smoya commented Oct 19, 2022

Copy link
Copy Markdown
Member

Description

This PR exports some types that are required by other packages. In particular, by this avro-schema-parser PR.

Related issue(s)
asyncapi/avro-schema-parser#166

@magicmatatjahu

Copy link
Copy Markdown
Member

@smoya Thanks for PR! I pushed some changes.

  • I know that you need AsyncAPiSchemaObject and ...Definition but we should export on the root only AsyncAPiSchemaObject type. Only Avro needs ...Definition so you will have to import it by specTypesV2.AsyncAPISchemaDefinition
  • I also exported v2 types.

@magicmatatjahu magicmatatjahu changed the title feat: export AsyncAPISchema and AsyncAPISchemaDefinition types feat: export AsyncAPISchema and v2 types Oct 20, 2022
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@smoya

smoya commented Oct 20, 2022

Copy link
Copy Markdown
Member Author

@smoya Thanks for PR! I pushed some changes.

  • I know that you need AsyncAPiSchemaObject and ...Definition but we should export on the root only AsyncAPiSchemaObject type. Only Avro needs ...Definition so you will have to import it by specTypesV2.AsyncAPISchemaDefinition

I would love to understand the reason! 🙏

@magicmatatjahu

Copy link
Copy Markdown
Member

@smoya We shouldn't export AsyncAPiSchemaObject and AsyncAPiSchemaDefinition as separate types in the root, because AsyncAPiSchemaObject is a exactly shape of AsyncAPISchema, AsyncAPiSchemaDefinition is only a helper type because AsyncAPISchema can be object and boolean.

@magicmatatjahu

Copy link
Copy Markdown
Member

/rtm

@asyncapi-bot
asyncapi-bot merged commit 3479a32 into asyncapi:next-major Oct 20, 2022
@smoya
smoya deleted the feat/exportTypes branch October 20, 2022 08:59
@asyncapi-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.0.0-next-major.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants