Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
0c13ff8
Refactoring work for adding directory structure to schemas.
stephanesan Mar 7, 2016
8c73c87
Refactor: continued teh rename *.json -> *-schema.json
stephanesan Mar 7, 2016
dd79a69
Also refactor id's that were not terminated with .json
stephanesan Mar 7, 2016
27c2fbb
Fix dual documentation declaration in rdpublish.raml.
stephanesan Mar 7, 2016
3f099d7
include legal notice from external file.
stephanesan Mar 8, 2016
7ba5cf3
repair rdpublish which was messed up with previous commit.
stephanesan Mar 8, 2016
e28a9e0
Test splitting legal content in seperate files.
stephanesan Mar 18, 2016
4b7c073
Implemented ocf lawyer's recommendation.
stephanesan Mar 22, 2016
c903c1e
Replace all OIC occurences by OCF in legal content.
stephanesan Mar 22, 2016
66b9872
All schemas id's include the 'schemas' folder and same document ref.
stephanesan Mar 24, 2016
424db30
Merge pull request #1 from stephanesan/refactor
stephanesan Mar 24, 2016
64fd9f0
Align schemas to OIC v1.1 changes
rabardini May 2, 2016
cd51efe
Merge pull request #2 from rabardini/refactor
stephanesan May 2, 2016
afe245e
Merge pull request #1 from openconnectivityfoundation/refactor
rabardini May 2, 2016
d70b817
Merge pull request #2 from rabardini/refactor
rabardini May 2, 2016
c74dc11
Merge pull request #3 from rabardini/master
stephanesan May 2, 2016
03ce288
v1.1.0
rabardini Jun 23, 2016
7d25b44
Merge remote-tracking branch 'refs/remotes/openconnectivityfoundation…
rabardini Jun 23, 2016
aeff95d
Merge pull request #4 from rabardini/master
stephanesan Jun 23, 2016
7134324
v1.1.0 - Added Pattern
rabardini Jul 8, 2016
add7b4c
Merge remote-tracking branch 'refs/remotes/openconnectivityfoundation…
rabardini Jul 8, 2016
df3b50f
v1.1.0 - Fixed pattern syntax for mndt property. Added format for all…
rabardini Jul 12, 2016
26780a7
v1.1.0 - Fixed pattern syntax for mndt property. Added format for all…
rabardini Jul 12, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions DISCLAIMER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
THIS SOFTWARE IS PROVIDED BY THE OPEN CONNECTIVITY FOUNDATION, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN CONNECTIVITY FOUNDATION, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3 changes: 3 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
40 changes: 0 additions & 40 deletions oic.core.json

This file was deleted.

68 changes: 0 additions & 68 deletions oic.oic-link.json

This file was deleted.

31 changes: 16 additions & 15 deletions oic.wk.con.raml
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
#%RAML 0.8
title: OIC Configuration
version: v1-20150807
version: v1-20160622
documentation:
- title: Copyright (c) 2016 Open Interconnect Consortium, Inc. All rights reserved.
content: |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

- title: OCF Copyright
content: Copyright (c) 2016 Open Connectivity Foundation, Inc. All rights reserved.
- title: OCF License
content: !include LICENSE.md
- title: OCF Disclaimer
content: !include DISCLAIMER.md


schemas:
- Configuration: !include oic.wk.con.json
- Configuration: !include schemas/oic.wk.con-schema.json


traits:
- interface:
queryParameters:
if:
enum: ["oic.if.rw"]
enum: ["oic.if.rw", "oic.if.baseline"]

/oic/con:
displayName: OIC Configuration
is: [ interface ]
description: |
Known resource that is hosted by every OIC Server.
Known resource that is hosted by every Server.
Allows for device specific information to be configured.

