-
Notifications
You must be signed in to change notification settings - Fork 131
Augment JSON ABI #1429
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
base: main
Are you sure you want to change the base?
Augment JSON ABI #1429
Conversation
0da2b4c to
eb44837
Compare
Add tags, bug and timeLimit traits to the test ABI JSON data.
eb44837 to
46c32f1
Compare
| <bug> ::= { | ||
| ["url": <string>,] ; the bug url | ||
| ["id": <string>,] ; the bug id | ||
| "title": <string> ; the human readable bug title |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"title" should be optional.
| <tags> ::= <string> ; a string representation of a tag | ||
| <bug> ::= { | ||
| ["url": <string>,] ; the bug url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ["url": <string>,] ; the bug url | |
| ["url": <string>,] ; the bug URL |
(Nitpick)
| var bugs: [Bug]? | ||
|
|
||
| /// The time limits associated with the test. | ||
| var timeLimit: Int? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| var timeLimit: Int? | |
| var timeLimit: Double? |
Subsecond precision is possible, at least nominally.
| self.bugs = bugs | ||
| } | ||
| if #available(_clockAPI , *) { | ||
| if let seconds = test.timeLimit?.components.seconds { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if let seconds = test.timeLimit?.components.seconds { | |
| self.timeLimit = test.timeLimit | |
| .map(TimeValue.init) | |
| .map(Double.init) |
(Brain-compiled.)
| /// | ||
| /// - Warning: Tags are not yet part of the JSON schema. | ||
| var _tags: [String]? | ||
| var tags: [String]? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| var tags: [String]? | |
| /// | |
| /// @Metadata { | |
| /// @Available(Swift, introduced: 6.3) | |
| /// } | |
| var tags: [String]? |
| var _tags: [String]? | ||
| var tags: [String]? | ||
|
|
||
| // The bugs associated with the test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // The bugs associated with the test. | |
| // The bugs associated with the test. | |
| /// | |
| /// @Metadata { | |
| /// @Available(Swift, introduced: 6.3) | |
| /// } |
| // The bugs associated with the test. | ||
| var bugs: [Bug]? | ||
|
|
||
| /// The time limits associated with the test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// The time limits associated with the test. | |
| /// The time limits associated with the test. | |
| /// | |
| /// @Metadata { | |
| /// @Available(Swift, introduced: 6.3) | |
| /// } |
TO BE COMPLETED.
Add tags, bug and timeLimit traits to the ABI JSON data.
[One line description of your change]
Motivation:
[Explain here the context, and why you're making that change. What is the problem you're trying to solve.]
Modifications:
[Describe the modifications you've done.]
Checklist: