Skip to content

Spec Update 11/17/2021 #61

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

Merged
merged 1 commit into from
Nov 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 4 additions & 19 deletions file_tagging.stone
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,15 @@ union Tag
user_generated_tag = default


union BaseError
unknown
"Action failed."
transient
"Action failed. Try again."
input_validation
"Action failed due to wrong params."
cancelled
"Action cancelled."

struct UserGeneratedTag
tag_text TagText

example default
tag_text = "my_tag"



union BaseTagError extends BaseError
feature_not_supported
"Tags are not turned on for your team. Please turn on the feature."

path_not_found
"Path not found."
union BaseTagError
path LookupError


#####################################
Expand All @@ -57,7 +42,7 @@ struct AddTagArg

union AddTagError extends BaseTagError
too_many_tags
"Item already has max supported tags."
"The item already has the maximum supported number of tags."

route tags/add(AddTagArg, Void, AddTagError)
"Add a tag to an item. A tag is a string. No more than 20 tags can be added to a given item."
Expand All @@ -84,7 +69,7 @@ struct RemoveTagArg
tag_text = "MyTag"

union RemoveTagError extends BaseTagError
tag_not_exists_for_this_path
tag_not_present
"That tag doesn't exist at this path."

route tags/remove(RemoveTagArg, Void, RemoveTagError)
Expand Down