Comments (4)
@jcmellado Hello. I fixed bug in #108 PR.
from parser-js.
@jcmellado thanks for reporting it will well written examples. Application of traits happens here https://github.com/asyncapi/parser-js/blob/master/lib/parser.js#L196 so we need to investigate what happens there
from parser-js.
I think that this issue is caused by this function:
https://github.com/asyncapi/parser-js/blob/master/lib/parser.js#L150
Relevant source code:
if (options.applyTraits) {
applyTraits(op);
applyTraits(op.message); // <=== maybe it should inspects here if oneOf is set
}
const msg = op.message; // <=== same here
if (msg) await validateAndConvertMessage(msg);
I'm still not feeling very confident with the source code to file a pull request.
from parser-js.
🎉 This issue has been resolved in version 0.23.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
from parser-js.
Related Issues (20)
- [CI] Browser tests are failing in macos-latest due to Puppeteer HOT 2
- [Bounty] A bunch of bugs that can be completed through the Bounty program HOT 17
- Adopt and/or adapt Spectral rules from AsyncAPI v2 Core ruleset to v3 HOT 9
- Create the rule `asyncapi3-server-variables` for the v3 core ruleset
- Create the rule `asyncapi3-channel-no-query-nor-fragment` for the v3 core ruleset
- Create the rule `asyncapi3-channel-parameters` for the v3 core ruleset
- Create the rule `asyncapi3-channel-servers` for the v3 core ruleset
- Create the rule `asyncapi3-operation-operationId-uniqueness` for the v3 core ruleset
- Create the rule `asyncapi3-message-messageId-uniqueness` for the v3 core ruleset
- Create the rule `asyncapi3-tags-uniqueness` for the v3 core ruleset
- Create the rule `asyncapi3-message-examples` for the v3 core ruleset
- Changeset Add Release Action using Changeset HOT 1
- Reenable Sonarcloud check in PR's HOT 1
- [BUG] `operationMessagesUnambiguity` rule throws error if operation or message is not a `$ref`. HOT 1
- [BUG] Using old version of node-fetch causes issues with Node20 HOT 1
- Integrate smoya/multi-parser-js into asyncapi/parser-js HOT 32
- [BUG] payload of type date shows validation error HOT 8
- [BUG] message payload schema object cannot be called by parser api HOT 2
- [BUG] Parsing yields error due to correlation between a Channel and Operation HOT 1
- [BUG] schemaValidation does not allow string examples for other schema types HOT 2
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 parser-js.