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

Created JSON Schema to print Notices #103

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

Shaswat975
Copy link
Collaborator

#71

$formattedNotice = [
"title" => $notice["title"],
"date" => date('m-d-Y', strtotime($notice["date"])),
"message" => wordwrap($notice["message"], $CHAR_WRAP)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to wordwrap in JSON output since that will be handled by whatever is calling the API. Just add the message body directly here.

Suggested change
"message" => wordwrap($notice["message"], $CHAR_WRAP)
"message" => $notice["message"]

Also remove any entries of $CHAR_WRAP from the rest of the file.

@hakasapl hakasapl merged commit d9628d7 into UnityHPC:main Jun 21, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants