This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate against multiple schemas (#50)
* validate against multiple schemas * configuration, file loading * loading schemas into memory * fix response types * Add dns-sd types to wot package * update tests * Update expiry logic for compliance Give precedence to ttl for calculation of expiry fix ttl test, remove retrieval time * discovery attr validation with json schema * remove storage type from test log * Delete directory-td.jsonld * refactoring to use new validation function * update tests, readme, remove deprecated code * add function to check loaded schemas, refactor tests
- Loading branch information
Showing
11 changed files
with
167 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"title": "WoT Discovery TD-extensions Schema - 21 May 2021", | ||
"description": "JSON Schema for validating TD instances with WoT Discovery extensions", | ||
"$schema ": "http://json-schema.org/draft/2019-09/schema#", | ||
"type": "object", | ||
"properties": { | ||
"registration": { | ||
"type": "object", | ||
"properties": { | ||
"created": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"expires": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"retrieved": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"modified": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"ttl": { | ||
"type": "number" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.