-
Notifications
You must be signed in to change notification settings - Fork 78
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
RecordsWrite Tags #310
base: main
Are you sure you want to change the base?
RecordsWrite Tags #310
Conversation
…cription on its usage and constraints
…protocol definition
e2aef01
to
d7a0b7c
Compare
awesome. Thank you @LiranCohen |
@@ -1241,10 +1248,25 @@ Protocol Definition objects are declarative rules within `ProtocolConfigure` mes | |||
}, | |||
"image": { | |||
"dataFormat": ["image/jpeg", "image/png", "image/gif"], | |||
} | |||
} } |
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.
} } | |
} |
"category": { | ||
"type": "array", | ||
"minItems": 1, | ||
"maxItems": 5 |
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.
"maxItems": 5 | |
"maxItems": 5, |
- The object ****MAY**** contain a `$tags` property; if present, its value ****MUST**** be an object with defined constraints: | ||
- `$requiredTags` (optional) is an array that lists required tag names. | ||
- `$allowUndefinedTags` (optional) is a boolean that defaults to false, and if set to false, undefined tags are not allowed. | ||
- The constraints are a subset of JSON Schema that may include properties such as `type`, `enum`, `minimum`, `maximum`, `minLength`, `maxLength`, and others. |
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.
type required. make clear explicit.
- The constraints are a subset of JSON Schema that may include properties such as `type`, `enum`, `minimum`, `maximum`, `minLength`, `maxLength`, and others. | |
- The constraints are a subset of JSON Schema that may include properties such as `type` (required), `enum`, `minimum`, `maximum`, `minLength`, `maxLength`, and others. |
@@ -1290,6 +1312,10 @@ Protocol Definition objects are declarative rules within `ProtocolConfigure` mes | |||
- The _Protocols Definition_ object ****MUST**** contain a `structure` property, and its value ****MUST**** be a _Record Rules_ object whose keys match the labels defined in the _Protocols Definition_ object. This object is recursive, allowing subsequent record relationships to be defined within. Labeled members of the object are composed as follows: | |||
- The keys of the object ****MUST**** be a string that matches one of the `types` | |||
- The values representing those keys within the object ****MUST**** be an object composed as follows: | |||
- The object ****MAY**** contain a `$tags` property; if present, its value ****MUST**** be an object with defined constraints: |
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.
Note: Tags are not encrypted, please be careful about what you put in a tag.
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.
Small tweaks, but goal to have it merged by next session
First pass at specifying tags in Protocol Definitions and RecordsWrite descriptor.
Satisifies: #279