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

clarify timestamps in utc and hide properties from schema #788

Merged
merged 20 commits into from
Dec 19, 2023

Conversation

noursaidi
Copy link
Collaborator

No description provided.

@noursaidi noursaidi merged commit b345352 into faucetsdn:master Dec 19, 2023
8 checks passed
# Takes a tab delimited text file containing the list of feature buckets
# as copied from Google Sheets and convert into an MD list
#
#a
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo?


ROOT_DIR=$(realpath $(dirname $0)/..)
cd $ROOT_DIR

OP=
Copy link
Collaborator

Choose a reason for hiding this comment

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

OP? Pretty cryptic... OPTION?

@@ -68,6 +39,19 @@ find $TMP_DIR -type f -exec sed -i 's/file://' {} \;
# is one level down
find $TMP_DIR -type f -exec sed -i 's;(../docs/;(../../docs/;' {} \;

# Hide properties according to the hide me list
Copy link
Collaborator

Choose a reason for hiding this comment

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

redundant comment (given the echo line right after it)

@@ -0,0 +1,29 @@
# Properties to hide from human readable schema documentation
Copy link
Collaborator

Choose a reason for hiding this comment

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

The main problem I see here is that somebody is going to go look at the JSON specification anyway, which will then be inconsistent with the generated documentation. I'm not sure there's any great solution here, but just something to keep in mind.

The real problem is that people shouldn't be coding to the schema since it's a very incomplete specification compared to what the behavior aspects of the system are.

Nit: The other way to handle this would be to have something in the schema itself (e.g. "$when") that indicates when it's required/allowed -- so at least all the code/specification is in one place, rather than spread across different files. I.e. consider having this information pulled from the schema itself, not from this file.

@@ -7,7 +7,7 @@
"additionalProperties": false,
"properties": {
"timestamp": {
"description": "RFC 3339 Timestamp the state payload was generated",
"description": "Not published by devices which publish , appended to message subblocks within cloud pipeline. RFC 3339 Timestamp the payload was generated",
Copy link
Collaborator

Choose a reason for hiding this comment

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

missing words?

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.

None yet

2 participants