Comments (10)
For sure, feel free to bring it up 👍
from bundler.
cc codeowners @Souvikns @derberg
Would be really cool to have this library work out the gate when we release v3, are any of you interested in scheduling a public call specifically to discuss how to enable this?
If you have any questions about how it can be achieved or v3-specific stuff I can help answer those in the meeting to enable you to progress with this 🙂
Let me know if it has any interest.
from bundler.
Would be really cool to have this library work out the gate when we release v3, are any of you interested in scheduling a public call specifically to discuss how to enable this?
Sure @jonaslagoni let me read up on spec3 and see what needs to be changed in bundler to support it, Maybe we can discuss about this at the next spec 3.0 meeting
from bundler.
I was trying to figure out what needs to be changed in the bundler for it to support spec v3.
Currently
- bundler parses the channels and looks for
$ref
's in the message object - resolves the
$ref
to either the message or to the component object and updates the$ref
accordingly.
With V3
The only difference in our case is that now we can have multiple message objects so the only thing that changes is how we look for the message components. operations can have messages as well so we need to parse that as well, but we only resolve it if the $ref
is outside the current spec i.e. we are referencing a message from a different file.
cc @jonaslagoni
from bundler.
Not sure how much this change affect your logic: https://v3.asyncapi.com/blog/release-notes-3.0.0#unified-referencing-behaviors
from bundler.
Don't think this affects bundler currently, as it only looks for message references and nothing else.
Line 60 in 70a64bb
from bundler.
@jonaslagoni working on a PR, will create a separate logic for spec 3.0 and add a check for the spec inputted in bundler to either use the current logic or the new one.
from bundler.
🎉 This issue has been resolved in version 0.4.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
from bundler.
I am trying to use the bundle command of the Async API CLI tool v1.4.11. It gives be the error "One of the files you tried to bundle is AsyncAPI v3 format, the bundle command does not support it yet" and refers to this issue #133.
Since this issue is closed, I am confused. Maybe I am in the wrong place looking for v3 support for the bundle command? Or missing something obvious? :)
from bundler.
In case you got redirected here looking for v3 support for the bundle CLI command, please check the following issue: asyncapi/cli#1137
from bundler.
Related Issues (20)
- base options not working as intended HOT 1
- Cleanup dependencies HOT 2
- Need for urgent changes in GitHub Actions automation HOT 1
- Export flags to specify which spec is currently supported by bundler HOT 2
- Add option to specify baseFileDir or cwd HOT 5
- Refine AsyncAPI Bundling with Origin Tracing and Component Naming HOT 34
- Use @stoplight/json-ref-resolver instead of @apidevtools/json-schema-ref-parser HOT 4
- [Docs Bug 🐞 report]: Invalid usage example HOT 5
- Update README with new logo banner HOT 5
- Bundle references into components HOT 3
- Cannot bundle documents with different base paths HOT 9
- "invalid-yaml: The provided yaml is not valid" error when passing in JSON HOT 3
- Migrate bundler's codebase to TypeScript HOT 10
- Only `bundle` function should be exposed as part of public API HOT 3
- last release is broken without `lib` dir HOT 33
- Add missing release script to `package.json` HOT 4
- Document how to use package with `require` HOT 7
- Exception is thrown if `$ref` value is not a `string` HOT 2
- Support `referenceIntoComponents` for other components than `message` HOT 55
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bundler.