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

Describe JSON conversion and clean up formatting. #92

Merged
merged 2 commits into from
Oct 11, 2019

Conversation

JimLarson
Copy link
Contributor

No description provided.

doc/langdef.md Outdated

CEL Data | JSON Data
---------------------------------------------------- | ---------
`int` | Number if in interoperable range, otherwise decimal String.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's mention that the interoperable range is -(2^53 - 1) to 2^53 - 1.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

doc/langdef.md Outdated
double NaN | String "NaN"
`bytes` | String of base64-encoded bytes
message | JSON conversion of protobuf message.
`list` with non-convertible elements | none
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it worth mentioning the lists and maps with convertible elements?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. I've updated the list/map descriptions here and in the table above to distinguish bi-convertible, convertible, and non-convertible values.

doc/langdef.md Outdated

### List of Standard Definitions

TODO https://issuetracker.google.com/67014381 : have better descriptions. The
Copy link
Collaborator

Choose a reason for hiding this comment

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

This issue has been archived, but there is one currently open within the cel-go repository to create a better docgen tool.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the TODO.

@JimLarson
Copy link
Contributor Author

PTAL

@JimLarson JimLarson merged commit 6714084 into google:master Oct 11, 2019
@JimLarson JimLarson deleted the jsondoc branch October 11, 2019 19:14
@JimLarson
Copy link
Contributor Author

Closes #73

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