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

Displaying image #570

Closed
keitatata opened this issue Feb 22, 2022 · 1 comment
Closed

Displaying image #570

keitatata opened this issue Feb 22, 2022 · 1 comment
Labels
enhancement Indicates new feature requests

Comments

@keitatata
Copy link
Contributor

keitatata commented Feb 22, 2022

Is your feature request related to a problem? Please describe.
Even if the element is an image url, it will be displayed as a string.

Describe the solution you'd like
If the element is the url string of an image, I'd like it to display the image itself instead of displaying it as a string.

Describe alternatives you've considered

Additional context
I want to display the image as in v1.
スクリーンショット 2022-02-22 12 29 15

@keitatata keitatata added the enhancement Indicates new feature requests label Feb 22, 2022
@cathcheeno
Copy link
Contributor

@keitatata
Viron can't detect whether certain data is a URI string or a plain one.
I've supported a new format value for Schema Objects to give Viron more specific information: uri-image. Please use the format property with its value uri-image to display data in a table cell with the <img /> HTML element.

like this:

"thumb": {
  "type": "string",
  "format": "uri-image"
}

NOTE: currently effective only on the development environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests
Projects
Status: Done
Development

No branches or pull requests

2 participants