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

handle newline in schema contents returned for info #1712

Open
braingram opened this issue Dec 18, 2023 · 0 comments
Open

handle newline in schema contents returned for info #1712

braingram opened this issue Dec 18, 2023 · 0 comments

Comments

@braingram
Copy link
Contributor

See: #1687 (comment)
and #1686 (comment)

Schema contents displayed during info calls can result in breaks in formatting:

  │ ├─exposure (Exposure) # Exposure information

  │ │ ├─id (int): 1 # Exposure id number within visit
  │ │ ├─type (str): WFI_IMAGE
  │ │ ├─start_time (Time) # UTC exposure start time

From this schema:
https://github.com/spacetelescope/rad/blob/186144b27f05bf654b5cab2331fb66d15f932cb1/src/rad/resources/schemas/exposure-1.0.0.yaml#L7

Investigate additional schema contents cleanup prior to display for info calls. Specifically:

  • should "info" be allowed to span multiple lines?
  • as lines are already "(truncated)" when they exceed "max_cols" should we separately truncate the "info"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant