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

Add changelog generation #319

Merged
merged 8 commits into from Jan 26, 2017
Merged

Add changelog generation #319

merged 8 commits into from Jan 26, 2017

Conversation

tkurki
Copy link
Member

@tkurki tkurki commented Jan 19, 2017

No description provided.

tkurki and others added 8 commits January 19, 2017 22:32
The RegEx for the urn was not being enforced as the additionalProperties had not been set to False, allowing any other format of property to be acceptable. Also once turned on there were some urns which passed through the RegEx but which are clearly wrong:
urn:mrn:imo:mmsi:2300999990 (mmsi too long)
urn:mrn:signalk:uuid:c0d79334-4e25-4245-8892-54e8ccc8021de (uuid too long)
urn:mrn:imo:uuid:c0d79334-4e25-4245-8892-54e8ccc8021d (mixed mmsi/uuid)
urn:mrn:signalk:mmsi:212345678 (mixed mmsi/uuid)

I have not addressed the following 'bad' vessel urns as I'm not sure whether the decision to allow poorly formed email addresses was deliberate or not:
mailto:fred
http://a string with anything you like

Also simplified the definition for mmsi as maxLength & minLength are not required as they are already defined by the RegEx.
Schema fails validation against http://json-schema.org/draft-04/schema# due to "required" being in the wrong place.
Some of the samples had errors which prevented them from validating against the schema. "source" replaced with "$source", version added, urn included, mmsi format corrected, meta/zones corrected and alarm methods corrected as appropriate.
The timestamp now has to be in date-time format. As a result quite a few test data and sample files had to be updated along with a test js file which had json embedded for test purposes.
Also changed the reference from ISO 8601 to RFC 3339 which is the format SK is using. RFC 3339 is just one of the possible ISO 8601 formats.
@tkurki tkurki merged commit d55610a into master Jan 26, 2017
@tkurki tkurki deleted the changelog-generation branch January 26, 2017 19:39
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