Skip to content

Commit

Permalink
Update IS-14 schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
lo-simon committed Apr 12, 2024
1 parent a8794c5 commit 05d6270
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 6 deletions.
5 changes: 5 additions & 0 deletions Development/cmake/NmosCppLibraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,11 @@ set(NMOS_IS14_V1_0_TAG v1.0.x)

set(NMOS_IS14_V1_0_SCHEMAS_JSON
third_party/is-14/${NMOS_IS14_V1_0_TAG}/APIs/schemas/base.json
third_party/is-14/${NMOS_IS14_V1_0_TAG}/APIs/schemas/bulkProperties-get-response.json
third_party/is-14/${NMOS_IS14_V1_0_TAG}/APIs/schemas/bulkProperties-set-request.json
third_party/is-14/${NMOS_IS14_V1_0_TAG}/APIs/schemas/bulkProperties-set-response.json
third_party/is-14/${NMOS_IS14_V1_0_TAG}/APIs/schemas/bulkProperties-validate-request.json
third_party/is-14/${NMOS_IS14_V1_0_TAG}/APIs/schemas/bulkProperties-validate-response.json
third_party/is-14/${NMOS_IS14_V1_0_TAG}/APIs/schemas/descriptor-get.json
third_party/is-14/${NMOS_IS14_V1_0_TAG}/APIs/schemas/method-patch-request.json
third_party/is-14/${NMOS_IS14_V1_0_TAG}/APIs/schemas/method-patch-response.json
Expand Down
5 changes: 5 additions & 0 deletions Development/nmos/is14_schemas/is14_schemas.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ namespace nmos
namespace v1_0_x
{
extern const char* base;
extern const char* bulkProperties_get_response;
extern const char* bulkProperties_set_request;
extern const char* bulkProperties_set_response;
extern const char* bulkProperties_validate_request;
extern const char* bulkProperties_validate_response;
extern const char* descriptor_get;
extern const char* method_patch_request;
extern const char* method_patch_response;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Returns a NcMethodResultBulkValuesHolder from a bulkProperties GET",
"title": "NcMethodResultBulkValuesHolder"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "PUT request body for invoking SetPropertiesByPaths method on NcBulkPropertiesManager",
"title": "SetPropertiesByPaths",
"required": [
"arguments"
],
"properties": {
"arguments": {
"type": "object",
"description": "Method arguments. Arguments are specified as nested properties inside this object and their types are dictated by the specific MS-05-02 model for the method targeted. Arguments only need to be included for methods which have arguments and MUST be omitted if the method does not require any arguments."
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Returns a NcMethodResultObjectPropertiesSetValidation from a bulkProperties PUT",
"title": "NcMethodResultObjectPropertiesSetValidation"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "PATCH request body for validating NcBulkValuesHolder object.",
"title": "ValidateSetPropertiesByPaths",
"required": [
"arguments"
],
"properties": {
"arguments": {
"type": "object",
"description": "Method arguments. Arguments are specified as nested properties inside this object and their types are dictated by the specific MS-05-02 model for the method targeted. Arguments only need to be included for methods which have arguments and MUST be omitted if the method does not require any arguments."
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Returns a NcMethodResultObjectPropertiesSetValidation from a bulkProperties OPTIONS",
"title": "NcMethodResultObjectPropertiesSetValidation"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"items": {
"type": "string",
"enum": [
"value/",
"descriptor/"
"descriptor/",
"value/"
]
},
"minItems": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
"items": {
"type": "string",
"enum": [
"properties/",
"bulkProperties",
"descriptors/",
"methods/",
"descriptors/"
"properties/"
]
},
"minItems": 3,
"maxItems": 3,
"minItems": 4,
"maxItems": 4,
"uniqueItems": true
}

0 comments on commit 05d6270

Please sign in to comment.