Skip to content

E1.37-5 tweaks #11

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

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

peternewman
Copy link
Member

Fix-up of #8

mayanigroshsonos and others added 16 commits August 23, 2019 11:37
- Modified spacing for ease in readability
- Added schema "title" (which may need to have the word "informative" removed)
- Added description values
- Changed single-value enums to "const"
- Separated "bits" from "bitField"
- Created a simpleType enum for all basic types
- Alphabetized definitions
- Changed "label" to "labeledInteger"
   * changed the "label" property to "name", for consistency
- Changed "max_size" and "min_size" to "maxLength" and "minLength", for
  consistency with JSON schema naming conventions.
* Added '"uniqueItems": true' to the "bits" field of the "bitField" field type, the integer field type, the command type, and the range type
* Created the subdeviceType with an enumeration of the possible values.
* Added a "pdEnvelope" type to help deal with the proposed PACKED_PIDS parameter message
* Added a new "list" type that represents a list of any valid non-list
  field type.
* Removed the requirement of having "name" for some of the types so they can
also be used in lists.
* Suffixed all the types with "Type" so that naming is consistent. These aren't
  the words that will be used when writing a schema and they don't have to be
  the same as the constant names, eg. "uint8" or "string" or "list".
* Added a "compoundType" type so that we don't have to make a special type for
  all possibilities. For example, the list of 3-field items returned
  in SLOT_INFO. These compound types are only supported in the list type,
  "listType", because a field is only used in "commandType".
* Factored all the types into a "oneOf" so that it can be referenced from
  "compoundType", "listType", and "fieldType".
* Changed "boundedIntegerType" to "integerType" and "boundedStringType"
  to "stringType".
* Removed "name" from the "required" list of "labeledIntegerType"
  and "listType".
* Changed "upper" and "lower" in "rangeType" to "maximum" and "minimum",
  respectively, for consistency with JSON schema naming conventions.
* Added an optional "length" property to "pdEnvelope".
* Removed "fieldType" and instead made "commandType" be a collection
  of "oneOfType".
…iled pull

request.
Added the MAC type, which had been forgotten until going over the public review
comments.
It's only used to define which subdevices a command should be targeted at
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