You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/hydra/docs.feature
+11-10Lines changed: 11 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -33,9 +33,9 @@ Feature: Documentation support
33
33
And the JSON node "hydra:description" should contain "Made with love"
34
34
And the JSON node "hydra:entrypoint" should be equal to "/"
35
35
# Supported classes
36
-
And the Hydra class "The API entrypoint" exists
37
-
And the Hydra class "A constraint violation" exists
38
-
And the Hydra class "A constraint violation list" exists
36
+
And the Hydra class "Entrypoint" exists
37
+
And the Hydra class "ConstraintViolation" exists
38
+
And the Hydra class "ConstraintViolationList" exists
39
39
And the Hydra class "CircularReference" exists
40
40
And the Hydra class "CustomIdentifierDummy" exists
41
41
And the Hydra class "CustomNormalizedDummy" exists
@@ -49,7 +49,6 @@ Feature: Documentation support
49
49
# Doc
50
50
And the value of the node "@id" of the Hydra class "Dummy" is "#Dummy"
51
51
And the value of the node "@type" of the Hydra class "Dummy" is "hydra:Class"
52
-
And the value of the node "rdfs:label" of the Hydra class "Dummy" is "Dummy"
53
52
And the value of the node "hydra:title" of the Hydra class "Dummy" is "Dummy"
54
53
And the value of the node "hydra:description" of the Hydra class "Dummy" is "Dummy."
55
54
# Properties
@@ -62,7 +61,7 @@ Feature: Documentation support
62
61
And the value of the node "@type" of the property "name" of the Hydra class "Dummy" is "hydra:SupportedProperty"
63
62
And the value of the node "hydra:property.@id" of the property "name" of the Hydra class "Dummy" is "https://schema.org/name"
64
63
And the value of the node "hydra:property.@type" of the property "name" of the Hydra class "Dummy" is "rdf:Property"
65
-
And the value of the node "hydra:property.rdfs:label" of the property "name" of the Hydra class "Dummy" is "name"
64
+
And the value of the node "hydra:property.label" of the property "name" of the Hydra class "Dummy" is "name"
66
65
And the value of the node "hydra:property.domain" of the property "name" of the Hydra class "Dummy" is "#Dummy"
67
66
And the value of the node "hydra:property.range" of the property "name" of the Hydra class "Dummy" is "xmls:string"
68
67
And the value of the node "hydra:property.range" of the property "relatedDummy" of the Hydra class "Dummy" is "https://schema.org/Product"
@@ -74,14 +73,16 @@ Feature: Documentation support
74
73
And the value of the node "@type" of the operation "GET" of the Hydra class "Dummy" contains "hydra:Operation"
75
74
And the value of the node "@type" of the operation "GET" of the Hydra class "Dummy" contains "schema:FindAction"
76
75
And the value of the node "hydra:method" of the operation "GET" of the Hydra class "Dummy" is "GET"
77
-
And the value of the node "hydra:title" of the operation "GET" of the Hydra class "Dummy" is "Retrieves a Dummy resource."
78
-
And the value of the node "rdfs:label" of the operation "GET" of the Hydra class "Dummy" is "Retrieves a Dummy resource."
76
+
And the value of the node "hydra:title" of the operation "GET" of the Hydra class "Dummy" is "getDummy"
77
+
And the value of the node "hydra:description" of the operation "GET" of the Hydra class "Dummy" is "Retrieves a Dummy resource."
79
78
And the value of the node "returns" of the operation "GET" of the Hydra class "Dummy" is "Dummy"
80
-
And the value of the node "hydra:title" of the operation "PUT" of the Hydra class "Dummy" is "Replaces the Dummy resource."
81
-
And the value of the node "hydra:title" of the operation "DELETE" of the Hydra class "Dummy" is "Deletes the Dummy resource."
79
+
And the value of the node "hydra:title" of the operation "PUT" of the Hydra class "Dummy" is "putDummy"
80
+
And the value of the node "hydra:description" of the operation "PUT" of the Hydra class "Dummy" is "Replaces the Dummy resource."
81
+
And the value of the node "hydra:description" of the operation "DELETE" of the Hydra class "Dummy" is "Deletes the Dummy resource."
82
+
And the value of the node "hydra:title" of the operation "DELETE" of the Hydra class "Dummy" is "deleteDummy"
82
83
And the value of the node "returns" of the operation "DELETE" of the Hydra class "Dummy" is "owl:Nothing"
83
84
# Deprecations
84
85
And the boolean value of the node "owl:deprecated" of the Hydra class "DeprecatedResource" is true
85
86
And the boolean value of the node "hydra:property.owl:deprecated" of the property "deprecatedField" of the Hydra class "DeprecatedResource" is true
86
-
And the boolean value of the node "owl:deprecated" of the property "The collection of DeprecatedResource resources" of the Hydra class "The API entrypoint" is true
87
+
And the boolean value of the node "owl:deprecated" of the property "getDeprecatedResourceCollection" of the Hydra class "Entrypoint" is true
87
88
And the boolean value of the node "owl:deprecated" of the operation "GET" of the Hydra class "DeprecatedResource" is true
Copy file name to clipboardExpand all lines: features/main/validation.feature
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -29,8 +29,8 @@ Feature: Using validations groups
29
29
And the JSON should be a superset of:
30
30
"""
31
31
{
32
-
"@context": "/contexts/ConstraintViolationList",
33
-
"@type": "ConstraintViolationList",
32
+
"@context": "/contexts/ConstraintViolation",
33
+
"@type": "ConstraintViolation",
34
34
"title": "An error occurred",
35
35
"description": "name: This value should not be null.",
36
36
"violations": [
@@ -58,8 +58,8 @@ Feature: Using validations groups
58
58
And the JSON should be a superset of:
59
59
"""
60
60
{
61
-
"@context": "/contexts/ConstraintViolationList",
62
-
"@type": "ConstraintViolationList",
61
+
"@context": "/contexts/ConstraintViolation",
62
+
"@type": "ConstraintViolation",
63
63
"title": "An error occurred",
64
64
"description": "title: This value should not be null.",
65
65
"violations": [
@@ -111,8 +111,8 @@ Feature: Using validations groups
111
111
And the JSON should be a superset of:
112
112
"""
113
113
{
114
-
"@context": "/contexts/ConstraintViolationList",
115
-
"@type": "ConstraintViolationList",
114
+
"@context": "/contexts/ConstraintViolation",
115
+
"@type": "ConstraintViolation",
116
116
"hydra:title": "An error occurred",
117
117
"hydra:description": "baz: This value should be of type string.\nqux: This value should be of type string.\nfoo: This value should be of type bool.\nbar: This value should be of type int.\nuuid: This value should be of type uuid.\nrelatedDummy: This value should be of type array|string.\nrelatedDummies: This value should be of type array.",
0 commit comments