-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: initial intent API implementation #453
feat: initial intent API implementation #453
Conversation
6cb2fac
to
4481bcf
Compare
I added a new commit with the implementation for the suggestions @fmvilas made here. cc @jonaslagoni |
I think we would also need to introduce methods for getting objects by their ID, like Edit: this is covered by |
|
7f2bde3
to
3ba6710
Compare
I'm thinking about introducing an |
I think it's a good idea 👍
An operation might not contain an |
Kudos, SonarCloud Quality Gate passed! |
Yeah, I think it makes sense. Would you also suggest we write it as a rule for all parser implementations (Parser-API) ? So the return type should be only |
I think so. Not sure how far we should get into implementation details other than the API surface but definitely something to take into account. In any case, if we say that operations MUST always have an ID, implementations will have to generate them 😄 |
@jonaslagoni would you mind converting this issue into a draft? As this is just a POC, I don't think it makes sense to keep it as a regular PR. |
This pull request has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation. There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
@jonaslagoni We can close this one as all this work is being done on the next-major branch. |
This is the first part of the intent API implementation.
I have only implemented the root
IntentAsyncAPIDocument
as I thought this was a great time to allow other contributors to help out if they want to, by creatingfirst good issues
. Even though we might need to place a time constraint on when they need to be done (in order to have enough time to evaluate the intents before releasing).Questions and Decisions
intent.rawDocument()
.Operation.type()
->Operation.types()
anonymousNaming
,iterators
,customValidators
)?What changed
./lib/models
./lib/version2
this includes:./lib/models
to./lib/version2/models
, the same goes for their related tests../lib/customValidators.js
to./lib/version2/customValidators.js
, same goes for their related tests. Also in terms of when to check for them -> https://github.com/jonaslagoni/parser-js/blob/660b9643b652b94b1961b8e67e4a9b1f64a405d5/lib/parser.js#L217./lib/anonymousNaming.js
to./lib/version2/anonymousNaming.js
../lib/iterators.js
to./lib/version2/iterators.js
.Todo:
???
Todo once merged:
Operation.type()
->Operation.types()
in parser-api repo.Related issue(s)
Fixes #401