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

IS-11 support #271

Open
wants to merge 116 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
d5e46c1
Add Flow Compatibility Management API base route
N-Nagorny Jan 11, 2022
487818e
Add IS-11 resource makers and implement all GET operations
N-Nagorny Jan 12, 2022
79d2024
Implement PUT and DELETE for /inputs/{inputId}/edid/base
N-Nagorny Jan 14, 2022
634967d
flowcompatibility_api.cpp: refactor repeated code
N-Nagorny Jan 14, 2022
6d2a212
Add IS-11 and BCP-004-01 JSON Schemas
N-Nagorny Jan 16, 2022
ca8c804
Implement PUT and DELETE for /senders/{senderId}/constraints/active, …
N-Nagorny Jan 16, 2022
4b8f590
Implement States of Sender and Receiver
N-Nagorny Jan 24, 2022
fff7420
Fix bst::optional nullopt values
N-Nagorny Feb 3, 2022
3de8159
Allow making Outputs without EDID
N-Nagorny Feb 21, 2022
142f765
Remove "senders"/"receivers" arrays from Input/Output properties
N-Nagorny Feb 21, 2022
7ba0287
Add Sender Capabilities to flowcompatibility_active_constraints_put_h…
N-Nagorny Mar 11, 2022
b11402e
IS-11: update schemas, apply the new spec name to the sources
N-Nagorny May 14, 2022
ae50dd1
flowcompatibility -> streamcompatibility
N-Nagorny May 14, 2022
d230c3a
Node: replace EDID examples with dummies, add minor fixes
N-Nagorny May 14, 2022
2bcaba0
Sync Sender/Receiver states with IS-11 spec
N-Nagorny May 14, 2022
16941f7
Prevent IS-11 restrictions violation
N-Nagorny May 14, 2022
f2b8918
Fix is_subconstraint(), add unit tests
N-Nagorny May 31, 2022
6604027
Get rid of list of parameter constraints used for checking if a Const…
N-Nagorny May 31, 2022
583969d
Align bst::optional usage in IS-11 with the rest of code
N-Nagorny May 31, 2022
b3cf776
Replace string literals with platform-independent version
N-Nagorny May 31, 2022
3755db2
Convert EDID binary stored as utility::string_t to std::vector<uint8_t>
N-Nagorny Jun 27, 2022
986820e
Sync IS-11 Status with the spec
N-Nagorny Jun 27, 2022
c8f111b
Make Sender validator of streamcompatibility_behaviour_thread customi…
N-Nagorny Jul 6, 2022
278a802
streamcompatibility_behaviour: make namespaces full
N-Nagorny Jul 6, 2022
4836364
is_subconstraint(): fix the rational case
N-Nagorny Jul 20, 2022
b48f40f
Add match_constraint() for arbitrary JSON value
N-Nagorny Nov 16, 2022
8141286
is_subconstraint(): fix comparing of rationals
N-Nagorny Nov 16, 2022
c5d2000
Add constraints matcher for Senders
N-Nagorny Nov 17, 2022
2bac1b6
Add validate_receiver() callback, expand validate_sender()'s return v…
N-Nagorny Nov 17, 2022
e94eddf
Remove senderReceiverSubrouteType
N-Nagorny Nov 17, 2022
0812d6f
Minor fixes
N-Nagorny Nov 17, 2022
8eabb3f
Align make_node_implementation_streamcompatibility_...() naming
N-Nagorny Nov 17, 2022
7df92e9
Fix is_constraint_subset()
N-Nagorny Nov 20, 2022
376d616
Decouple IS-11 and IS-05
N-Nagorny Nov 20, 2022
5c8ab03
Apply suggestions from code review
N-Nagorny Nov 22, 2022
0dcdd31
Remove trailing commas
N-Nagorny Nov 22, 2022
a538f15
Move default connection_resource_patch_validator to nmos/connection_s…
N-Nagorny Nov 22, 2022
8801298
Replace validate_sender_resources with make_streamcompatibility_sende…
N-Nagorny Nov 23, 2022
b62883e
Fix inverted logic in subconstraint and constraint subset definitions
N-Nagorny Nov 23, 2022
e83e7d9
Get rid of structured bindings
N-Nagorny Nov 23, 2022
8084118
constraint_{min,max}imum: field<double> -> field_as_value
N-Nagorny Nov 30, 2022
e0756a2
Rename validate_sender to validate_sender_resources
N-Nagorny Nov 30, 2022
7d799c5
Add a Stream Compatibility validation test
N-Nagorny Nov 30, 2022
8ba4b46
Merge remote-tracking branch 'origin/master' into is-11
garethsb Dec 2, 2022
0444c02
Compare integer min/max as int64_t
garethsb Dec 2, 2022
6574cd7
Merge branch 'master' into is-11
N-Nagorny Dec 4, 2022
402fa7d
Revert changes in sdp_utils.{cpp,h}
N-Nagorny Dec 4, 2022
f5216f3
Add make_streamcompatibility_sdp_constraint_sets_matcher
N-Nagorny Dec 4, 2022
cd890ad
Fix /{senders,receivers}/{resourceId}/{inputs,outputs}
N-Nagorny Dec 6, 2022
6f46f53
Fix PUTting an empty array to Active Constraints
N-Nagorny Feb 2, 2023
8fc7591
Add default streamcompatibility_sender_validator to node_implementation
N-Nagorny Feb 2, 2023
8680a8f
Move empty Active Constraints fix
N-Nagorny Feb 3, 2023
d24eb37
Add "edid_support" to Node config
N-Nagorny Mar 21, 2023
2e08ff5
Different supported parameter constraints and Sedner Caps for video a…
N-Nagorny Mar 21, 2023
f5106ca
Add handling of Active Constraints which Constraint Sets contain less…
N-Nagorny Mar 21, 2023
fb0e20e
Fix build
N-Nagorny Mar 21, 2023
c5f2834
Merge remote-tracking branch 'origin/master' into is-11
N-Nagorny Apr 9, 2023
15a27a9
Add room for custom "debug" in 422 response
N-Nagorny Apr 9, 2023
c07645b
Fix Windows build
N-Nagorny Apr 17, 2023
fdaac5c
Merge remote-tracking branch 'origin/master' into is-11
garethsb Apr 20, 2023
e31e434
Add make_streamcompatibility_receiver_validator
N-Nagorny Apr 20, 2023
48b3c2c
Fix Sender validator for video/jxsv
N-Nagorny Apr 20, 2023
29bc35b
Fix receivers validation
N-Nagorny Apr 20, 2023
16af3ee
Fill Sender Caps from impl::fields
N-Nagorny Apr 20, 2023
9a4d99f
Restore the elegance of make_node_implementation
N-Nagorny Apr 20, 2023
8e22199
Merge Base EDID PUT and Base EDID DELETE handlers into a single one
N-Nagorny Apr 20, 2023
0195a9e
Remove has_value()
N-Nagorny Apr 20, 2023
389bcd2
streamcompatibility_active_constraints_put_handler: take streamcompat…
N-Nagorny Apr 20, 2023
1d1f878
Add get_constraint_set_intersection for streamcompatibility_active_co…
N-Nagorny Apr 21, 2023
56d9555
Store intersection of Sender Caps and Active Constraints in streamcom…
N-Nagorny Apr 22, 2023
abd69b1
Fix print-outs
N-Nagorny Apr 22, 2023
9bc3c91
constraints.cpp tweaks
N-Nagorny Apr 25, 2023
fd69423
streamcompatibility_active_constraints_put_handler -> streamcompatibi…
N-Nagorny Apr 25, 2023
6b75505
Separate 422 and empty intersection
N-Nagorny Apr 25, 2023
e0b29e1
Run IS-11 test suite as part of CI
N-Nagorny Apr 25, 2023
9e9ac54
Quickfix
N-Nagorny Apr 25, 2023
1631623
Temporarily ignore auto_connection_21
N-Nagorny Apr 25, 2023
dff5591
Revert "Temporarily ignore auto_connection_21"
N-Nagorny Apr 27, 2023
3d71441
CI: switch IS-11 branch
N-Nagorny Apr 28, 2023
e5efb1d
Move video_jxsv_sender_resources_matcher to video_jxsv.{h,cpp}
N-Nagorny Apr 28, 2023
ecf6aaf
Fix streamcompatibility_sender_validator typedef
N-Nagorny Apr 28, 2023
e1f707c
Remove "merge" from get_constraint_set_intersection
N-Nagorny Apr 28, 2023
c0c479f
Replace make_streamcompatibility_receiver_validator's transport_file_…
N-Nagorny Apr 28, 2023
4edcf0c
Simplify make_node_implementation_streamcompatibility_active_constrai…
N-Nagorny May 5, 2023
4a37cd8
constraint_value_less: detail -> details
N-Nagorny May 5, 2023
bd128a3
Restore filtering out "meta" in get_constraint_set_intersection
N-Nagorny May 5, 2023
ca0b38a
Fix '"enum" matches "min"/"max"' case
N-Nagorny May 22, 2023
c17013f
Add settings for IS-11 implementation control
N-Nagorny May 22, 2023
04f1fc9
CI: print test results for failed suites
N-Nagorny May 22, 2023
bda591e
Fix streamcompatibility_index issue
N-Nagorny Jun 13, 2023
dbfc11d
Add "device_id" to IS-11 Input/Output
N-Nagorny Feb 13, 2023
60fa835
Add "base_edid_changeable" to Input
N-Nagorny Feb 15, 2023
3c01117
"base_edid_changeable" -> "base_edid_support"
N-Nagorny Jul 1, 2023
17f9721
Add "default_signal"
N-Nagorny Jul 1, 2023
28241d0
Update JSON Schemas
N-Nagorny Jul 1, 2023
b24f84d
Add "adjust_to_caps"
N-Nagorny Jul 3, 2023
b98dab7
Update JSON Schemas
N-Nagorny Jul 20, 2023
2e033b5
Remove support of obsolete "base_edid", "effective_edid" and "edid" J…
N-Nagorny Jul 20, 2023
146beed
Add "master_enable" check before Receiver's stream compliance check
N-Nagorny Jul 22, 2023
74e20cc
Wrap adjust_to_caps checks with U macro
N-Nagorny Jul 22, 2023
8f3301c
Erase "debug" in Status of S/R if it's empty in the last update
N-Nagorny Jul 22, 2023
c778adc
CI: temporarily switch to nmos-testing fork
N-Nagorny Jul 22, 2023
4c446ba
Fix edid_href
N-Nagorny Oct 12, 2023
0d8f8e4
CI: change the branch
N-Nagorny Nov 1, 2023
20b8a7d
Remove BCP-004-01 schemas since they were copied to IS-11
N-Nagorny Nov 1, 2023
290c745
Switch nmos-testing to AMWA-TV:is-11
N-Nagorny Mar 4, 2024
a21a413
Merge branch 'master' into is-11
N-Nagorny Mar 4, 2024
effaa6f
Add IS-11 docs
N-Nagorny Mar 6, 2024
726f18f
Temporarily disable IS-11 tests
N-Nagorny Mar 6, 2024
373ffa9
Merge branch 'master' into is-11
N-Nagorny Mar 7, 2024
a522324
Remove spaces
lo-simon Mar 11, 2024
fbb4470
Add IS-10 support
lo-simon Mar 11, 2024
d33fdfa
Merge pull request #1 from lo-simon/add-is10-support-to-is11
N-Nagorny Mar 12, 2024
3fa4720
Apply suggestions from code review
N-Nagorny Mar 13, 2024
7bce8b5
IS-11 branch: v1.0-dev -> v1.0.x
N-Nagorny Mar 15, 2024
7d47286
Update IS-11 docs
N-Nagorny Mar 21, 2024
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
Prev Previous commit
Next Next commit
Update JSON Schemas
  • Loading branch information
