@@ -657,7 +657,6 @@ Feature: Search filter on collections
657657 Given there is a dummy object with a fourth level relation
658658 When I send a "GET" request to "/dummies?relatedDummy.thirdLevel.level=3"
659659 Then the response status code should be 200
660- And the response should be in JSON
661660 And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
662661 And the JSON should be valid according to this schema:
663662 """
@@ -797,3 +796,81 @@ Feature: Search filter on collections
797796 }
798797 }
799798 """
799+
800+
801+ @createSchema
802+ Scenario : Search collection on a property using a nested name converted
803+ Given there are 30 convertedOwner objects with convertedRelated
804+ When I send a "GET" request to "/converted_owners?name_converted.name_converted=Converted 3"
805+ Then the response status code should be 200
806+ And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
807+ Then print last JSON response
808+ And the JSON should be valid according to this schema:
809+ """
810+ {
811+ "type": "object",
812+ "properties": {
813+ "@context": {"pattern": "^/contexts/ConvertedOwner$"},
814+ "@id": {"pattern": "^/converted_owners$"},
815+ "@type": {"pattern": "^hydra:Collection$"},
816+ "hydra:member": {
817+ "type": "array",
818+ "items": {
819+ "type": "object",
820+ "properties": {
821+ "@id": {
822+ "oneOf": [
823+ {"pattern": "^/converted_owners/3$"},
824+ {"pattern": "^/converted_owners/30$"}
825+ ]
826+ },
827+ "name_converted": {
828+ "oneOf": [
829+ {"pattern": "^/converted_relateds/3$"},
830+ {"pattern": "^/converted_relateds/30$"}
831+ ]
832+ },
833+ "required": ["@id", "name_converted"]
834+ }
835+ },
836+ "minItems": 2,
837+ "maxItems": 2
838+ },
839+ "hydra:view": {
840+ "type": "object",
841+ "properties": {
842+ "@id": {"pattern": "^/converted_owners\\?name_converted.name_converted=Converted%203"},
843+ "@type": {"pattern": "^hydra:PartialCollectionView$"}
844+ }
845+ },
846+ "hydra:search": {
847+ "type": "object",
848+ "properties": {
849+ "@type": {"pattern": "^hydra:IriTemplate$"},
850+ "hydra:template": {"pattern": "^/converted_owners\\{\\?.*name_converted\\.name_converted.*\\}$"},
851+ "hydra:variableRepresentation": {"pattern": "^BasicRepresentation$"},
852+ "hydra:mapping": {
853+ "type": "array",
854+ "items": {
855+ "type": "object",
856+ "properties": {
857+ "@type": {"pattern": "^IriTemplateMapping$"},
858+ "variable": {"pattern": "^name_converted\\.name_converted"},
859+ "property": {"pattern": "^name_converted\\.name_converted$"},
860+ "required": {"type": "boolean"}
861+ },
862+ "required": ["@type", "variable", "property", "required"],
863+ "additionalProperties": false
864+ },
865+ "additionalItems": true,
866+ "uniqueItems": true
867+ }
868+ },
869+ "additionalProperties": false,
870+ "required": ["@type", "hydra:template", "hydra:variableRepresentation", "hydra:mapping"]
871+ },
872+ "additionalProperties": false,
873+ "required": ["@context", "@id", "@type", "hydra:member", "hydra:totalItems", "hydra:view", "hydra:search"]
874+ }
875+ }
876+ """
0 commit comments