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: setting manifest with json script #85

Open
bennypowers opened this issue Nov 4, 2021 · 0 comments
Open

feat: setting manifest with json script #85

bennypowers opened this issue Nov 4, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@bennypowers
Copy link
Member

current:

<api-viewer src="path/to/manifest.json"></api-viewer>

desired (in addition to src, as an option):

<api-viewer>
  <script slot="manifest" type="application/json">
  { "schemaVersion": 1.0.0, "readme": "..." }
  </script>
</api-viewer>

or:

document.querySelector('api-viewer').manifest = { "schemaVersion": 1.0.0, "readme": "..." }
@web-padawan web-padawan added the enhancement New feature or request label Dec 6, 2021
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

No branches or pull requests

2 participants