N-Nagorny committed Jul 21, 2023
commit b98dab7dfc8e3e054a3c4c3e29bf4eac220a3ea4
8 changes: 8 additions & 0 deletions Development/cmake/NmosCppLibraries.cmake
Original file line number Diff line number Diff line change
@@ -697,15 +697,23 @@ set(NMOS_IS11_V1_0_TAG v1.0.x)
set(NMOS_IS11_V1_0_SCHEMAS_JSON
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/constraints_active.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/constraints-base.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/constraint_set.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/constraints_supported.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/empty_constraints_active.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/error.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/input-edid-base.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/input.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/input-output-base.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/output.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/param_constraint_boolean.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/param_constraint_integer.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/param_constraint.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/param_constraint_number.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/param_constraint_rational.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/param_constraint_string.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/receiver-base.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/receiver-status.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/resource_core.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/resource-list.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/sender-base.json
third_party/is-11/${NMOS_IS11_V1_0_TAG}/APIs/schemas/sender-status.json
10 changes: 9 additions & 1 deletion Development/nmos/is11_schemas/is11_schemas.h
Original file line number Diff line number Diff line change
@@ -11,19 +11,27 @@ namespace nmos
{
extern const char* constraints_active;
extern const char* constraints_base;
extern const char* constraint_set;
extern const char* constraints_supported;
extern const char* empty_constraints_active;
extern const char* error;
extern const char* streamcompatibility_api_base;
extern const char* input_edid_base;
extern const char* input;
extern const char* input_output_base;
extern const char* output;
extern const char* param_constraint_boolean;
extern const char* param_constraint_integer;
extern const char* param_constraint;
extern const char* param_constraint_number;
extern const char* param_constraint_rational;
extern const char* param_constraint_string;
extern const char* receiver_base;
extern const char* receiver_status;
extern const char* resource_core;
extern const char* resource_list;
extern const char* sender_base;
extern const char* sender_status;
extern const char* streamcompatibility_api_base;
extern const char* uuid_list;
}
}
9 changes: 8 additions & 1 deletion Development/nmos/json_schema.cpp
Original file line number Diff line number Diff line change
@@ -352,7 +352,14 @@ namespace nmos
return
{
// v1.0
{ make_schema_uri(v1_0::tag, _XPLATSTR("constraints_active.json")), make_schema(v1_0::constraints_active) }
{ make_schema_uri(v1_0::tag, _XPLATSTR("constraints_active.json")), make_schema(v1_0::constraints_active) },
{ make_schema_uri(v1_0::tag, _XPLATSTR("constraint_set.json")), make_schema(v1_0::constraint_set) },
{ make_schema_uri(v1_0::tag, _XPLATSTR("param_constraint_boolean.json")), make_schema(v1_0::param_constraint_boolean) },
{ make_schema_uri(v1_0::tag, _XPLATSTR("param_constraint_integer.json")), make_schema(v1_0::param_constraint_integer) },
{ make_schema_uri(v1_0::tag, _XPLATSTR("param_constraint.json")), make_schema(v1_0::param_constraint) },
{ make_schema_uri(v1_0::tag, _XPLATSTR("param_constraint_number.json")), make_schema(v1_0::param_constraint_number) },
{ make_schema_uri(v1_0::tag, _XPLATSTR("param_constraint_rational.json")), make_schema(v1_0::param_constraint_rational) },
{ make_schema_uri(v1_0::tag, _XPLATSTR("param_constraint_string.json")), make_schema(v1_0::param_constraint_string) },
};
}

