Skip to content

Commit

Permalink
Keep only JSON schemas validation
Browse files Browse the repository at this point in the history
  • Loading branch information
antograssiot committed Apr 23, 2019
1 parent 202177b commit 3149282
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 390 deletions.
40 changes: 0 additions & 40 deletions features/doctrine/boolean_filter.feature
Original file line number Diff line number Diff line change
Expand Up @@ -456,46 +456,6 @@ Feature: Boolean filter on collections
Then the response status code should be 200
And the response should be in JSON
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
And the JSON should be equal to:
"""
{
"@context": "/contexts/ConvertedBoolean",
"@id": "/converted_booleans",
"@type": "hydra:Collection",
"hydra:member": [
{
"@id": "/converted_booleans/2",
"@type": "ConvertedBoolean",
"name_converted": false,
"id": 2
},
{
"@id": "/converted_booleans/4",
"@type": "ConvertedBoolean",
"name_converted": false,
"id": 4
}
],
"hydra:totalItems": 2,
"hydra:view": {
"@id": "/converted_booleans?name_converted=false",
"@type": "hydra:PartialCollectionView"
},
"hydra:search": {
"@type": "hydra:IriTemplate",
"hydra:template": "/converted_booleans{?name_converted}",
"hydra:variableRepresentation": "BasicRepresentation",
"hydra:mapping": [
{
"@type": "IriTemplateMapping",
"variable": "name_converted",
"property": "name_converted",
"required": false
}
]
}
}
"""
And the JSON should be valid according to this schema:
"""
{
Expand Down
58 changes: 0 additions & 58 deletions features/doctrine/date_filter.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1116,64 +1116,6 @@ Feature: Date filter on collections
Then the response status code should be 200
And the response should be in JSON
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
And the JSON should be equal to:
"""
{
"@context": "/contexts/ConvertedDate",
"@id": "/converted_dates",
"@type": "hydra:Collection",
"hydra:member": [
{
"@id": "/converted_dates/29",
"@type": "ConvertedDate",
"name_converted": "2015-04-29T00:00:00+00:00",
"id": 29
},
{
"@id": "/converted_dates/30",
"@type": "ConvertedDate",
"name_converted": "2015-04-30T00:00:00+00:00",
"id": 30
}
],
"hydra:totalItems": 2,
"hydra:view": {
"@id": "/converted_dates?name_converted%5Bstrictly_after%5D=2015-04-28",
"@type": "hydra:PartialCollectionView"
},
"hydra:search": {
"@type": "hydra:IriTemplate",
"hydra:template": "/converted_dates{?name_converted[before],name_converted[strictly_before],name_converted[after],name_converted[strictly_after]}",
"hydra:variableRepresentation": "BasicRepresentation",
"hydra:mapping": [
{
"@type": "IriTemplateMapping",
"variable": "name_converted[before]",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "name_converted[strictly_before]",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "name_converted[after]",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "name_converted[strictly_after]",
"property": "name_converted",
"required": false
}
]
}
}
"""
And the JSON should be valid according to this schema:
"""
{
Expand Down
40 changes: 0 additions & 40 deletions features/doctrine/exists_filter.feature
Original file line number Diff line number Diff line change
Expand Up @@ -70,46 +70,6 @@ Feature: Exists filter on collections
Then the response status code should be 200
And the response should be in JSON
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
And the JSON should be equal to:
"""
{
"@context": "/contexts/ConvertedString",
"@id": "/converted_strings",
"@type": "hydra:Collection",
"hydra:member": [
{
"@id": "/converted_strings/1",
"@type": "ConvertedString",
"name_converted": "name#1",
"id": 1
},
{
"@id": "/converted_strings/3",
"@type": "ConvertedString",
"name_converted": "name#3",
"id": 3
}
],
"hydra:totalItems": 2,
"hydra:view": {
"@id": "/converted_strings?exists%5Bname_converted%5D=true",
"@type": "hydra:PartialCollectionView"
},
"hydra:search": {
"@type": "hydra:IriTemplate",
"hydra:template": "/converted_strings{?exists[name_converted]}",
"hydra:variableRepresentation": "BasicRepresentation",
"hydra:mapping": [
{
"@type": "IriTemplateMapping",
"variable": "exists[name_converted]",
"property": "name_converted",
"required": false
}
]
}
}
"""
And the JSON should be valid according to this schema:
"""
{
Expand Down
82 changes: 0 additions & 82 deletions features/doctrine/numeric_filter.feature
Original file line number Diff line number Diff line change
Expand Up @@ -144,88 +144,6 @@ Feature: Numeric filter on collections
Then the response status code should be 200
And the response should be in JSON
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
And the JSON should be equal to:
"""
{
"@context": "/contexts/ConvertedInteger",
"@id": "/converted_integers",
"@type": "hydra:Collection",
"hydra:member": [
{
"@id": "/converted_integers/2",
"@type": "ConvertedInteger",
"name_converted": 2,
"id": 2
},
{
"@id": "/converted_integers/3",
"@type": "ConvertedInteger",
"name_converted": 3,
"id": 3
}
],
"hydra:totalItems": 2,
"hydra:view": {
"@id": "/converted_integers?name_converted%5B%5D=2&name_converted%5B%5D=3",
"@type": "hydra:PartialCollectionView"
},
"hydra:search": {
"@type": "hydra:IriTemplate",
"hydra:template": "/converted_integers{?name_converted,name_converted[],name_converted[between],name_converted[gt],name_converted[gte],name_converted[lt],name_converted[lte],order[name_converted]}",
"hydra:variableRepresentation": "BasicRepresentation",
"hydra:mapping": [
{
"@type": "IriTemplateMapping",
"variable": "name_converted",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "name_converted[]",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "name_converted[between]",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "name_converted[gt]",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "name_converted[gte]",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "name_converted[lt]",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "name_converted[lte]",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "order[name_converted]",
"property": "name_converted",
"required": false
}
]
}
}
"""
And the JSON should be valid according to this schema:
"""
{
Expand Down
88 changes: 0 additions & 88 deletions features/doctrine/order_filter.feature
Original file line number Diff line number Diff line change
Expand Up @@ -890,94 +890,6 @@ Feature: Order filter on collections
Then the response status code should be 200
And the response should be in JSON
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
And the JSON should be equal to:
"""
{
"@context": "/contexts/ConvertedInteger",
"@id": "/converted_integers",
"@type": "hydra:Collection",
"hydra:member": [
{
"@id": "/converted_integers/3",
"@type": "ConvertedInteger",
"name_converted": 3,
"id": 3
},
{
"@id": "/converted_integers/2",
"@type": "ConvertedInteger",
"name_converted": 2,
"id": 2
},
{
"@id": "/converted_integers/1",
"@type": "ConvertedInteger",
"name_converted": 1,
"id": 1
}
],
"hydra:totalItems": 3,
"hydra:view": {
"@id": "/converted_integers?order%5Bname_converted%5D=desc",
"@type": "hydra:PartialCollectionView"
},
"hydra:search": {
"@type": "hydra:IriTemplate",
"hydra:template": "/converted_integers{?name_converted,name_converted[],name_converted[between],name_converted[gt],name_converted[gte],name_converted[lt],name_converted[lte],order[name_converted]}",
"hydra:variableRepresentation": "BasicRepresentation",
"hydra:mapping": [
{
"@type": "IriTemplateMapping",
"variable": "name_converted",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "name_converted[]",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "name_converted[between]",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "name_converted[gt]",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "name_converted[gte]",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "name_converted[lt]",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "name_converted[lte]",
"property": "name_converted",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "order[name_converted]",
"property": "name_converted",
"required": false
}
]
}
}
"""
And the JSON should be valid according to this schema:
"""
{
Expand Down
Loading

0 comments on commit 3149282

Please sign in to comment.