Skip to content

Commit

Permalink
change to draft 07 because we are using annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
noursaidi committed Sep 7, 2021
1 parent 79debc8 commit 37c8a3a
Show file tree
Hide file tree
Showing 32 changed files with 32 additions and 33 deletions.
3 changes: 1 addition & 2 deletions schema/common.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"title": "Common",
"$comment": "test hash",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"entry": {
"title": "Entry",
Expand Down
2 changes: 1 addition & 1 deletion schema/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Config",
"description": "The config block controls a device's intended behavior. Read more: <https://github.com/faucetsdn/udmi/blob/master/docs/config.md>",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"required": [
"timestamp",
Expand Down
2 changes: 1 addition & 1 deletion schema/config_blobset.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Blobset Config",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"blobs": {
Expand Down
2 changes: 1 addition & 1 deletion schema/config_blobset_blob.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Blob Blobset Config",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"stage": {
Expand Down
2 changes: 1 addition & 1 deletion schema/config_gateway.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Gateway Config",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"required": [
"proxy_ids"
Expand Down
2 changes: 1 addition & 1 deletion schema/config_localnet.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Localnet Config",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"subsystem": {
Expand Down
2 changes: 1 addition & 1 deletion schema/config_pointset.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Pointset Config",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"state_etag": {
Expand Down
2 changes: 1 addition & 1 deletion schema/config_pointset_point.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Point Pointset Config",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"ref": {
Expand Down
2 changes: 1 addition & 1 deletion schema/config_system.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "System Config",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"min_loglevel": {
Expand Down
2 changes: 1 addition & 1 deletion schema/event.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Event",
"description": "Container object for all event schemas, not directly used.",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"system": {
Expand Down
2 changes: 1 addition & 1 deletion schema/event_audit.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Audit",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"timestamp": {
Expand Down
2 changes: 1 addition & 1 deletion schema/event_discovery.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Discovery",
"description": "Read more: <https://github.com/faucetsdn/udmi/blob/master/docs/discovery.md>",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"timestamp": {
Expand Down
2 changes: 1 addition & 1 deletion schema/event_discovery_family.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Family Discovery Event",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"id": {
Expand Down
2 changes: 1 addition & 1 deletion schema/event_pointset.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Pointset Event",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"timestamp": {
Expand Down
2 changes: 1 addition & 1 deletion schema/event_pointset_point.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Point Pointset Event",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"present_value": {
Expand Down
2 changes: 1 addition & 1 deletion schema/event_system.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "System Event",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"timestamp": {
Expand Down
2 changes: 1 addition & 1 deletion schema/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Metadata",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"required": [
"timestamp",
Expand Down
2 changes: 1 addition & 1 deletion schema/metadata_cloud.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Cloud Metadata",
"description": "Information specific to how the device communicates with the cloud.",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"auth_type": {
Expand Down
2 changes: 1 addition & 1 deletion schema/metadata_gateway.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Gateway Metadata",
"description": "Read more: <https://github.com/faucetsdn/udmi/blob/master/docs/gateway.md>",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"gateway_id": {
Expand Down
2 changes: 1 addition & 1 deletion schema/metadata_localnet.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Localnet Metadata",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"subsystem": {
Expand Down
2 changes: 1 addition & 1 deletion schema/metadata_localnet_subsystem.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Subsystem Localnet Metadata",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"local_id": {
Expand Down
2 changes: 1 addition & 1 deletion schema/metadata_pointset.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Pointset Metadata",
"description": "Pointset representing the abstract system expectation for what the device should be doing, and how it should be configured and operated. This block specifies the expected points that a device holds",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"points": {
Expand Down
2 changes: 1 addition & 1 deletion schema/metadata_pointset_point.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Point Pointset Metadata",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"units": {
Expand Down
2 changes: 1 addition & 1 deletion schema/metadata_system.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "System Metadata",
"description": "High-level sytem informaiton about the device.",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"location": {
Expand Down
2 changes: 1 addition & 1 deletion schema/properties.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Properties",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"required": [
"key_type",
Expand Down
2 changes: 1 addition & 1 deletion schema/state.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "State",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"required": [
"timestamp",
Expand Down
2 changes: 1 addition & 1 deletion schema/state_blobset.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Blobset State",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"state_etag": {
Expand Down
2 changes: 1 addition & 1 deletion schema/state_blobset_blob.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Blob Blobset State",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"stage": {
Expand Down
2 changes: 1 addition & 1 deletion schema/state_gateway.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Gateway State",
"description": "Read more: <https://github.com/faucetsdn/udmi/blob/master/docs/gateway.md>",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"required": [
"error_ids"
Expand Down
2 changes: 1 addition & 1 deletion schema/state_pointset.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Pointset State",
"description": "A set of points reporting telemetry data.",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"state_etag": {
Expand Down
2 changes: 1 addition & 1 deletion schema/state_pointset_point.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Point Pointset State",
"description": "Object representation for for a single point",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"value_state": {
Expand Down
2 changes: 1 addition & 1 deletion schema/state_system.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "System State",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"make_model": {
Expand Down

0 comments on commit 37c8a3a

Please sign in to comment.