16 changes: 16 additions & 0 deletions Development/third_party/is-11/v1.0.x/APIs/schemas/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
This directory is for JSON Schemas used in documentation. Some of them were copied from other AMWA NMOS specifications.

[IS-04 v1.3.2][]:
- [resource_core.json](https://github.com/AMWA-TV/is-04/raw/v1.3.2/APIs/schemas/resource_core.json)

[BCP-004-01 v1.0.0][]:
- [constraint_set.json](https://github.com/AMWA-TV/bcp-004-01/raw/v1.0.0/APIs/schemas/constraint_set.json)
- [param_constraint.json](https://github.com/AMWA-TV/bcp-004-01/raw/v1.0.0/APIs/schemas/param_constraint.json)
- [param_constraint_boolean.json](https://github.com/AMWA-TV/bcp-004-01/raw/v1.0.0/APIs/schemas/param_constraint_boolean.json)
- [param_constraint_integer.json](https://github.com/AMWA-TV/bcp-004-01/raw/v1.0.0/APIs/schemas/param_constraint_integer.json)
- [param_constraint_number.json](https://github.com/AMWA-TV/bcp-004-01/raw/v1.0.0/APIs/schemas/param_constraint_number.json)
- [param_constraint_rational.json](https://github.com/AMWA-TV/bcp-004-01/raw/v1.0.0/APIs/schemas/param_constraint_rational.json)
- [param_constraint_string.json](https://github.com/AMWA-TV/bcp-004-01/raw/v1.0.0/APIs/schemas/param_constraint_string.json)

[IS-04 v1.3.2]: https://specs.amwa.tv/is-04/releases/v1.3.2/
[BCP-004-01 v1.0.0]: https://specs.amwa.tv/bcp-004-01/releases/v1.0.0/
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes a Constraint Set",
"title": "Constraint Set",
"type": "object",
"minProperties": 1,
"properties": {
"urn:x-nmos:cap:meta:label": {
"description": "Freeform string label for the Constraint Set",
"type": "string"
},
"urn:x-nmos:cap:meta:preference": {
"description": "This value expresses the relative 'weight' that the Receiver assigns to its preference for the streams satisfied by the associated Constraint Set. The weight is an integer in the range -100 through 100, where -100 is least preferred and 100 is most preferred. When the attribute is omitted, the effective value for the associated Constraint Set is 0.",
"type": "integer",
"default": 0,
"maximum": 100,
"minimum": -100
},
"urn:x-nmos:cap:meta:enabled": {
"description": "This value indicates whether a Constraint Set is available to use immediately (true) or whether this is an offline capability which can be activated via some unspecified configuration mechanism (false). When the attribute is omitted its value is assumed to be true.",
"type": "boolean",
"default": true
}
},
"patternProperties": {
"^urn:x-nmos:cap:(?!meta:)": {
"$ref": "param_constraint.json"
}
}
}
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
"constraint_sets": {
"type": "array",
"items": {
"$ref": "https://github.com/AMWA-TV/bcp-004-01/raw/v1.0.x/APIs/schemas/constraint_set.json"
"$ref": "constraint_set.json"
}
}
}
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
"constraint_sets": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/AMWA-TV/nmos-receiver-capabilities/v1.0.0/APIs/schemas/constraint_set.json"
"$ref": "constraint_set.json"
},
"minItems": 0,
"maxItems": 0
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
"description": "Describes an Input",
"title": "Input resource",
"allOf": [
{ "$ref": "https://raw.githubusercontent.com/AMWA-TV/nmos-discovery-registration/v1.3.1/APIs/schemas/resource_core.json" },
{ "$ref": "resource_core.json" },
{
"type": "object",
"required": [
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
"description": "Describes an Output",
"title": "Output resource",
"allOf": [
{ "$ref": "https://raw.githubusercontent.com/AMWA-TV/nmos-discovery-registration/v1.3.1/APIs/schemas/resource_core.json" },
{ "$ref": "resource_core.json" },
{
"type": "object",
"required": [
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes a Parameter Constraint",
"title": "Parameter Constraint",
"type": "object",
"anyOf": [
{ "$ref": "param_constraint_string.json" },
{ "$ref": "param_constraint_integer.json" },
{ "$ref": "param_constraint_number.json" },
{ "$ref": "param_constraint_boolean.json" },
{ "$ref": "param_constraint_rational.json" }
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes a Boolean Parameter Constraint",
"title": "Boolean Parameter Constraint",
"type": "object",
"properties": {
"enum": {
"type": "array",
"minItems": 1,
"items": {
"type": "boolean"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes an Integer Parameter Constraint",
"title": "Integer Parameter Constraint",
"type": "object",
"properties": {
"enum": {
"type": "array",
"minItems": 1,
"items": {
"type": "integer"
}
},
"minimum": {
"type": "integer"
},
"maximum": {
"type": "integer"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes a Number Parameter Constraint",
"title": "Number Parameter Constraint",
"type": "object",
"properties": {
"enum": {
"type": "array",
"minItems": 1,
"items": {
"type": "number"
}
},
"minimum": {
"type": "number"
},
"maximum": {
"type": "number"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes a Rational Parameter Constraint",
"title": "Rational Parameter Constraint",
"type": "object",
"properties": {
"enum": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/definitions/rational"
}
},
"minimum": {
"$ref": "#/definitions/rational"
},
"maximum": {
"$ref": "#/definitions/rational"
}
},
"definitions": {
"rational": {
"type": "object",
"required": [
"numerator"
],
"properties": {
"numerator": {
"type": "integer"
},
"denominator": {
"type": "integer",
"default": 1
}
},
"additionalProperties": false
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes a String Parameter Constraint",
"title": "String Parameter Constraint",
"type": "object",
"properties": {
"enum": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Describes the foundations of all NMOS resources",
"title": "Base resource",
"required": [
"id",
"version",
"label",
"description",
"tags"
],
"properties": {
"id": {
"description": "Globally unique identifier for the resource",
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"version": {
"description": "String formatted TAI timestamp (<seconds>:<nanoseconds>) indicating precisely when an attribute of the resource last changed",
"type": "string",
"pattern": "^[0-9]+:[0-9]+$"
},
"label": {
"description": "Freeform string label for the resource",
"type": "string"
},
"description": {
"description": "Detailed description of the resource",
"type": "string"
},
"tags": {
"description": "Key value set of freeform string tags to aid in filtering resources. Values should be represented as an array of strings. Can be empty.",
"type": "object",
"patternProperties": {
"": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}