get:
Expand All @@ -37,7 +38,7 @@ traits:
schema: Configuration
example: |
{
"rt": "oic.wk.con",
"rt": ["oic.wk.con"],
"n": "My Friendly Device Name",
"loc": "My Location Information",
"locn": "My Location Name",
Expand All @@ -47,7 +48,7 @@ traits:

post:
description: |
Update the information about the OIC device
Update the information about the Device
body:
application/json:
schema: Configuration
Expand Down
32 changes: 17 additions & 15 deletions oic.wk.d.raml
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
#%RAML 0.8
title: OIC Root Device
version: v1-20150811
version: v1-20160622
documentation:
- title: Copyright (c) 2016 Open Interconnect Consortium, Inc. All rights reserved.
content: |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

- title: OCF Copyright
content: Copyright (c) 2016 Open Connectivity Foundation, Inc. All rights reserved.
- title: OCF License
content: !include LICENSE.md
- title: OCF Disclaimer
content: !include DISCLAIMER.md


schemas:
- Device: !include oic.wk.d.json
- Device: !include schemas/oic.wk.d-schema.json
traits:
- interface:
queryParameters:
if:
enum: ["oic.if.r"]
enum: ["oic.if.r", "oic.if.baseline"]

/oic/d:
displayName: OIC Logical Device
displayName: Device
is: [ interface ]
description: |
Known resource that is hosted by every OIC Server.
Known resource that is hosted by every Server.
Allows for logical device specific information to be discovered.
get:
description: |
Retrieve the information about the OIC device
Retrieve the information about the Device
responses:
200:
body:
Expand All @@ -35,7 +36,8 @@ traits:
example: |
{
"n": "Device 1",
"rt": "oic.wk.d",
"rt": ["oic.wk.d"],
"di": "54919CA5-4101-4AE4-595B-353C51AA983C",
"icv": "OIC 1.0"
"icv": "core.1.1.0",
"dmv": "res.1.1.0"
}
22 changes: 0 additions & 22 deletions oic.wk.ifs.json

This file was deleted.

31 changes: 16 additions & 15 deletions oic.wk.ifs.raml
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
#%RAML 0.8
title: OIC Interface Types
version: v1-20150811
title: Interface Types
version: v1-20160622
documentation:
- title: Copyright (c) 2016 Open Interconnect Consortium, Inc. All rights reserved.
content: |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

- title: OCF Copyright
content: Copyright (c) 2016 Open Connectivity Foundation, Inc. All rights reserved.
- title: OCF License
content: !include LICENSE.md
- title: OCF Disclaimer
content: !include DISCLAIMER.md


schemas:
- IFS: !include oic.wk.ifs.json
- IFS: !include schemas/oic.wk.ifs-schema.json
traits:
- interface:
queryParameters:
if:
enum: ["oic.if.r"]
enum: ["oic.if.r", "oic.if.baseline"]

/oic/ifs:
displayName: OIC Inteface Types
displayName: Inteface Types
is: [ interface ]
description: |
List of resource interfaces that are supported by this OIC Server
List of resource interfaces that are supported by this Server
get:
description: Retrieve the resource interface list
responses:
Expand All @@ -32,6 +33,6 @@ traits:
schema: IFS
example: |
{
"rt": "oic.wk.ifs",
"il": "oic.if.ll oic.if.bat oic.if.r"
"rt": ["oic.wk.ifs"],
"il": ["oic.if.ll", "oic.if.b", "oic.if.r"]
}
29 changes: 15 additions & 14 deletions oic.wk.mnt.raml
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
#%RAML 0.8
title: OIC Maintenance
version: v1-20150811
title: Maintenance
version: v1-20160622
documentation:
- title: Copyright (c) 2016 Open Interconnect Consortium, Inc. All rights reserved.
content: |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE OPEN INTERCONNECT CONSORTIUM, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR WARRANTIES OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE OPEN INTERCONNECT CONSORTIUM, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

- title: OCF Copyright
content: Copyright (c) 2016 Open Connectivity Foundation, Inc. All rights reserved.
- title: OCF License
content: !include LICENSE.md
- title: OCF Disclaimer
content: !include DISCLAIMER.md


schemas:
- MNT: !include oic.wk.mnt.json
- MNT: !include schemas/oic.wk.mnt-schema.json
traits:
- interface:
queryParameters:
if:
enum: ["oic.if.r"]
enum: ["oic.if.r", "oic.if.baseline"]

/oic/mnt:
displayName: OIC Maintenance
displayName: Maintenance
is: [ interface ]
description: |
The resource through which an OIC Device is maintained and can be used for diagnostic purposes.
The resource through which an Device is maintained and can be used for diagnostic purposes.
fr (Factory Reset) is a boolean.
The value 0 means No action (Default), the value 1 means Start Factory Reset
After factory reset, this value shall be changed back to the default value
Expand All @@ -44,7 +45,7 @@ traits:
schema: MNT
example: |
{
"rt": "oic.wk.mnt",
"rt": ["oic.wk.mnt"],
"n": "My Maintenance Actions",
"fr": false,
"rb": false,
Expand Down
Loading