Skip to content
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: React children components support #840

Open
Lancetnik opened this issue Nov 24, 2023 · 6 comments
Open

Feat: React children components support #840

Lancetnik opened this issue Nov 24, 2023 · 6 comments
Labels

Comments

@Lancetnik
Copy link

Hello there! I am a core developer of FastStream - the Python frameworks to build well-structured publish/consumes services for various Message Brokers. One of the great FastStream features users love - automatic AsyncAPI schema generation (and hosting) right from the service code. Thus, I have a little request to you.

For now, FastStream uses CDN React Component version to draw a static HTML represention of user service schema. But we can easely (cuz we have backend to serve this static site) implement test message publishing funtional right from a web schema (like OpenAPI allows you to send test HTTP requests). At first, test messages will be addressed only to the original FastStream service... But then we'll implement AsyncAPI schema -> FastStream service generation, that allows us to generate publishers "on flyight" and publish any message to any FastStream-supported Message Broker right from the website.

A slightly confusing preface... We need to ability pass some React-children components to the AsyncAPI react component to draw user payload input somewhere around payload example. We can create the component fork and implement our own component version (with all required inputs), but it is a bad way to build long-living tools. So, I hope on your team collaboration in this question and believe, that together we able to make AsyncAPI environment riacher.

Copy link

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@jonaslagoni
Copy link
Sponsor Member

I agree, the components should be as extensible and overwritable as possible 👌

Copy link
Member

derberg commented Dec 19, 2023

@Lancetnik please just share in more details what changes you will exactly introduce and definitely we are open to accept any PR that will make the component more flexible and extensible. We are even open to gain you as maintainers

@devilkiller-ag
Copy link
Member

Hi, I am a bit curious about this discussion, but I am finding it a little difficult to understand. I will try to explore the async api react component in the upcoming weeks and update you all regarding this. It will be helpful if @Lancetnik can provide more details.

@Lancetnik
Copy link
Author

Lancetnik commented Dec 20, 2023

Снимок экрана 2023-12-20 в 20 54 35

Here is a payload example component of AsyncAPI schema. This webpage is generated automatically by FastStream by passing AsyncAPI json/yaml schema to react component. But we are interested to make this page interactive by adding "Try it out" btn to make this payload textfield editable and make user able to publish a test message right to the broker like OpenAPI does.

Exactly in this case, probably, we can add a props to propogate it to the MessageExample as a child instead this div.

But it will be great to create public React components to provides your library users with making their own full-extendable AsyncAPILayout

Copy link

This issue 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 issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue 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 issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants