diff --git a/schemas/v1.0/schema.yaml b/schemas/v1.0/schema.yaml index 000bfa9..84223b1 100644 --- a/schemas/v1.0/schema.yaml +++ b/schemas/v1.0/schema.yaml @@ -37,6 +37,7 @@ $defs: $ref: "#/$defs/specification-extensions" unevaluatedProperties: false action-object: + type: object properties: target: type: string diff --git a/schemas/v1.1/schema.yaml b/schemas/v1.1/schema.yaml index c035fb7..641ebf8 100644 --- a/schemas/v1.1/schema.yaml +++ b/schemas/v1.1/schema.yaml @@ -39,6 +39,7 @@ $defs: $ref: "#/$defs/specification-extensions" unevaluatedProperties: false action-object: + type: object properties: target: type: string diff --git a/schemas/v1.2-dev/schema.yaml b/schemas/v1.2-dev/schema.yaml index 3669a8e..4891415 100644 --- a/schemas/v1.2-dev/schema.yaml +++ b/schemas/v1.2-dev/schema.yaml @@ -39,6 +39,7 @@ $defs: $ref: "#/$defs/specification-extensions" unevaluatedProperties: false action-object: + type: object properties: target: type: string diff --git a/tests/v1.0/fail/actions-item-invalid-type.yaml b/tests/v1.0/fail/actions-item-invalid-type.yaml new file mode 100644 index 0000000..662401b --- /dev/null +++ b/tests/v1.0/fail/actions-item-invalid-type.yaml @@ -0,0 +1,6 @@ +overlay: 1.0.0 +info: + title: Action items must be objects + version: 1.0.0 +actions: + - 123 \ No newline at end of file diff --git a/tests/v1.1/fail/actions-item-invalid-type.yaml b/tests/v1.1/fail/actions-item-invalid-type.yaml new file mode 100644 index 0000000..a76326b --- /dev/null +++ b/tests/v1.1/fail/actions-item-invalid-type.yaml @@ -0,0 +1,6 @@ +overlay: 1.1.0 +info: + title: Action items must be objects + version: 1.0.0 +actions: + - 123 \ No newline at end of file diff --git a/tests/v1.2-dev/fail/action-target-invalid-type.yaml b/tests/v1.2-dev/fail/action-target-invalid-type.yaml new file mode 100644 index 0000000..2254e9f --- /dev/null +++ b/tests/v1.2-dev/fail/action-target-invalid-type.yaml @@ -0,0 +1,6 @@ +overlay: 1.2.0 +info: + title: Action target must be a string + version: 1.0.0 +actions: + - target: 100 \ No newline at end of file diff --git a/tests/v1.2-dev/fail/actions-item-invalid-type.yaml b/tests/v1.2-dev/fail/actions-item-invalid-type.yaml new file mode 100644 index 0000000..378fc74 --- /dev/null +++ b/tests/v1.2-dev/fail/actions-item-invalid-type.yaml @@ -0,0 +1,6 @@ +overlay: 1.2.0 +info: + title: Action items must be objects + version: 1.0.0 +actions: + - 123 \ No newline at end of file diff --git a/tests/v1.2-dev/fail/overlay-invalid-pattern.yaml b/tests/v1.2-dev/fail/overlay-invalid-pattern.yaml new file mode 100644 index 0000000..95d584a --- /dev/null +++ b/tests/v1.2-dev/fail/overlay-invalid-pattern.yaml @@ -0,0 +1,6 @@ +overlay: '1.2' +info: + title: Overlay version must match 1.2.x + version: 1.0.0 +actions: + - target: '$' \ No newline at end of file