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

Support openrpc #54

Closed
smagafurov opened this issue Sep 11, 2023 · 1 comment · Fixed by #56
Closed

Support openrpc #54

smagafurov opened this issue Sep 11, 2023 · 1 comment · Fixed by #56
Labels
enhancement New feature or request

Comments

@smagafurov
Copy link
Owner

https://open-rpc.org

@spumer
Copy link
Collaborator

spumer commented Sep 18, 2023

First we can see implementation in this project: https://pjrpc.readthedocs.io/en/stable/pjrpc/specification.html

From docs:
pjrpc provides two schema extractors: pjrpc.server.specs.extractors.pydantic.PydanticSchemaExtractor and pjrpc.server.specs.extractors.docstring.DocstringSchemaExtractor. They uses pydantic models or python docstrings for method summary, description, errors, examples and schema extraction respectively. You can implement your own schema extractor inheriting it from pjrpc.server.specs.extractors.BaseSchemaExtractor and implementing abstract methods.

@spumer spumer added the enhancement New feature or request label Oct 2, 2023
@spumer spumer pinned this issue Oct 2, 2023
@spumer spumer unpinned this issue Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants